diff options
author | Achim Gottinger <achim@gentoo.org> | 2000-10-14 11:39:54 +0000 |
---|---|---|
committer | Achim Gottinger <achim@gentoo.org> | 2000-10-14 11:39:54 +0000 |
commit | 8d3c798ca9cf941fb333818839c90f4355d6fd14 (patch) | |
tree | 38e0a7e2d25fc44ee9ea1ffae0630141c95f3029 | |
parent | *** empty log message *** (diff) | |
download | gentoo-2-8d3c798ca9cf941fb333818839c90f4355d6fd14.tar.gz gentoo-2-8d3c798ca9cf941fb333818839c90f4355d6fd14.tar.bz2 gentoo-2-8d3c798ca9cf941fb333818839c90f4355d6fd14.zip |
*** empty log message ***
55 files changed, 1723 insertions, 97 deletions
diff --git a/dev-libs/libole2/libole2-0.1.6.ebuild b/dev-libs/libole2/libole2-0.1.6.ebuild index 5ad07d823298..018266bfd27b 100644 --- a/dev-libs/libole2/libole2-0.1.6.ebuild +++ b/dev-libs/libole2/libole2-0.1.6.ebuild @@ -3,11 +3,10 @@ # Author Achim Gottinger <achim@gentoo.org> # $Header -P=libole2-0.1.6 A=${P}.tar.gz S=${WORKDIR}/${P} DESCRIPTION="libole2" -SRC_URI="ftp://ftp.gnome.org/pub/GNOME/unstable/sources/libole2/${A}" +SRC_URI="ftp://ftp.gnome.org/pub/GNOME/unstable/sources/${PN}/${A}" HOMEPAGE="http://www.gnome.org/" src_unpack() { @@ -16,7 +15,7 @@ src_unpack() { src_compile() { cd ${S} - try ./configure --host=${CHOST} --prefix=/opt/gnome --with-catgets + try ./configure --host=${CHOST} --prefix=/opt/gnome try make } diff --git a/dev-libs/libxml/files/digest-libxml-1.8.10 b/dev-libs/libxml/files/digest-libxml-1.8.10 new file mode 100644 index 000000000000..f9b98c8fb800 --- /dev/null +++ b/dev-libs/libxml/files/digest-libxml-1.8.10 @@ -0,0 +1 @@ +MD5 4773efd97515916b9b4a7d6a303997d4 libxml-1.8.10.tar.gz diff --git a/dev-libs/libxml/files/digest-libxml-1.8.9 b/dev-libs/libxml/files/digest-libxml-1.8.9 deleted file mode 100644 index 6ddf52bfdde4..000000000000 --- a/dev-libs/libxml/files/digest-libxml-1.8.9 +++ /dev/null @@ -1 +0,0 @@ -MD5 ad50eec1ea625071726434cc5cf9d578 libxml-1.8.9.tar.gz diff --git a/dev-libs/libxml/libxml-1.8.9.ebuild b/dev-libs/libxml/libxml-1.8.10.ebuild index 79765d7cc7ba..42fbf9c9b24d 100644 --- a/dev-libs/libxml/libxml-1.8.9.ebuild +++ b/dev-libs/libxml/libxml-1.8.10.ebuild @@ -1,13 +1,12 @@ # Copyright 1999-2000 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Author Achim Gottinger <achim@gentoo.org> -# $Header: /var/cvsroot/gentoo-x86/dev-libs/libxml/libxml-1.8.9.ebuild,v 1.3 2000/09/15 20:08:56 drobbins Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/libxml/libxml-1.8.10.ebuild,v 1.1 2000/10/14 11:38:35 achim Exp $ -P=libxml-1.8.9 A=${P}.tar.gz S=${WORKDIR}/${P} DESCRIPTION="libxml" -SRC_URI="ftp://ftp.gnome.org/pub/GNOME/stable/sources/libxml/"${A} +SRC_URI="ftp://ftp.gnome.org/pub/GNOME/stable/sources/${PN}/"${A} HOMEPAGE="http://www.gnome.org/" src_compile() { @@ -25,3 +24,4 @@ src_install() { + diff --git a/gnome-apps/mc/mc-4.5.51.ebuild b/gnome-apps/mc/mc-4.5.51.ebuild index 20080caf121d..2911829d01fd 100644 --- a/gnome-apps/mc/mc-4.5.51.ebuild +++ b/gnome-apps/mc/mc-4.5.51.ebuild @@ -1,7 +1,7 @@ # Copyright 1999-2000 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Author Achim Gottinger <achim@gentoo.org> -# $Header: /var/cvsroot/gentoo-x86/gnome-apps/mc/mc-4.5.51.ebuild,v 1.3 2000/09/15 20:08:56 drobbins Exp $ +# $Header: /var/cvsroot/gentoo-x86/gnome-apps/mc/mc-4.5.51.ebuild,v 1.4 2000/10/14 11:38:36 achim Exp $ P=mc-4.5.51 A=${P}.tar.gz @@ -20,7 +20,8 @@ src_unpack() { src_compile() { cd ${S} LDFLAGS="-lcrypt -lncurses" try ./configure --host=${CHOST} --prefix=/opt/gnome \ - --with-samba --with-ldap --with-pam + --with-samba --with-ldap --with-pam --with-vfs \ + --with-netrc --with-slang try make } diff --git a/gnome-base/ORBit/ORBit-0.5.3.ebuild b/gnome-base/ORBit/ORBit-0.5.3.ebuild index c8ad548f07c9..87d468141e37 100644 --- a/gnome-base/ORBit/ORBit-0.5.3.ebuild +++ b/gnome-base/ORBit/ORBit-0.5.3.ebuild @@ -1,13 +1,12 @@ # Copyright 1999-2000 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Author Achim Gottinger <achim@gentoo.org> -# $Header: /var/cvsroot/gentoo-x86/gnome-base/ORBit/ORBit-0.5.3.ebuild,v 1.3 2000/09/15 20:08:54 drobbins Exp $ +# $Header: /var/cvsroot/gentoo-x86/gnome-base/ORBit/ORBit-0.5.3.ebuild,v 1.4 2000/10/14 11:38:33 achim Exp $ -P=ORBit-0.5.3 A=${P}.tar.gz S=${WORKDIR}/${P} DESCRIPTION="A high-performance, lightweight CORBA ORB aiming for CORBA 2.2 compliance" -SRC_URI="ftp://ftp.gnome.org/pub/GNOME/stable/sources/ORBit/"${A} +SRC_URI="ftp://ftp.gnome.org/pub/GNOME/stable/sources/${PN}/"${A} HOMEPAGE="http://www.labs.redhat.com/orbit/" src_compile() { diff --git a/gnome-base/bonobo/bonobo-0.20.ebuild b/gnome-base/bonobo/bonobo-0.20.ebuild new file mode 100644 index 000000000000..e167f04cf57d --- /dev/null +++ b/gnome-base/bonobo/bonobo-0.20.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Achim Gottinger <achim@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/gnome-base/bonobo/bonobo-0.20.ebuild,v 1.1 2000/10/14 11:38:33 achim Exp $ + +A=${P}.tar.gz +S=${WORKDIR}/${P} +DESCRIPTION="A set of language and system independant CORBA interfaces" +SRC_URI="ftp://ftp.gnome.org/pub/GNOME/unstable/sources/${PN}/"${A} +HOMEPAGE="http://www.gnome.org/" + +src_compile() { + cd ${S} + try ./configure --host=${CHOST} --prefix=/opt/gnome --with-catgets + try make +} + +src_install() { + cd ${S} + try make prefix=${D}/opt/gnome install + dodoc AUTHORS COPYING* ChangeLog README + dodoc NEWS TODO +} + + + + + + diff --git a/gnome-base/bonobo/files/digest-bonobo-0.20 b/gnome-base/bonobo/files/digest-bonobo-0.20 new file mode 100644 index 000000000000..7e33d1c400b9 --- /dev/null +++ b/gnome-base/bonobo/files/digest-bonobo-0.20 @@ -0,0 +1 @@ +MD5 44d5f36edae22bd38cf0a38938702fc8 bonobo-0.20.tar.gz diff --git a/gnome-base/control-center/control-center-1.2.1.ebuild b/gnome-base/control-center/control-center-1.2.2.ebuild index e87f0a81140d..ce6667e2f0a8 100644 --- a/gnome-base/control-center/control-center-1.2.1.ebuild +++ b/gnome-base/control-center/control-center-1.2.2.ebuild @@ -1,19 +1,18 @@ # Copyright 1999-2000 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Author Achim Gottinger <achim@gentoo.org> -# $Header: /var/cvsroot/gentoo-x86/gnome-base/control-center/control-center-1.2.1.ebuild,v 1.3 2000/09/15 20:08:55 drobbins Exp $ +# $Header: /var/cvsroot/gentoo-x86/gnome-base/control-center/control-center-1.2.2.ebuild,v 1.1 2000/10/14 11:38:33 achim Exp $ -P=control-center-1.2.1 A=${P}.tar.gz S=${WORKDIR}/${P} DESCRIPTION="The GNOME control-center" -SRC_URI="ftp://ftp.gnome.org/pub/GNOME/stable/sources/control-center/"${A} +SRC_URI="ftp://ftp.gnome.org/pub/GNOME/stable/sources/${PN}/"${A} HOMEPAGE="http://www.gnome.org/" src_compile() { cd ${S} - try ./configure --host=${CHOST} --prefix=/opt/gnome + try ./configure --host=${CHOST} --prefix=/opt/gnome --with-catgets try make } diff --git a/gnome-base/control-center/files/digest-control-center-1.2.1 b/gnome-base/control-center/files/digest-control-center-1.2.1 deleted file mode 100644 index 98f6ea6333f0..000000000000 --- a/gnome-base/control-center/files/digest-control-center-1.2.1 +++ /dev/null @@ -1 +0,0 @@ -MD5 dff1aad70637e59919f3ec57ff1bfae6 control-center-1.2.1.tar.gz diff --git a/gnome-base/control-center/files/digest-control-center-1.2.2 b/gnome-base/control-center/files/digest-control-center-1.2.2 new file mode 100644 index 000000000000..466d8a342494 --- /dev/null +++ b/gnome-base/control-center/files/digest-control-center-1.2.2 @@ -0,0 +1 @@ +MD5 13687951e810f536b87c3cf29cc61c07 control-center-1.2.2.tar.gz diff --git a/gnome-base/gconf/files/digest-gconf-0.8 b/gnome-base/gconf/files/digest-gconf-0.8 new file mode 100644 index 000000000000..f79cd9dc37d2 --- /dev/null +++ b/gnome-base/gconf/files/digest-gconf-0.8 @@ -0,0 +1 @@ +MD5 57258919431085a58b16269c63b92ff3 GConf-0.8.tar.gz diff --git a/gnome-base/gnome-core/gnome-core-1.2.1.ebuild b/gnome-base/gconf/gconf-0.8.ebuild index 5b0fb621fc24..e8df54239946 100644 --- a/gnome-base/gnome-core/gnome-core-1.2.1.ebuild +++ b/gnome-base/gconf/gconf-0.8.ebuild @@ -1,18 +1,22 @@ # Copyright 1999-2000 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Author Achim Gottinger <achim@gentoo.org> -# $Header: /var/cvsroot/gentoo-x86/gnome-base/gnome-core/gnome-core-1.2.1.ebuild,v 1.3 2000/09/15 16:18:48 drobbins Exp $ +# $Header -P=gnome-core-1.2.1 +P=GConf-0.8 A=${P}.tar.gz S=${WORKDIR}/${P} -DESCRIPTION="gnome-core" -SRC_URI="ftp://ftp.gnome.org/pub/GNOME/stable/sources/gnome-core/"${A} +DESCRIPTION="Gconf" +SRC_URI="ftp://ftp.gnome.org/pub/GNOME/unstable/sources/GConf/${A}" HOMEPAGE="http://www.gnome.org/" +src_unpack() { + unpack ${A} +} + src_compile() { cd ${S} - try ./configure --host=${CHOST} --prefix=/opt/gnome + try ./configure --host=${CHOST} --prefix=/opt/gnome --with-catgets try make } @@ -20,7 +24,8 @@ src_install() { cd ${S} try make prefix=${D}/opt/gnome install prepman /opt/gnome - dodoc AUTHORS COPYING* ChangeLog README NEWS + + dodoc AUTHORS BUGS COPYING ChangeLog FAQ NEWS README* THANKS TODO } diff --git a/gnome-base/gdk-pixbuf/gdk-pixbuf-0.9.0.ebuild b/gnome-base/gdk-pixbuf/gdk-pixbuf-0.9.0.ebuild index 4702bec281b1..549921a0d2be 100644 --- a/gnome-base/gdk-pixbuf/gdk-pixbuf-0.9.0.ebuild +++ b/gnome-base/gdk-pixbuf/gdk-pixbuf-0.9.0.ebuild @@ -1,12 +1,12 @@ # Copyright 1999-2000 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Author Achim Gottinger <achim@gentoo.org> -# $Header: /var/cvsroot/gentoo-x86/gnome-base/gdk-pixbuf/gdk-pixbuf-0.9.0.ebuild,v 1.2 2000/09/15 20:08:55 drobbins Exp $ +# $Header: /var/cvsroot/gentoo-x86/gnome-base/gdk-pixbuf/gdk-pixbuf-0.9.0.ebuild,v 1.3 2000/10/14 11:38:34 achim Exp $ A=${P}.tar.gz S=${WORKDIR}/${P} DESCRIPTION="GNOME Image Library" -SRC_URI="ftp://ftp.gnome.org/pub/GNOME/unstable/sources/gdk-pixbuf/"${A} +SRC_URI="ftp://ftp.gnome.org/pub/GNOME/unstable/sources/${PN}/"${A} src_compile() { @@ -24,3 +24,4 @@ src_install() { + diff --git a/gnome-base/gnome-applets/files/digest-gnome-applets-1.2.1 b/gnome-base/gnome-applets/files/digest-gnome-applets-1.2.1 deleted file mode 100644 index 870d883c5c77..000000000000 --- a/gnome-base/gnome-applets/files/digest-gnome-applets-1.2.1 +++ /dev/null @@ -1 +0,0 @@ -MD5 0e4b39e2c22a5e1ff4c56f6df1773f40 gnome-applets-1.2.1.tar.gz diff --git a/gnome-base/gnome-applets/files/digest-gnome-applets-1.2.2 b/gnome-base/gnome-applets/files/digest-gnome-applets-1.2.2 new file mode 100644 index 000000000000..9a22b2c0a288 --- /dev/null +++ b/gnome-base/gnome-applets/files/digest-gnome-applets-1.2.2 @@ -0,0 +1 @@ +MD5 f2acdded6ed982547c1f767f9b027d42 gnome-applets-1.2.2.tar.gz diff --git a/gnome-base/gnome-applets/gnome-applets-1.2.1.ebuild b/gnome-base/gnome-applets/gnome-applets-1.2.2.ebuild index dddcd595fb3e..a5fbb8578fd9 100644 --- a/gnome-base/gnome-applets/gnome-applets-1.2.1.ebuild +++ b/gnome-base/gnome-applets/gnome-applets-1.2.2.ebuild @@ -1,18 +1,17 @@ # Copyright 1999-2000 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Author Achim Gottinger <achim@gentoo.org> -# $Header: /var/cvsroot/gentoo-x86/gnome-base/gnome-applets/gnome-applets-1.2.1.ebuild,v 1.3 2000/09/15 20:08:55 drobbins Exp $ +# $Header: /var/cvsroot/gentoo-x86/gnome-base/gnome-applets/gnome-applets-1.2.2.ebuild,v 1.1 2000/10/14 11:38:34 achim Exp $ -P=gnome-applets-1.2.1 A=${P}.tar.gz S=${WORKDIR}/${P} DESCRIPTION="gnome-applets" -SRC_URI="ftp://ftp.gnome.org/pub/GNOME/stable/sources/gnome-applets/"${A} +SRC_URI="ftp://ftp.gnome.org/pub/GNOME/stable/sources/${PN}/${A}" HOMEPAGE="http://www.gnome.org/" src_compile() { cd ${S} - try ./configure --host=${CHOST} --prefix=/opt/gnome + try ./configure --host=${CHOST} --prefix=/opt/gnome --with-cargets try make } diff --git a/gnome-base/gnome-core/files/digest-gnome-core-1.2.1 b/gnome-base/gnome-core/files/digest-gnome-core-1.2.1 deleted file mode 100644 index 0349ad8bc33e..000000000000 --- a/gnome-base/gnome-core/files/digest-gnome-core-1.2.1 +++ /dev/null @@ -1 +0,0 @@ -MD5 d8ac9408991bad4f2177c9a426b3c33b gnome-core-1.2.1.tar.gz diff --git a/gnome-base/gnome-core/files/digest-gnome-core-1.2.2.1 b/gnome-base/gnome-core/files/digest-gnome-core-1.2.2.1 new file mode 100644 index 000000000000..e142a8155074 --- /dev/null +++ b/gnome-base/gnome-core/files/digest-gnome-core-1.2.2.1 @@ -0,0 +1 @@ +MD5 57ac7c0e08fd906382d20221e4111cc7 gnome-core-1.2.2.1.tar.gz diff --git a/gnome-base/gnome-libs/gnome-libs-1.2.4.ebuild b/gnome-base/gnome-libs/gnome-libs-1.2.4.ebuild index f19c2afcf717..8f4ea888b0fb 100644 --- a/gnome-base/gnome-libs/gnome-libs-1.2.4.ebuild +++ b/gnome-base/gnome-libs/gnome-libs-1.2.4.ebuild @@ -1,13 +1,12 @@ # Copyright 1999-2000 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Author Achim Gottinger <achim@gentoo.org> -# $Header: /var/cvsroot/gentoo-x86/gnome-base/gnome-libs/gnome-libs-1.2.4.ebuild,v 1.3 2000/09/15 16:18:48 drobbins Exp $ +# $Header: /var/cvsroot/gentoo-x86/gnome-base/gnome-libs/gnome-libs-1.2.4.ebuild,v 1.4 2000/10/14 11:38:34 achim Exp $ -P=gnome-libs-1.2.4 A=${P}.tar.gz S=${WORKDIR}/${P} DESCRIPTION="GNOME Core Libraries" -SRC_URI="ftp://ftp.gnome.org/pub/GNOME/stable/sources/gnome-libs/"${A} +SRC_URI="ftp://ftp.gnome.org/pub/GNOME/stable/sources/${PN}/${A}" HOMEPAGE="http://www.gnome.org/" src_compile() { @@ -33,3 +32,4 @@ src_install() { + diff --git a/gnome-base/gnome-print/files/digest-gnome-print-0.20 b/gnome-base/gnome-print/files/digest-gnome-print-0.20 deleted file mode 100644 index 1d6f1ca9b520..000000000000 --- a/gnome-base/gnome-print/files/digest-gnome-print-0.20 +++ /dev/null @@ -1 +0,0 @@ -MD5 1cb286ed2bd600ab16e996717904f425 gnome-print-0.20.tar.gz diff --git a/gnome-base/gnome-print/files/digest-gnome-print-0.24 b/gnome-base/gnome-print/files/digest-gnome-print-0.24 new file mode 100644 index 000000000000..4b57897a5726 --- /dev/null +++ b/gnome-base/gnome-print/files/digest-gnome-print-0.24 @@ -0,0 +1 @@ +MD5 fa58caa0d319ff4a18e8fd1a879e5a2b gnome-print-0.24.tar.gz diff --git a/gnome-base/gnome-print/gnome-print-0.20.ebuild b/gnome-base/gnome-print/gnome-print-0.24.ebuild index bdcd92d083c1..960394b84b78 100644 --- a/gnome-base/gnome-print/gnome-print-0.20.ebuild +++ b/gnome-base/gnome-print/gnome-print-0.24.ebuild @@ -1,19 +1,17 @@ # Copyright 1999-2000 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Author Achim Gottinger <achim@gentoo.org> -# $Header: /var/cvsroot/gentoo-x86/gnome-base/gnome-print/gnome-print-0.20.ebuild,v 1.4 2000/10/05 18:22:51 achim Exp $ +# $Header: /var/cvsroot/gentoo-x86/gnome-base/gnome-print/gnome-print-0.24.ebuild,v 1.1 2000/10/14 11:38:34 achim Exp $ -P=gnome-print-0.20 A=${P}.tar.gz S=${WORKDIR}/${P} DESCRIPTION="gnome-print" -SRC_URI="ftp://ftp.gnome.org/pub/GNOME/stable/sources/gnome-print/"${A} +SRC_URI="ftp://ftp.gnome.org/pub/GNOME/stable/sources/${PN}/"${A} HOMEPAGE="http://www.gnome.org/" src_compile() { cd ${S} - try ./configure --host=${CHOST} --prefix=/opt/gnome \ - --with-catgets + try ./configure --host=${CHOST} --prefix=/opt/gnome try make } diff --git a/gnome-base/gnome-vfs/files/digest-gnome-vfs-0.3.1 b/gnome-base/gnome-vfs/files/digest-gnome-vfs-0.3.1 new file mode 100644 index 000000000000..f68e1fec57bb --- /dev/null +++ b/gnome-base/gnome-vfs/files/digest-gnome-vfs-0.3.1 @@ -0,0 +1 @@ +MD5 af062ba135bb9582f1b2fb2feb7cb1a3 gnome-vfs-0.3.1.tar.gz diff --git a/gnome-base/gnome-vfs/files/efs-method.c b/gnome-base/gnome-vfs/files/efs-method.c new file mode 100644 index 000000000000..8a545e090538 --- /dev/null +++ b/gnome-base/gnome-vfs/files/efs-method.c @@ -0,0 +1,1001 @@ +/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */ +/* file-method.c - Local file access method for the GNOME Virtual File + System. + + Copyright (C) 1999 Free Software Foundation + + The Gnome Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public License as + published by the Free Software Foundation; either version 2 of the + License, or (at your option) any later version. + + The Gnome Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with the Gnome Library; see the file COPYING.LIB. If not, + write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, + Boston, MA 02111-1307, USA. + + Authors: Rajit Singh <endah@dircon.co.uk> + Michael Meeks <mmeeks@gnu.org> +*/ + +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif + +#include <gnome.h> +#include "gnome-vfs.h" +#include "gnome-vfs-mime.h" +#include "gnome-vfs-module.h" +#include "gnome-vfs-module-shared.h" +#include "efs-method.h" + +typedef struct _GnomeVFSFileSystem GnomeVFSFileSystem; + +typedef GnomeVFSResult (*GnomeVFSFileSystemCloseFn) (GnomeVFSFileSystem *fs); + +struct _GnomeVFSFileSystem { + guint32 ref_count; + + GMutex *lock; + GnomeVFSURI *location; + GnomeVFSFileSystemCloseFn close_fn; +}; + +/* + * Locks the ref count and the open list. + */ +static GStaticMutex vfs_open_file_systems_lock = G_STATIC_MUTEX_INIT; +static GSList *vfs_open_file_systems = NULL; + +static GnomeVFSFileSystem * +gnome_vfs_file_system_lookup (GnomeVFSURI *location) +{ + GSList *l; + GnomeVFSFileSystem *fs = NULL; + + g_return_val_if_fail (location != NULL, NULL); + + g_static_mutex_lock (&vfs_open_file_systems_lock); + { + for (l = vfs_open_file_systems; l; l = l->next) { + GnomeVFSFileSystem *tfs = l->data; + + if (gnome_vfs_uri_equal (location, tfs->location)) { + tfs->ref_count++; + fs = tfs; + break; + } + } + } + g_static_mutex_unlock (&vfs_open_file_systems_lock); + + return fs; +} + +static GnomeVFSFileSystem * +gnome_vfs_file_system_add (GnomeVFSURI *location, + GnomeVFSFileSystemCloseFn close_fn, + guint size) +{ + GnomeVFSFileSystem *fs; + + g_return_val_if_fail (close_fn != NULL, NULL); + g_return_val_if_fail (location != NULL, NULL); + g_return_val_if_fail ( + gnome_vfs_file_system_lookup (location) == NULL, NULL); + + fs = g_malloc0 (size); + + fs->lock = g_mutex_new (); + fs->ref_count = 1; + fs->close_fn = close_fn; + fs->location = gnome_vfs_uri_ref (location); + + g_static_mutex_lock (&vfs_open_file_systems_lock); + { + vfs_open_file_systems = g_slist_prepend ( + vfs_open_file_systems, fs); + } + g_static_mutex_unlock (&vfs_open_file_systems_lock); + + return fs; +} + +static GnomeVFSFileSystem * +gnome_vfs_file_system_ref (GnomeVFSFileSystem *fs) +{ + g_return_val_if_fail (fs != NULL, NULL); + + g_static_mutex_lock (&vfs_open_file_systems_lock); + fs->ref_count++; + g_static_mutex_unlock (&vfs_open_file_systems_lock); + + return fs; +} + +static void +gnome_vfs_file_system_lock (GnomeVFSFileSystem *fs) +{ + g_return_if_fail (fs != NULL); + g_return_if_fail (fs->ref_count > 0); + + g_mutex_lock (fs->lock); +} + +static void +gnome_vfs_file_system_unlock (GnomeVFSFileSystem *fs) +{ + g_return_if_fail (fs != NULL); + g_return_if_fail (fs->ref_count > 0); + + g_mutex_unlock (fs->lock); +} + +static GnomeVFSResult +gnome_vfs_file_system_unref (GnomeVFSFileSystem *fs) +{ + GnomeVFSResult result; + + g_return_val_if_fail (fs != NULL, GNOME_VFS_ERROR_INTERNAL); + + g_static_mutex_lock (&vfs_open_file_systems_lock); + { + fs->ref_count--; + if (fs->ref_count == 0) { + + gnome_vfs_uri_unref (fs->location); + result = fs->close_fn (fs); + if (!g_mutex_trylock (fs->lock)) + g_warning ("Release fs lock before unref"); + else + g_mutex_unlock (fs->lock); + g_mutex_free (fs->lock); + g_free (fs); + + vfs_open_file_systems = g_slist_remove ( + vfs_open_file_systems, fs); + } else + result = GNOME_VFS_OK; + } + g_static_mutex_unlock (&vfs_open_file_systems_lock); + + return result; +} + +static void +gnome_vfs_file_system_init (void) +{ + if (!g_thread_supported()) g_thread_init (NULL); +} + +static void +gnome_vfs_file_system_shutdown (void) +{ + g_static_mutex_lock (&vfs_open_file_systems_lock); + if (vfs_open_file_systems) + g_warning ("Implement shutdown\n"); + g_static_mutex_unlock (&vfs_open_file_systems_lock); +} + + + +typedef struct { + GnomeVFSFileSystem fs; + + EFSDir *dir; +} VEfsFileSystem; + +struct _FileHandle { + GnomeVFSURI *uri; + GnomeVFSFileSystem *fs; + EFSFile *file; +}; +typedef struct _FileHandle FileHandle; + +static FileHandle * +file_handle_new (GnomeVFSURI *uri, + GnomeVFSFileSystem *fs, + EFSFile *file) +{ + FileHandle *new; + + g_return_val_if_fail (fs != NULL, NULL); + g_return_val_if_fail (uri != NULL, NULL); + g_return_val_if_fail (file != NULL, NULL); + + new = g_new (FileHandle, 1); + + new->uri = gnome_vfs_uri_ref (uri); + new->fs = fs; + new->file = file; + + return new; +} + +static GnomeVFSResult +file_handle_destroy (FileHandle *handle) +{ + GnomeVFSResult result; + + gnome_vfs_uri_unref (handle->uri); + result = gnome_vfs_file_system_unref ( + (GnomeVFSFileSystem *)handle->fs); + + g_free (handle); + + return result; +} + + + +static GnomeVFSResult +close_efs_file (GnomeVFSFileSystem *fs) +{ + VEfsFileSystem *efs = (VEfsFileSystem *)fs; + + if (efs_commit (efs->dir) < 0) + return gnome_vfs_result_from_errno (); + else if (efs_close (efs->dir) < 0) + return gnome_vfs_result_from_errno (); + else + return GNOME_VFS_OK; +} + +#define ROOT_DIR(fs) (((VEfsFileSystem *)(fs))->dir) + +static GnomeVFSResult +open_efs_file (GnomeVFSFileSystem **fs, GnomeVFSURI *uri, gint mode) +{ + GnomeVFSResult result; + + _GNOME_VFS_METHOD_PARAM_CHECK (uri != NULL); + _GNOME_VFS_METHOD_PARAM_CHECK (uri->parent != NULL); + _GNOME_VFS_METHOD_PARAM_CHECK (uri->parent->text != NULL); + _GNOME_VFS_METHOD_PARAM_CHECK (strcmp (uri->parent->method_string, "file") == 0); + + *fs = gnome_vfs_file_system_lookup (uri->parent); + + if (*fs) { + fprintf (stderr, "FS reused\n"); + result = GNOME_VFS_OK; + } else { + char *fname, *bname; + EFSDir *dir; + + bname = uri->parent->text; + if (bname [0] != '/') + fname = g_strconcat ("/", bname, NULL); + else + fname = g_strdup (bname); + + fprintf (stderr, "New EFS file system: '%s'\n", fname); + + efs_open (&dir,fname, mode, default_permissions,NULL); + + if (!dir) { + result = gnome_vfs_result_from_errno (); + if (!result) + result = GNOME_VFS_ERROR_INTERNAL; + } else { + *fs = gnome_vfs_file_system_add + (uri->parent, close_efs_file, + sizeof (VEfsFileSystem)); + + ROOT_DIR (*fs) = dir; + + result = GNOME_VFS_OK; + } + + g_free (fname); + } + + return result; +} + +static GnomeVFSResult +do_open (GnomeVFSMethod *method, + GnomeVFSMethodHandle **method_handle, + GnomeVFSURI *uri, + GnomeVFSOpenMode mode, + GnomeVFSContext *context) +{ + GnomeVFSResult result; + FileHandle *file_handle; + GnomeVFSFileSystem *fs; + EFSFile *file; + mode_t efs_mode; + + if (mode & GNOME_VFS_OPEN_READ) { + if (mode & GNOME_VFS_OPEN_WRITE) + efs_mode = EFS_RDWR | EFS_CREATE; + else + efs_mode = EFS_READ; + } else { + if (mode & GNOME_VFS_OPEN_WRITE) + efs_mode = EFS_WRITE | EFS_CREATE; + else + return GNOME_VFS_ERROR_INVALID_OPEN_MODE; + } + + result = open_efs_file (&fs, uri, efs_mode); + if (result != GNOME_VFS_OK) + return result; + + efs_mode |= EFS_CREATE; + + gnome_vfs_file_system_lock (fs); + efs_file_open (&file, ROOT_DIR (fs), uri->text, efs_mode); + gnome_vfs_file_system_unlock (fs); + + if (!file) { + gnome_vfs_file_system_unref (fs); + return GNOME_VFS_ERROR_GENERIC; + } + + file_handle = file_handle_new (uri, fs, file); + + *method_handle = (GnomeVFSMethodHandle *) file_handle; + + return GNOME_VFS_OK; +} + +static GnomeVFSResult +do_create (GnomeVFSMethod *method, + GnomeVFSMethodHandle **method_handle, + GnomeVFSURI *uri, + GnomeVFSOpenMode mode, + gboolean exclusive, + guint perm, + GnomeVFSContext *context) +{ + GnomeVFSResult result; + FileHandle *file_handle; + GnomeVFSFileSystem *fs; + EFSFile *file; + mode_t efs_mode; + + _GNOME_VFS_METHOD_PARAM_CHECK (method_handle != NULL); + _GNOME_VFS_METHOD_PARAM_CHECK (uri != NULL); + + efs_mode = EFS_CREATE; + + if (!(mode & GNOME_VFS_OPEN_WRITE)) + return GNOME_VFS_ERROR_INVALID_OPEN_MODE; + + if (mode & GNOME_VFS_OPEN_READ) + efs_mode |= EFS_RDWR; + else + efs_mode |= EFS_WRITE; + + if (exclusive) + efs_mode |= EFS_EXCL; + + result = open_efs_file (&fs, uri, efs_mode); + + if (result != GNOME_VFS_OK) + return result; + + gnome_vfs_file_system_lock (fs); + efs_file_open (&file, ROOT_DIR (fs), uri->text, efs_mode); + gnome_vfs_file_system_unlock (fs); + if (!file) { + gnome_vfs_file_system_unref (fs); + return GNOME_VFS_ERROR_GENERIC; + } + + file_handle = file_handle_new (uri, fs, file); + + *method_handle = (GnomeVFSMethodHandle *) file_handle; + + return GNOME_VFS_OK; +} + +static GnomeVFSResult +do_close (GnomeVFSMethod *method, + GnomeVFSMethodHandle *method_handle, + GnomeVFSContext *context) +{ + GnomeVFSResult result; + FileHandle *file_handle; + + g_return_val_if_fail (method_handle != NULL, GNOME_VFS_ERROR_INTERNAL); + + file_handle = (FileHandle *) method_handle; + + gnome_vfs_file_system_lock (file_handle->fs); + { + if (efs_file_close (file_handle->file) < 0) + result = gnome_vfs_result_from_errno (); + } + gnome_vfs_file_system_unlock (file_handle->fs); + + if (!result) + result = file_handle_destroy (file_handle); + + return result; +} + +static GnomeVFSResult +do_read (GnomeVFSMethod *method, + GnomeVFSMethodHandle *method_handle, + gpointer buffer, + GnomeVFSFileSize num_bytes, + GnomeVFSFileSize *bytes_read, + GnomeVFSContext *context) +{ + FileHandle *file_handle; + gint read_val; + + g_return_val_if_fail (method_handle != NULL, GNOME_VFS_ERROR_INTERNAL); + + file_handle = (FileHandle *) method_handle; + + gnome_vfs_file_system_lock (file_handle->fs); + efs_file_read (file_handle->file, buffer, num_bytes, &read_val); + gnome_vfs_file_system_unlock (file_handle->fs); + + if (read_val == -1) { + *bytes_read = 0; + return gnome_vfs_result_from_errno (); + } else { + *bytes_read = read_val; + return GNOME_VFS_OK; + } +} + +static GnomeVFSResult +do_write (GnomeVFSMethod *method, + GnomeVFSMethodHandle *method_handle, + gconstpointer buffer, + GnomeVFSFileSize num_bytes, + GnomeVFSFileSize *bytes_written, + GnomeVFSContext *context) +{ + FileHandle *file_handle; + gint write_val; + + g_return_val_if_fail (method_handle != NULL, GNOME_VFS_ERROR_INTERNAL); + + file_handle = (FileHandle *) method_handle; + + gnome_vfs_file_system_lock (file_handle->fs); + write_val = efs_file_write (file_handle->file, (void *) buffer, num_bytes); + gnome_vfs_file_system_unlock (file_handle->fs); + + if (write_val == -1) { + *bytes_written = 0; + return gnome_vfs_result_from_errno (); + } else { + *bytes_written = write_val; + return GNOME_VFS_OK; + } +} + + +static gint +seek_position_to_unix (GnomeVFSSeekPosition position) +{ + switch (position) { + case GNOME_VFS_SEEK_START: + return SEEK_SET; + case GNOME_VFS_SEEK_CURRENT: + return SEEK_CUR; + case GNOME_VFS_SEEK_END: + return SEEK_END; + default: + g_warning (_("Unknown GnomeVFSSeekPosition %d"), position); + return SEEK_SET; /* bogus */ + } +} + +static GnomeVFSResult +do_seek (GnomeVFSMethod *method, + GnomeVFSMethodHandle *method_handle, + GnomeVFSSeekPosition whence, + GnomeVFSFileOffset offset, + GnomeVFSContext *context) +{ + FileHandle *file_handle; + gint lseek_whence, retval; + + file_handle = (FileHandle *) method_handle; + lseek_whence = seek_position_to_unix (whence); + + gnome_vfs_file_system_lock (file_handle->fs); + efs_file_seek (file_handle->file, offset, lseek_whence, &retval); + gnome_vfs_file_system_unlock (file_handle->fs); + + if (retval == -1) + return gnome_vfs_result_from_errno (); + + return GNOME_VFS_OK; +} + +static GnomeVFSResult +do_tell (GnomeVFSMethod *method, + GnomeVFSMethodHandle *method_handle, + GnomeVFSFileOffset *offset_return) +{ + FileHandle *file_handle; + gint retval; + + file_handle = (FileHandle *) method_handle; + + gnome_vfs_file_system_lock (file_handle->fs); + efs_file_seek (file_handle->file, 0, SEEK_CUR, &retval); + gnome_vfs_file_system_unlock (file_handle->fs); + + *offset_return = retval; + + if (retval == -1) + return gnome_vfs_result_from_errno (); + + return GNOME_VFS_OK; +} + +static GnomeVFSResult +do_truncate_handle (GnomeVFSMethod *method, + GnomeVFSMethodHandle *method_handle, + GnomeVFSFileSize where, + GnomeVFSContext *context) +{ + FileHandle *file_handle; + GnomeVFSResult result; + + g_return_val_if_fail (method_handle != NULL, GNOME_VFS_ERROR_INTERNAL); + + file_handle = (FileHandle *) method_handle; + + gnome_vfs_file_system_lock (file_handle->fs); + { + if (efs_file_trunc (file_handle->file, where) < 0) + result = gnome_vfs_result_from_errno (); + else + result = GNOME_VFS_OK; + } + gnome_vfs_file_system_unlock (file_handle->fs); + + return result; +} + +static GnomeVFSResult +do_truncate (GnomeVFSMethod *method, + GnomeVFSURI *uri, + GnomeVFSFileSize where, + GnomeVFSContext *context) +{ + FileHandle *file_handle; + GnomeVFSMethodHandle *method_handle; + GnomeVFSResult result; + + _GNOME_VFS_METHOD_PARAM_CHECK (method_handle != NULL && (strcmp(uri->method_string, "file") == 0)); + _GNOME_VFS_METHOD_PARAM_CHECK (uri != NULL); + + if ((result = do_open (method, &method_handle, uri, EFS_WRITE, context))) { + file_handle = (FileHandle *) method_handle; + + gnome_vfs_file_system_lock (file_handle->fs); + { + if ((result = efs_file_trunc (file_handle->file, where) == 0)) + do_close (method, method_handle, context); + } + gnome_vfs_file_system_unlock (file_handle->fs); + } + + return result; +} + + +struct _DirectoryHandle { + GnomeVFSURI *uri; + GnomeVFSFileSystem *fs; + EFSDir *dir; + GnomeVFSFileInfoOptions options; + const GnomeVFSDirectoryFilter *filter; +}; +typedef struct _DirectoryHandle DirectoryHandle; + +static GnomeVFSResult +directory_handle_destroy (DirectoryHandle *directory_handle) +{ + GnomeVFSResult result; + + gnome_vfs_uri_unref (directory_handle->uri); + result = gnome_vfs_file_system_unref (directory_handle->fs); + g_free (directory_handle); + + return result; +} + + +static GnomeVFSResult +do_open_directory (GnomeVFSMethod *method, + GnomeVFSMethodHandle **method_handle, + GnomeVFSURI *uri, + GnomeVFSFileInfoOptions options, + const GnomeVFSDirectoryFilter *filter, + GnomeVFSContext *context) +{ + GnomeVFSResult result; + GnomeVFSFileSystem *fs; + EFSDir *dir; + DirectoryHandle *handle; + + _GNOME_VFS_METHOD_PARAM_CHECK (uri != NULL); + _GNOME_VFS_METHOD_PARAM_CHECK (uri->text != NULL); + + result = open_efs_file (&fs, uri, EFS_READ); + if (result != GNOME_VFS_OK) + return result; + + efs_dir_open (&dir, ROOT_DIR (fs), uri->text, EFS_READ); + if (!dir) + result = gnome_vfs_result_from_errno (); + else { + handle = g_new (DirectoryHandle, 1); + + handle->uri = gnome_vfs_uri_ref (uri); + handle->fs = gnome_vfs_file_system_ref (fs); + handle->dir = dir; + handle->options = options; + handle->filter = filter; + + *method_handle = (GnomeVFSMethodHandle *)handle; + + result = GNOME_VFS_OK; + } + + if (!result) + result = gnome_vfs_file_system_unref (fs); + else + gnome_vfs_file_system_unref (fs); + + return result; +} + +static GnomeVFSResult +do_close_directory (GnomeVFSMethod *method, + GnomeVFSMethodHandle *method_handle, + GnomeVFSContext *context) +{ + DirectoryHandle *directory_handle; + + directory_handle = (DirectoryHandle *) method_handle; + + gnome_vfs_file_system_lock (directory_handle->fs); + efs_dir_close (directory_handle->dir); + gnome_vfs_file_system_unlock (directory_handle->fs); + + return directory_handle_destroy (directory_handle); +} + +static void +transfer_dir_to_info (GnomeVFSFileInfo *info, EFSDirEntry *entry) +{ + info->name = g_strdup (entry->name); + if (entry->type == EFS_DIR) + info->type = GNOME_VFS_FILE_TYPE_DIRECTORY; + else if (entry->type == EFS_FILE) + info->type = GNOME_VFS_FILE_TYPE_REGULAR; + else + info->type = GNOME_VFS_FILE_TYPE_UNKNOWN; + + info->size = entry->length; + + info->valid_fields = + GNOME_VFS_FILE_INFO_FIELDS_TYPE | + GNOME_VFS_FILE_INFO_FIELDS_SIZE; + +} + +static GnomeVFSResult +do_read_directory (GnomeVFSMethod *method, + GnomeVFSMethodHandle *method_handle, + GnomeVFSFileInfo *info, + GnomeVFSContext *context) +{ + DirectoryHandle *directory_handle; + EFSDirEntry *entry; + + directory_handle = (DirectoryHandle *) method_handle; + if (!directory_handle || !directory_handle->fs || + !ROOT_DIR (directory_handle->fs)) + return GNOME_VFS_ERROR_INTERNAL; + + gnome_vfs_file_system_lock (directory_handle->fs); + efs_dir_read (directory_handle->dir,entry); + gnome_vfs_file_system_unlock (directory_handle->fs); + if (!entry) + return GNOME_VFS_ERROR_EOF; + + transfer_dir_to_info (info, entry); + + return GNOME_VFS_OK; +} + + +static GnomeVFSResult +do_get_file_info (GnomeVFSMethod *method, + GnomeVFSURI *uri, + GnomeVFSFileInfo *info, + GnomeVFSFileInfoOptions options, + GnomeVFSContext *context) +{ + char *dir_name, *fname; + GnomeVFSFileSystem *fs; + EFSDir *dir; + GnomeVFSResult result; + + /* + * 1. Get the directory / file names split. + */ + dir_name = g_strdup (uri->text?uri->text:""); + if ((fname = strrchr (dir_name, '/'))) { + *fname = '\0'; + fname++; + } else { + fname = dir_name; + dir_name = g_strconcat ("/ ", dir_name, NULL); + g_free (fname); + fname = dir_name + 2; + dir_name [1] = '\0'; + } + + /* + * 2. If we are just looking for root then; return parent data. + */ + if (strlen (fname) == 0 || + strlen (dir_name) == 0 || + !strcmp (dir_name, "/")) { + g_free (dir_name); + + if (uri->parent->method->get_file_info == NULL) + return GNOME_VFS_ERROR_NOT_SUPPORTED; + + result = uri->parent->method->get_file_info + (uri->parent->method, uri->parent, + info, options, context); + if (result != GNOME_VFS_OK) + return result; + + /* + * Fiddle the info so it looks like a directory. + */ + if (info->valid_fields & GNOME_VFS_FILE_INFO_FIELDS_TYPE) { + if (info->type != GNOME_VFS_FILE_TYPE_DIRECTORY) + info->type = GNOME_VFS_FILE_TYPE_DIRECTORY; + else { + /* + * Ug, we can't put an efs file in a directory. + */ + return GNOME_VFS_ERROR_IS_DIRECTORY; + } + } else { + info->valid_fields |= GNOME_VFS_FILE_INFO_FIELDS_TYPE; + info->type = GNOME_VFS_FILE_TYPE_DIRECTORY; + } + return GNOME_VFS_OK; + } + + /* + * 3. Open the efs directory. + */ + result = open_efs_file (&fs, uri, EFS_READ); + if (result != GNOME_VFS_OK) + return result; + + gnome_vfs_file_system_lock (fs); + { + efs_dir_open (&dir, ROOT_DIR (fs), dir_name, EFS_READ); + if (!dir) { + result = gnome_vfs_result_from_errno (); + gnome_vfs_file_system_unref (fs); + g_free (dir_name); + } + } + gnome_vfs_file_system_unlock (fs); + + if (result) + return result; + + /* + * 4. Iterate over the files + */ + result = GNOME_VFS_ERROR_NOT_FOUND; + while (1) { + EFSDirEntry *entry; + + gnome_vfs_file_system_lock (fs); + efs_dir_read (dir, entry); + gnome_vfs_file_system_unlock (fs); + + if (!entry) + break; + + if (!strcmp (fname, entry->name)) { + transfer_dir_to_info (info, entry); + result = GNOME_VFS_OK; + break; + } + } + gnome_vfs_file_system_lock (fs); + efs_dir_close (dir); + gnome_vfs_file_system_unlock (fs); + + if (!result) + result = gnome_vfs_file_system_unref (fs); + else + gnome_vfs_file_system_unref (fs); + + return result; +} + + +static gboolean +do_is_local (GnomeVFSMethod *method, + const GnomeVFSURI *uri) +{ + g_return_val_if_fail (uri != NULL, FALSE); + + /* We are always a native filesystem. */ + return TRUE; +} + + +static GnomeVFSResult +do_make_directory (GnomeVFSMethod *method, + GnomeVFSURI *uri, + guint perm, + GnomeVFSContext *context) +{ + GnomeVFSResult result; + GnomeVFSFileSystem *fs; + EFSDir *dir; + + _GNOME_VFS_METHOD_PARAM_CHECK (uri != NULL); + _GNOME_VFS_METHOD_PARAM_CHECK (uri->text != NULL); + + result = open_efs_file (&fs, uri, EFS_RDWR | EFS_CREATE); + if (result != GNOME_VFS_OK) + return result; + + gnome_vfs_file_system_lock (fs); + { + efs_dir_open (&dir,ROOT_DIR (fs), uri->text, EFS_CREATE|EFS_EXCL); + if (!dir) + result = GNOME_VFS_ERROR_FILE_EXISTS; + else + result = GNOME_VFS_OK; + } + gnome_vfs_file_system_unlock (fs); + + if (!result) + result = gnome_vfs_file_system_unref (fs); + else + gnome_vfs_file_system_unref (fs); + + return result; +} + +static GnomeVFSResult +do_remove_directory (GnomeVFSMethod *method, + GnomeVFSURI *uri, + GnomeVFSContext *context) +{ + return GNOME_VFS_ERROR_NOT_SUPPORTED; +} + +static GnomeVFSResult +do_find_directory (GnomeVFSMethod *method, + GnomeVFSURI *near_uri, + GnomeVFSFindDirectoryKind kind, + GnomeVFSURI **result_uri, + gboolean create_if_needed, + guint permissions, + GnomeVFSContext *context) +{ + return GNOME_VFS_ERROR_NOT_SUPPORTED; +} + +static GnomeVFSResult +do_move (GnomeVFSMethod *method, + GnomeVFSURI *old_uri, + GnomeVFSURI *new_uri, + gboolean force_replace, + GnomeVFSContext *context) +{ + return GNOME_VFS_ERROR_NOT_SUPPORTED; +} + +static GnomeVFSResult +do_unlink (GnomeVFSMethod *method, + GnomeVFSURI *uri, + GnomeVFSContext *context) +{ + GnomeVFSResult result; + GnomeVFSFileSystem *fs; + + _GNOME_VFS_METHOD_PARAM_CHECK (uri != NULL); + _GNOME_VFS_METHOD_PARAM_CHECK (uri->text != NULL); + + result = open_efs_file (&fs, uri, EFS_RDWR); + if (result != GNOME_VFS_OK) + return result; + + gnome_vfs_file_system_lock (fs); + { + if (!efs_erase (ROOT_DIR (fs), uri->text)) + result = gnome_vfs_result_from_errno (); + } + gnome_vfs_file_system_unlock (fs); + + if (!result) + result = gnome_vfs_file_system_unref (fs); + else + gnome_vfs_file_system_unref (fs); + + return result; +} + +static GnomeVFSResult +do_check_same_fs (GnomeVFSMethod *method, + GnomeVFSURI *a, + GnomeVFSURI *b, + gboolean *same_fs_return, + GnomeVFSContext *context) +{ + return GNOME_VFS_ERROR_NOT_SUPPORTED; +} + +static GnomeVFSResult +do_set_file_info (GnomeVFSMethod *method, + GnomeVFSURI *uri, + const GnomeVFSFileInfo *info, + GnomeVFSSetFileInfoMask mask, + GnomeVFSContext *context) +{ + return GNOME_VFS_ERROR_NOT_SUPPORTED; +} + +static GnomeVFSMethod method = { + do_open, + do_create, + do_close, + do_read, + do_write, + do_seek, + do_tell, + do_truncate_handle, + do_open_directory, + do_close_directory, + do_read_directory, + do_get_file_info, + NULL, + do_is_local, + do_make_directory, + do_remove_directory, + do_move, + do_unlink, + do_check_same_fs, + do_set_file_info, + do_truncate, + do_find_directory +}; + +GnomeVFSMethod * +vfs_module_init (const char *method_name, const char *args) +{ + gnome_vfs_file_system_init (); + return &method; +} + +void +vfs_module_shutdown (GnomeVFSMethod *method) +{ + gnome_vfs_file_system_shutdown (); +} diff --git a/gnome-base/gnome-vfs/gnome-vfs-0.3.1.ebuild b/gnome-base/gnome-vfs/gnome-vfs-0.3.1.ebuild new file mode 100644 index 000000000000..1d3930bd9371 --- /dev/null +++ b/gnome-base/gnome-vfs/gnome-vfs-0.3.1.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Achim Gottinger <achim@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/gnome-base/gnome-vfs/gnome-vfs-0.3.1.ebuild,v 1.1 2000/10/14 11:38:34 achim Exp $ + +A=${P}.tar.gz +S=${WORKDIR}/${P} +DESCRIPTION="gnome-vfs" +SRC_URI="ftp://ftp.gnome.org/pub/GNOME/unstable/sources/${PN}/${A}" +HOMEPAGE="http://www.gnome.org/" + +src_unpack() { + unpack ${A} + cp ${FILESDIR}/efs-method.c ${S}/modules +} +src_compile() { + cd ${S} + try ./configure --host=${CHOST} --prefix=/opt/gnome \ + --with-cargets --with-gconf + try make +} + +src_install() { + cd ${S} + try make prefix=${D}/opt/gnome install + prepallman + dodoc AUTHORS COPYING* ChangeLog NEWS README +} + + + diff --git a/gnome-libs/gtkhtml/files/digest-gtkhtml-0.6.1 b/gnome-base/gtkhtml/files/digest-gtkhtml-0.6.1 index 3e9e90583db9..3e9e90583db9 100644 --- a/gnome-libs/gtkhtml/files/digest-gtkhtml-0.6.1 +++ b/gnome-base/gtkhtml/files/digest-gtkhtml-0.6.1 diff --git a/gnome-base/gtkhtml/files/gtkhtml-properties.c b/gnome-base/gtkhtml/files/gtkhtml-properties.c new file mode 100644 index 000000000000..aae7331001c8 --- /dev/null +++ b/gnome-base/gtkhtml/files/gtkhtml-properties.c @@ -0,0 +1,210 @@ +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ +/* This file is part of the GtkHTML library + + Copyright (C) 2000 Helix Code, Inc. + Authors: Radek Doulik (rodo@helixcode.com) + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHcANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 59 Temple Place - Suite 330, + Boston, MA 02111-1307, USA. +*/ + +#include <config.h> +#include "gtkhtml.h" +#include "gtkhtml-properties.h" + +GtkHTMLClassProperties * +gtk_html_class_properties_new (void) +{ + GtkHTMLClassProperties *p = g_new (GtkHTMLClassProperties, 1); + + /* default values */ + p->magic_links = TRUE; + p->keybindings_theme = g_strdup ("emacs"); + + return p; +} + +void +gtk_html_class_properties_destroy (GtkHTMLClassProperties *p) +{ + g_free (p->keybindings_theme); + g_free (p); +} + +#ifdef GTKHTML_HAVE_GCONF +#define GET(t,x,prop,f,c) \ + key = g_strconcat (GTK_HTML_GCONF_DIR, x, NULL); \ + val = gconf_client_get (client, key, NULL); \ + if (val) { f; p-> ## prop = c gconf_value_get_ ## t (val); \ + gconf_value_free (val); } \ + g_free (key); + +void +gtk_html_class_properties_load (GtkHTMLClassProperties *p, GConfClient *client) +{ + GConfValue *val; + gchar *key; + gboolean dflt; + + g_assert (client); + + GET (bool, "/magic_links", magic_links,,); + GET (string, "/keybindings_theme", keybindings_theme, + g_free (p->keybindings_theme), g_strdup); +} + +#define SET(t,x,prop) \ + { key = g_strconcat (GTK_HTML_GCONF_DIR, x, NULL); \ + gconf_client_set_ ## t (client, key, p-> ## prop, NULL); \ + g_free (key); } + + +void +gtk_html_class_properties_update (GtkHTMLClassProperties *p, GConfClient *client, GtkHTMLClassProperties *old) +{ + gchar *key; + + if (p->magic_links != old->magic_links) + SET (bool, "/magic_links", magic_links); + SET (string, "/keybindings_theme", keybindings_theme); +} + +#else +void +gtk_html_class_properties_load (GtkHTMLClassProperties *p) +{ + gnome_config_push_prefix (GTK_HTML_GNOME_CONFIG_PREFIX); + p->magic_links = gnome_config_get_bool ("magic_links=true"); + p->keybindings_theme = gnome_config_get_string ("keybindings_theme=ms"); + gnome_config_pop_prefix (); + gnome_config_sync (); +} + +void +gtk_html_class_properties_save (GtkHTMLClassProperties *p) +{ + gnome_config_push_prefix (GTK_HTML_GNOME_CONFIG_PREFIX); + gnome_config_set_bool ("magic_links", p->magic_links); + gnome_config_set_string ("keybindings_theme", p->keybindings_theme); + gnome_config_pop_prefix (); + gnome_config_sync (); +} +#endif + +void +gtk_html_class_properties_copy (GtkHTMLClassProperties *p1, + GtkHTMLClassProperties *p2) +{ + p1->magic_links = p2->magic_links; + g_free (p1->keybindings_theme); + p1->keybindings_theme = g_strdup (p2->keybindings_theme); +} + +/* enums */ + +static GtkEnumValue _gtk_html_cursor_skip_values[] = { + { GTK_HTML_CURSOR_SKIP_ONE, "GTK_HTML_CURSOR_SKIP_ONE", "one" }, + { GTK_HTML_CURSOR_SKIP_WORD, "GTK_HTML_CURSOR_SKIP_WORD", "word" }, + { GTK_HTML_CURSOR_SKIP_PAGE, "GTK_HTML_CURSOR_SKIP_WORD", "page" }, + { GTK_HTML_CURSOR_SKIP_ALL, "GTK_HTML_CURSOR_SKIP_ALL", "all" }, + { 0, NULL, NULL } +}; + +GtkType +gtk_html_cursor_skip_get_type () +{ + static GtkType cursor_skip_type = 0; + + if (!cursor_skip_type) + cursor_skip_type = gtk_type_register_enum ("GTK_HTML_CURSOR_SKIP", _gtk_html_cursor_skip_values); + + return cursor_skip_type; +} + +static GtkEnumValue _gtk_html_command_values[] = { + { GTK_HTML_COMMAND_UNDO, "GTK_HTML_COMMAND_UNDO", "undo" }, + { GTK_HTML_COMMAND_REDO, "GTK_HTML_COMMAND_REDO", "redo" }, + { GTK_HTML_COMMAND_COPY, "GTK_HTML_COMMAND_COPY", "copy" }, + { GTK_HTML_COMMAND_CUT, "GTK_HTML_COMMAND_CUT", "cut" }, + { GTK_HTML_COMMAND_PASTE, "GTK_HTML_COMMAND_PASTE", "paste" }, + { GTK_HTML_COMMAND_CUT_LINE, "GTK_HTML_COMMAND_CUT_LINE", "cut-line" }, + + { GTK_HTML_COMMAND_INSERT_PARAGRAPH, "GTK_HTML_COMMAND_INSERT_PARAGRAPH", "insert-paragraph" }, + { GTK_HTML_COMMAND_DELETE, "GTK_HTML_COMMAND_DELETE", "delete" }, + { GTK_HTML_COMMAND_DELETE_BACK, "GTK_HTML_COMMAND_DELETE_BACK", "delete-back" }, + { GTK_HTML_COMMAND_SET_MARK, "GTK_HTML_COMMAND_SET_MARK", "set-mark" }, + { GTK_HTML_COMMAND_DISABLE_SELECTION, "GTK_HTML_COMMAND_DISABLE_SELECTION", "disable-selection" }, + { GTK_HTML_COMMAND_TOGGLE_BOLD, "GTK_HTML_COMMAND_TOGGLE_BOLD", "toggle-bold" }, + { GTK_HTML_COMMAND_TOGGLE_ITALIC, "GTK_HTML_COMMAND_TOGGLE_ITALIC", "toggle-italic" }, + { GTK_HTML_COMMAND_TOGGLE_UNDERLINE, "GTK_HTML_COMMAND_TOGGLE_BOLD", "toggle-underline" }, + { GTK_HTML_COMMAND_TOGGLE_STRIKEOUT, "GTK_HTML_COMMAND_TOGGLE_BOLD", "toggle-strikeout" }, + { GTK_HTML_COMMAND_SIZE_MINUS_2, "GTK_HTML_COMMAND_SIZE_MINUS_2", "size-minus-2" }, + { GTK_HTML_COMMAND_SIZE_MINUS_1, "GTK_HTML_COMMAND_SIZE_MINUS_1", "size-minus-1" }, + { GTK_HTML_COMMAND_SIZE_PLUS_0, "GTK_HTML_COMMAND_SIZE_PLUS_0", "size-plus-0" }, + { GTK_HTML_COMMAND_SIZE_PLUS_1, "GTK_HTML_COMMAND_SIZE_PLUS_1", "size-plus-1" }, + { GTK_HTML_COMMAND_SIZE_PLUS_2, "GTK_HTML_COMMAND_SIZE_PLUS_2", "size-plus-2" }, + { GTK_HTML_COMMAND_SIZE_PLUS_3, "GTK_HTML_COMMAND_SIZE_PLUS_3", "size-plus-3" }, + { GTK_HTML_COMMAND_SIZE_PLUS_4, "GTK_HTML_COMMAND_SIZE_PLUS_4", "size-plus-4" }, + { GTK_HTML_COMMAND_SIZE_INCREASE, "GTK_HTML_COMMAND_SIZE_INCREASE", "size-inc" }, + { GTK_HTML_COMMAND_SIZE_DECREASE, "GTK_HTML_COMMAND_SIZE_DECREASE", "size-dec" }, + { GTK_HTML_COMMAND_ALIGN_LEFT, "GTK_HTML_COMMAND_ALIGN_LEFT", "align-left" }, + { GTK_HTML_COMMAND_ALIGN_CENTER, "GTK_HTML_COMMAND_ALIGN_CENTER", "align-center" }, + { GTK_HTML_COMMAND_ALIGN_RIGHT, "GTK_HTML_COMMAND_ALIGN_RIGHT", "align-right" }, + { GTK_HTML_COMMAND_INDENT_INC, "GTK_HTML_COMMAND_INDENT_INC", "indent-more" }, + { GTK_HTML_COMMAND_INDENT_DEC, "GTK_HTML_COMMAND_INDENT_DEC", "indent-less" }, + { GTK_HTML_COMMAND_PARAGRAPH_STYLE_NORMAL, "GTK_HTML_COMMAND_PARAGRAPH_STYLE_NORMAL", "style-normal" }, + { GTK_HTML_COMMAND_PARAGRAPH_STYLE_H1, "GTK_HTML_COMMAND_PARAGRAPH_STYLE_H1", "style-header1" }, + { GTK_HTML_COMMAND_PARAGRAPH_STYLE_H2, "GTK_HTML_COMMAND_PARAGRAPH_STYLE_H2", "style-header2" }, + { GTK_HTML_COMMAND_PARAGRAPH_STYLE_H3, "GTK_HTML_COMMAND_PARAGRAPH_STYLE_H3", "style-header3" }, + { GTK_HTML_COMMAND_PARAGRAPH_STYLE_H4, "GTK_HTML_COMMAND_PARAGRAPH_STYLE_H4", "style-header4" }, + { GTK_HTML_COMMAND_PARAGRAPH_STYLE_H5, "GTK_HTML_COMMAND_PARAGRAPH_STYLE_H5", "style-header5" }, + { GTK_HTML_COMMAND_PARAGRAPH_STYLE_H6, "GTK_HTML_COMMAND_PARAGRAPH_STYLE_H6", "style-header6" }, + { GTK_HTML_COMMAND_PARAGRAPH_STYLE_ADDRESS, "GTK_HTML_COMMAND_PARAGRAPH_STYLE_ADDRESS", "style-address" }, + { GTK_HTML_COMMAND_PARAGRAPH_STYLE_PRE, "GTK_HTML_COMMAND_PARAGRAPH_STYLE_PRE", "style-pre" }, + { GTK_HTML_COMMAND_PARAGRAPH_STYLE_ITEMDOTTED, "GTK_HTML_COMMAND_PARAGRAPH_STYLE_ITEMDOTTED", "style-itemdot" }, + { GTK_HTML_COMMAND_PARAGRAPH_STYLE_ITEMROMAN, "GTK_HTML_COMMAND_PARAGRAPH_STYLE_ITEMROMAN", "style-itemroman" }, + { GTK_HTML_COMMAND_PARAGRAPH_STYLE_ITEMDIGIT, "GTK_HTML_COMMAND_PARAGRAPH_STYLE_ITEMDIGIT", "style-itemdigit" }, + { GTK_HTML_COMMAND_MODIFY_SELECTION_UP, "GTK_HTML_COMMAND_MODIFY_SELECTION_UP", "selection-move-up" }, + { GTK_HTML_COMMAND_MODIFY_SELECTION_DOWN, "GTK_HTML_COMMAND_MODIFY_SELECTION_DOWN", "selection-move-down" }, + { GTK_HTML_COMMAND_MODIFY_SELECTION_LEFT, "GTK_HTML_COMMAND_MODIFY_SELECTION_LEFT", "selection-move-left" }, + { GTK_HTML_COMMAND_MODIFY_SELECTION_RIGHT, "GTK_HTML_COMMAND_MODIFY_SELECTION_RIGHT", "selection-move-right" }, + { GTK_HTML_COMMAND_MODIFY_SELECTION_BOL, "GTK_HTML_COMMAND_MODIFY_SELECTION_BOL", "selection-move-bol" }, + { GTK_HTML_COMMAND_MODIFY_SELECTION_EOL, "GTK_HTML_COMMAND_MODIFY_SELECTION_EOL", "selection-move-eol" }, + { GTK_HTML_COMMAND_MODIFY_SELECTION_BOD, "GTK_HTML_COMMAND_MODIFY_SELECTION_BOD", "selection-move-bod" }, + { GTK_HTML_COMMAND_MODIFY_SELECTION_EOD, "GTK_HTML_COMMAND_MODIFY_SELECTION_EOD", "selection-move-eod" }, + { GTK_HTML_COMMAND_MODIFY_SELECTION_PAGEUP, "GTK_HTML_COMMAND_MODIFY_SELECTION_PAGEUP", "selection-move-pageup" }, + { GTK_HTML_COMMAND_MODIFY_SELECTION_PAGEDOWN, "GTK_HTML_COMMAND_MODIFY_SELECTION_PAGEDOWN", "selection-move-pagedown" }, + { GTK_HTML_COMMAND_CAPITALIZE_WORD, "GTK_HTML_COMMAND_CAPITALIZE_WORD", "capitalize-word" }, + { GTK_HTML_COMMAND_UPCASE_WORD, "GTK_HTML_COMMAND_UPCASE_WORD", "upcase-word" }, + { GTK_HTML_COMMAND_DOWNCASE_WORD, "GTK_HTML_COMMAND_DOWNCASE_WORD", "downcase-word" }, +#ifdef GTKHTML_HAVE_PSPELL + + { GTK_HTML_COMMAND_SPELL_SUGGEST, "GTK_HTML_COMMAND_SPELL_SUGGEST", "spell-suggest" }, + { GTK_HTML_COMMAND_SPELL_PERSONAL_DICTIONARY_ADD, "GTK_HTML_COMMAND_SPELL_PERSONAL_DICTIONARY_ADD", "spell-personal-add" }, + { GTK_HTML_COMMAND_SPELL_SESSION_DICTIONARY_ADD, "GTK_HTML_COMMAND_SPELL_SESSION_DICTIONARY_ADD", "spell-session-add" }, +#endif + { 0, NULL, NULL } +}; + +GtkType +gtk_html_command_get_type () +{ + static GtkType command_type = 0; + + if (!command_type) + command_type = gtk_type_register_enum ("GTK_HTML_COMMAND", _gtk_html_command_values); + + return command_type; +} diff --git a/gnome-libs/gtkhtml/gtkhtml-0.6.1.ebuild b/gnome-base/gtkhtml/gtkhtml-0.6.1.ebuild index 6800560828a5..cee5f00801c6 100644 --- a/gnome-libs/gtkhtml/gtkhtml-0.6.1.ebuild +++ b/gnome-base/gtkhtml/gtkhtml-0.6.1.ebuild @@ -1,7 +1,7 @@ # Copyright 1999-2000 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Author Achim Gottinger <achim@gentoo.org> -# $Header: /var/cvsroot/gentoo-x86/gnome-libs/gtkhtml/gtkhtml-0.6.1.ebuild,v 1.3 2000/09/15 20:08:57 drobbins Exp $ +# $Header: /var/cvsroot/gentoo-x86/gnome-base/gtkhtml/gtkhtml-0.6.1.ebuild,v 1.1 2000/10/14 11:38:35 achim Exp $ P=gtkhtml-0.6.1 A=${P}.tar.gz @@ -10,9 +10,15 @@ DESCRIPTION="gtkhtml" SRC_URI="ftp://ftp.gnome.org/pub/GNOME/unstable/sources/gtkhtml/"${A} HOMEPAGE="http://www.gnome.org/" +src_unpack() { + unpack ${A} +} + src_compile() { cd ${S} - try ./configure --host=${CHOST} --prefix=/opt/gnome --with-bonobo + try ./configure --host=${CHOST} --prefix=/opt/gnome \ + --with-bonobo --with-gconf + # bonobo support doesn't work yet try make } diff --git a/gnome-base/libghttp/files/digest-libghttp-1.0.6 b/gnome-base/libghttp/files/digest-libghttp-1.0.6 deleted file mode 100644 index 2341c24d14a4..000000000000 --- a/gnome-base/libghttp/files/digest-libghttp-1.0.6 +++ /dev/null @@ -1 +0,0 @@ -MD5 f9428c3f6828e546697b6353e2653095 libghttp-1.0.6.tar.gz diff --git a/gnome-base/libghttp/files/digest-libghttp-1.0.7 b/gnome-base/libghttp/files/digest-libghttp-1.0.7 new file mode 100644 index 000000000000..02e03af22e7f --- /dev/null +++ b/gnome-base/libghttp/files/digest-libghttp-1.0.7 @@ -0,0 +1 @@ +MD5 7d93355b365efc34c3a146567def0d78 libghttp-1.0.7.tar.gz diff --git a/gnome-base/libghttp/libghttp-1.0.6.ebuild b/gnome-base/libghttp/libghttp-1.0.6.ebuild deleted file mode 100644 index d7b2ebeaaab5..000000000000 --- a/gnome-base/libghttp/libghttp-1.0.6.ebuild +++ /dev/null @@ -1,28 +0,0 @@ -# Copyright 1999-2000 Gentoo Technologies, Inc. -# Distributed under the terms of the GNU General Public License, v2 or later -# Author Achim Gottinger <achim@gentoo.org> -# $Header: /var/cvsroot/gentoo-x86/gnome-base/libghttp/libghttp-1.0.6.ebuild,v 1.3 2000/09/15 20:08:55 drobbins Exp $ - -P=libghttp-1.0.6 -A=${P}.tar.gz -S=${WORKDIR}/${P} -DESCRIPTION="libghttp" -SRC_URI="ftp://ftp.gnome.org/pub/GNOME/stable/sources/libghttp/"${A} -HOMEPAGE="http://www.gnome.org/" - -src_compile() { - cd ${S} - try ./configure --host=${CHOST} --prefix=/opt/gnome - try make -} - -src_install() { - cd ${S} - try make prefix=${D}/opt/gnome install - dodoc AUTHORS COPYING* ChangeLog README NEWS TODO - docinto html - dodoc doc/ghttp.html -} - - - diff --git a/gnome-base/libglade/libglade-0.14.ebuild b/gnome-base/libglade/libglade-0.14.ebuild index 29a1c36ab177..339e280fa603 100644 --- a/gnome-base/libglade/libglade-0.14.ebuild +++ b/gnome-base/libglade/libglade-0.14.ebuild @@ -1,13 +1,12 @@ # Copyright 1999-2000 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Author Achim Gottinger <achim@gentoo.org> -# $Header: /var/cvsroot/gentoo-x86/gnome-base/libglade/libglade-0.14.ebuild,v 1.3 2000/09/15 20:08:56 drobbins Exp $ +# $Header: /var/cvsroot/gentoo-x86/gnome-base/libglade/libglade-0.14.ebuild,v 1.4 2000/10/14 11:38:35 achim Exp $ -P=libglade-0.14 A=${P}.tar.gz S=${WORKDIR}/${P} DESCRIPTION="libglade" -SRC_URI="ftp://ftp.gnome.org/pub/GNOME/stable/sources/libglade/"${A} +SRC_URI="ftp://ftp.gnome.org/pub/GNOME/stable/sources/${PN}/${A}" HOMEPAGE="http://www.gnome.org/" src_unpack() { diff --git a/gnome-base/libgtop/libgtop-1.0.9.ebuild b/gnome-base/libgtop/libgtop-1.0.9.ebuild index 12853bf0737d..d53a2db1e873 100644 --- a/gnome-base/libgtop/libgtop-1.0.9.ebuild +++ b/gnome-base/libgtop/libgtop-1.0.9.ebuild @@ -1,18 +1,18 @@ # Copyright 1999-2000 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Author Achim Gottinger <achim@gentoo.org> -# $Header: /var/cvsroot/gentoo-x86/gnome-base/libgtop/libgtop-1.0.9.ebuild,v 1.3 2000/09/15 20:08:56 drobbins Exp $ +# $Header: /var/cvsroot/gentoo-x86/gnome-base/libgtop/libgtop-1.0.9.ebuild,v 1.4 2000/10/14 11:38:35 achim Exp $ -P=libgtop-1.0.9 A=${P}.tar.gz S=${WORKDIR}/${P} DESCRIPTION="libgtop" -SRC_URI="ftp://ftp.gnome.org/pub/GNOME/stable/sources/libgtop/"${A} +SRC_URI="ftp://ftp.gnome.org/pub/GNOME/stable/sources/${PN}/"${A} HOMEPAGE="http://www.gnome.org/" src_compile() { cd ${S} - LDFLAGS="-lncurses" try ./configure --host=${CHOST} --prefix=/opt/gnome + LDFLAGS="-lncurses" try ./configure --host=${CHOST} --prefix=/opt/gnome \ + --with-catgets try make } diff --git a/gnome-base/libxml/files/digest-libxml-1.8.10 b/gnome-base/libxml/files/digest-libxml-1.8.10 new file mode 100644 index 000000000000..f9b98c8fb800 --- /dev/null +++ b/gnome-base/libxml/files/digest-libxml-1.8.10 @@ -0,0 +1 @@ +MD5 4773efd97515916b9b4a7d6a303997d4 libxml-1.8.10.tar.gz diff --git a/gnome-base/libxml/files/digest-libxml-1.8.9 b/gnome-base/libxml/files/digest-libxml-1.8.9 deleted file mode 100644 index 6ddf52bfdde4..000000000000 --- a/gnome-base/libxml/files/digest-libxml-1.8.9 +++ /dev/null @@ -1 +0,0 @@ -MD5 ad50eec1ea625071726434cc5cf9d578 libxml-1.8.9.tar.gz diff --git a/gnome-base/libxml/libxml-1.8.9.ebuild b/gnome-base/libxml/libxml-1.8.10.ebuild index c08473d19b2a..47d40cb5e12f 100644 --- a/gnome-base/libxml/libxml-1.8.9.ebuild +++ b/gnome-base/libxml/libxml-1.8.10.ebuild @@ -1,13 +1,12 @@ # Copyright 1999-2000 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Author Achim Gottinger <achim@gentoo.org> -# $Header: /var/cvsroot/gentoo-x86/gnome-base/libxml/libxml-1.8.9.ebuild,v 1.3 2000/09/15 20:08:56 drobbins Exp $ +# $Header: /var/cvsroot/gentoo-x86/gnome-base/libxml/libxml-1.8.10.ebuild,v 1.1 2000/10/14 11:38:35 achim Exp $ -P=libxml-1.8.9 A=${P}.tar.gz S=${WORKDIR}/${P} DESCRIPTION="libxml" -SRC_URI="ftp://ftp.gnome.org/pub/GNOME/stable/sources/libxml/"${A} +SRC_URI="ftp://ftp.gnome.org/pub/GNOME/stable/sources/${PN}/"${A} HOMEPAGE="http://www.gnome.org/" src_compile() { @@ -25,3 +24,4 @@ src_install() { + diff --git a/gnome-base/mc/mc-4.5.51.ebuild b/gnome-base/mc/mc-4.5.51.ebuild index 60180773f860..84de86c836ef 100644 --- a/gnome-base/mc/mc-4.5.51.ebuild +++ b/gnome-base/mc/mc-4.5.51.ebuild @@ -1,7 +1,7 @@ # Copyright 1999-2000 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Author Achim Gottinger <achim@gentoo.org> -# $Header: /var/cvsroot/gentoo-x86/gnome-base/mc/mc-4.5.51.ebuild,v 1.3 2000/09/15 20:08:56 drobbins Exp $ +# $Header: /var/cvsroot/gentoo-x86/gnome-base/mc/mc-4.5.51.ebuild,v 1.4 2000/10/14 11:38:36 achim Exp $ P=mc-4.5.51 A=${P}.tar.gz @@ -20,7 +20,8 @@ src_unpack() { src_compile() { cd ${S} LDFLAGS="-lcrypt -lncurses" try ./configure --host=${CHOST} --prefix=/opt/gnome \ - --with-samba --with-ldap --with-pam + --with-samba --with-ldap --with-pam --with-vfs \ + --with-netrc --with-slang try make } diff --git a/gnome-base/oaf/files/digest-oaf-0.5.0 b/gnome-base/oaf/files/digest-oaf-0.5.0 deleted file mode 100644 index e5b09e47863e..000000000000 --- a/gnome-base/oaf/files/digest-oaf-0.5.0 +++ /dev/null @@ -1 +0,0 @@ -MD5 6c88954b72f478209f660ba1e2cbcf96 oaf-0.5.0.tar.gz diff --git a/gnome-base/oaf/files/digest-oaf-0.5.1 b/gnome-base/oaf/files/digest-oaf-0.5.1 new file mode 100644 index 000000000000..b9a4498db6a4 --- /dev/null +++ b/gnome-base/oaf/files/digest-oaf-0.5.1 @@ -0,0 +1 @@ +MD5 6e0cfcb089bbd9e7ca41d86d4d504d2a oaf-0.5.1.tar.gz diff --git a/gnome-base/oaf/oaf-0.5.0.ebuild b/gnome-base/oaf/oaf-0.5.1.ebuild index 02ad08aadd3a..0bd067a3167f 100644 --- a/gnome-base/oaf/oaf-0.5.0.ebuild +++ b/gnome-base/oaf/oaf-0.5.1.ebuild @@ -1,17 +1,16 @@ # Copyright 1999-2000 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Author Achim Gottinger <achim@gentoo.org> -# $Header: /var/cvsroot/gentoo-x86/gnome-base/oaf/oaf-0.5.0.ebuild,v 1.3 2000/09/15 20:08:56 drobbins Exp $ +# $Header: /var/cvsroot/gentoo-x86/gnome-base/oaf/oaf-0.5.1.ebuild,v 1.1 2000/10/14 11:38:36 achim Exp $ -P=oaf-0.5.0 A=${P}.tar.gz S=${WORKDIR}/${P} DESCRIPTION="Object Activation Framework for GNOME" -SRC_URI="ftp://ftp.gnome.org/pub/GNOME/unstable/sources/oaf/"${A} +SRC_URI="ftp://ftp.gnome.org/pub/GNOME/unstable/sources/${PN}/"${A} src_compile() { cd ${S} - try ./configure --host=${CHOST} --prefix=/opt/gnome + try ./configure --host=${CHOST} --prefix=/opt/gnome --with-catgets try make } @@ -19,7 +18,7 @@ src_install() { cd ${S} try make prefix=${D}/opt/gnome install dodoc AUTHORS COPYING* ChangeLog README - dodoc NEWS + dodoc NEWS TODO } diff --git a/gnome-extra/gtkhtml/files/digest-gtkhtml-0.6.1 b/gnome-extra/gtkhtml/files/digest-gtkhtml-0.6.1 new file mode 100644 index 000000000000..3e9e90583db9 --- /dev/null +++ b/gnome-extra/gtkhtml/files/digest-gtkhtml-0.6.1 @@ -0,0 +1 @@ +MD5 d303c543c0b7b6616862aebd7af75dc5 gtkhtml-0.6.1.tar.gz diff --git a/gnome-extra/gtkhtml/files/gtkhtml-properties.c b/gnome-extra/gtkhtml/files/gtkhtml-properties.c new file mode 100644 index 000000000000..aae7331001c8 --- /dev/null +++ b/gnome-extra/gtkhtml/files/gtkhtml-properties.c @@ -0,0 +1,210 @@ +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ +/* This file is part of the GtkHTML library + + Copyright (C) 2000 Helix Code, Inc. + Authors: Radek Doulik (rodo@helixcode.com) + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHcANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 59 Temple Place - Suite 330, + Boston, MA 02111-1307, USA. +*/ + +#include <config.h> +#include "gtkhtml.h" +#include "gtkhtml-properties.h" + +GtkHTMLClassProperties * +gtk_html_class_properties_new (void) +{ + GtkHTMLClassProperties *p = g_new (GtkHTMLClassProperties, 1); + + /* default values */ + p->magic_links = TRUE; + p->keybindings_theme = g_strdup ("emacs"); + + return p; +} + +void +gtk_html_class_properties_destroy (GtkHTMLClassProperties *p) +{ + g_free (p->keybindings_theme); + g_free (p); +} + +#ifdef GTKHTML_HAVE_GCONF +#define GET(t,x,prop,f,c) \ + key = g_strconcat (GTK_HTML_GCONF_DIR, x, NULL); \ + val = gconf_client_get (client, key, NULL); \ + if (val) { f; p-> ## prop = c gconf_value_get_ ## t (val); \ + gconf_value_free (val); } \ + g_free (key); + +void +gtk_html_class_properties_load (GtkHTMLClassProperties *p, GConfClient *client) +{ + GConfValue *val; + gchar *key; + gboolean dflt; + + g_assert (client); + + GET (bool, "/magic_links", magic_links,,); + GET (string, "/keybindings_theme", keybindings_theme, + g_free (p->keybindings_theme), g_strdup); +} + +#define SET(t,x,prop) \ + { key = g_strconcat (GTK_HTML_GCONF_DIR, x, NULL); \ + gconf_client_set_ ## t (client, key, p-> ## prop, NULL); \ + g_free (key); } + + +void +gtk_html_class_properties_update (GtkHTMLClassProperties *p, GConfClient *client, GtkHTMLClassProperties *old) +{ + gchar *key; + + if (p->magic_links != old->magic_links) + SET (bool, "/magic_links", magic_links); + SET (string, "/keybindings_theme", keybindings_theme); +} + +#else +void +gtk_html_class_properties_load (GtkHTMLClassProperties *p) +{ + gnome_config_push_prefix (GTK_HTML_GNOME_CONFIG_PREFIX); + p->magic_links = gnome_config_get_bool ("magic_links=true"); + p->keybindings_theme = gnome_config_get_string ("keybindings_theme=ms"); + gnome_config_pop_prefix (); + gnome_config_sync (); +} + +void +gtk_html_class_properties_save (GtkHTMLClassProperties *p) +{ + gnome_config_push_prefix (GTK_HTML_GNOME_CONFIG_PREFIX); + gnome_config_set_bool ("magic_links", p->magic_links); + gnome_config_set_string ("keybindings_theme", p->keybindings_theme); + gnome_config_pop_prefix (); + gnome_config_sync (); +} +#endif + +void +gtk_html_class_properties_copy (GtkHTMLClassProperties *p1, + GtkHTMLClassProperties *p2) +{ + p1->magic_links = p2->magic_links; + g_free (p1->keybindings_theme); + p1->keybindings_theme = g_strdup (p2->keybindings_theme); +} + +/* enums */ + +static GtkEnumValue _gtk_html_cursor_skip_values[] = { + { GTK_HTML_CURSOR_SKIP_ONE, "GTK_HTML_CURSOR_SKIP_ONE", "one" }, + { GTK_HTML_CURSOR_SKIP_WORD, "GTK_HTML_CURSOR_SKIP_WORD", "word" }, + { GTK_HTML_CURSOR_SKIP_PAGE, "GTK_HTML_CURSOR_SKIP_WORD", "page" }, + { GTK_HTML_CURSOR_SKIP_ALL, "GTK_HTML_CURSOR_SKIP_ALL", "all" }, + { 0, NULL, NULL } +}; + +GtkType +gtk_html_cursor_skip_get_type () +{ + static GtkType cursor_skip_type = 0; + + if (!cursor_skip_type) + cursor_skip_type = gtk_type_register_enum ("GTK_HTML_CURSOR_SKIP", _gtk_html_cursor_skip_values); + + return cursor_skip_type; +} + +static GtkEnumValue _gtk_html_command_values[] = { + { GTK_HTML_COMMAND_UNDO, "GTK_HTML_COMMAND_UNDO", "undo" }, + { GTK_HTML_COMMAND_REDO, "GTK_HTML_COMMAND_REDO", "redo" }, + { GTK_HTML_COMMAND_COPY, "GTK_HTML_COMMAND_COPY", "copy" }, + { GTK_HTML_COMMAND_CUT, "GTK_HTML_COMMAND_CUT", "cut" }, + { GTK_HTML_COMMAND_PASTE, "GTK_HTML_COMMAND_PASTE", "paste" }, + { GTK_HTML_COMMAND_CUT_LINE, "GTK_HTML_COMMAND_CUT_LINE", "cut-line" }, + + { GTK_HTML_COMMAND_INSERT_PARAGRAPH, "GTK_HTML_COMMAND_INSERT_PARAGRAPH", "insert-paragraph" }, + { GTK_HTML_COMMAND_DELETE, "GTK_HTML_COMMAND_DELETE", "delete" }, + { GTK_HTML_COMMAND_DELETE_BACK, "GTK_HTML_COMMAND_DELETE_BACK", "delete-back" }, + { GTK_HTML_COMMAND_SET_MARK, "GTK_HTML_COMMAND_SET_MARK", "set-mark" }, + { GTK_HTML_COMMAND_DISABLE_SELECTION, "GTK_HTML_COMMAND_DISABLE_SELECTION", "disable-selection" }, + { GTK_HTML_COMMAND_TOGGLE_BOLD, "GTK_HTML_COMMAND_TOGGLE_BOLD", "toggle-bold" }, + { GTK_HTML_COMMAND_TOGGLE_ITALIC, "GTK_HTML_COMMAND_TOGGLE_ITALIC", "toggle-italic" }, + { GTK_HTML_COMMAND_TOGGLE_UNDERLINE, "GTK_HTML_COMMAND_TOGGLE_BOLD", "toggle-underline" }, + { GTK_HTML_COMMAND_TOGGLE_STRIKEOUT, "GTK_HTML_COMMAND_TOGGLE_BOLD", "toggle-strikeout" }, + { GTK_HTML_COMMAND_SIZE_MINUS_2, "GTK_HTML_COMMAND_SIZE_MINUS_2", "size-minus-2" }, + { GTK_HTML_COMMAND_SIZE_MINUS_1, "GTK_HTML_COMMAND_SIZE_MINUS_1", "size-minus-1" }, + { GTK_HTML_COMMAND_SIZE_PLUS_0, "GTK_HTML_COMMAND_SIZE_PLUS_0", "size-plus-0" }, + { GTK_HTML_COMMAND_SIZE_PLUS_1, "GTK_HTML_COMMAND_SIZE_PLUS_1", "size-plus-1" }, + { GTK_HTML_COMMAND_SIZE_PLUS_2, "GTK_HTML_COMMAND_SIZE_PLUS_2", "size-plus-2" }, + { GTK_HTML_COMMAND_SIZE_PLUS_3, "GTK_HTML_COMMAND_SIZE_PLUS_3", "size-plus-3" }, + { GTK_HTML_COMMAND_SIZE_PLUS_4, "GTK_HTML_COMMAND_SIZE_PLUS_4", "size-plus-4" }, + { GTK_HTML_COMMAND_SIZE_INCREASE, "GTK_HTML_COMMAND_SIZE_INCREASE", "size-inc" }, + { GTK_HTML_COMMAND_SIZE_DECREASE, "GTK_HTML_COMMAND_SIZE_DECREASE", "size-dec" }, + { GTK_HTML_COMMAND_ALIGN_LEFT, "GTK_HTML_COMMAND_ALIGN_LEFT", "align-left" }, + { GTK_HTML_COMMAND_ALIGN_CENTER, "GTK_HTML_COMMAND_ALIGN_CENTER", "align-center" }, + { GTK_HTML_COMMAND_ALIGN_RIGHT, "GTK_HTML_COMMAND_ALIGN_RIGHT", "align-right" }, + { GTK_HTML_COMMAND_INDENT_INC, "GTK_HTML_COMMAND_INDENT_INC", "indent-more" }, + { GTK_HTML_COMMAND_INDENT_DEC, "GTK_HTML_COMMAND_INDENT_DEC", "indent-less" }, + { GTK_HTML_COMMAND_PARAGRAPH_STYLE_NORMAL, "GTK_HTML_COMMAND_PARAGRAPH_STYLE_NORMAL", "style-normal" }, + { GTK_HTML_COMMAND_PARAGRAPH_STYLE_H1, "GTK_HTML_COMMAND_PARAGRAPH_STYLE_H1", "style-header1" }, + { GTK_HTML_COMMAND_PARAGRAPH_STYLE_H2, "GTK_HTML_COMMAND_PARAGRAPH_STYLE_H2", "style-header2" }, + { GTK_HTML_COMMAND_PARAGRAPH_STYLE_H3, "GTK_HTML_COMMAND_PARAGRAPH_STYLE_H3", "style-header3" }, + { GTK_HTML_COMMAND_PARAGRAPH_STYLE_H4, "GTK_HTML_COMMAND_PARAGRAPH_STYLE_H4", "style-header4" }, + { GTK_HTML_COMMAND_PARAGRAPH_STYLE_H5, "GTK_HTML_COMMAND_PARAGRAPH_STYLE_H5", "style-header5" }, + { GTK_HTML_COMMAND_PARAGRAPH_STYLE_H6, "GTK_HTML_COMMAND_PARAGRAPH_STYLE_H6", "style-header6" }, + { GTK_HTML_COMMAND_PARAGRAPH_STYLE_ADDRESS, "GTK_HTML_COMMAND_PARAGRAPH_STYLE_ADDRESS", "style-address" }, + { GTK_HTML_COMMAND_PARAGRAPH_STYLE_PRE, "GTK_HTML_COMMAND_PARAGRAPH_STYLE_PRE", "style-pre" }, + { GTK_HTML_COMMAND_PARAGRAPH_STYLE_ITEMDOTTED, "GTK_HTML_COMMAND_PARAGRAPH_STYLE_ITEMDOTTED", "style-itemdot" }, + { GTK_HTML_COMMAND_PARAGRAPH_STYLE_ITEMROMAN, "GTK_HTML_COMMAND_PARAGRAPH_STYLE_ITEMROMAN", "style-itemroman" }, + { GTK_HTML_COMMAND_PARAGRAPH_STYLE_ITEMDIGIT, "GTK_HTML_COMMAND_PARAGRAPH_STYLE_ITEMDIGIT", "style-itemdigit" }, + { GTK_HTML_COMMAND_MODIFY_SELECTION_UP, "GTK_HTML_COMMAND_MODIFY_SELECTION_UP", "selection-move-up" }, + { GTK_HTML_COMMAND_MODIFY_SELECTION_DOWN, "GTK_HTML_COMMAND_MODIFY_SELECTION_DOWN", "selection-move-down" }, + { GTK_HTML_COMMAND_MODIFY_SELECTION_LEFT, "GTK_HTML_COMMAND_MODIFY_SELECTION_LEFT", "selection-move-left" }, + { GTK_HTML_COMMAND_MODIFY_SELECTION_RIGHT, "GTK_HTML_COMMAND_MODIFY_SELECTION_RIGHT", "selection-move-right" }, + { GTK_HTML_COMMAND_MODIFY_SELECTION_BOL, "GTK_HTML_COMMAND_MODIFY_SELECTION_BOL", "selection-move-bol" }, + { GTK_HTML_COMMAND_MODIFY_SELECTION_EOL, "GTK_HTML_COMMAND_MODIFY_SELECTION_EOL", "selection-move-eol" }, + { GTK_HTML_COMMAND_MODIFY_SELECTION_BOD, "GTK_HTML_COMMAND_MODIFY_SELECTION_BOD", "selection-move-bod" }, + { GTK_HTML_COMMAND_MODIFY_SELECTION_EOD, "GTK_HTML_COMMAND_MODIFY_SELECTION_EOD", "selection-move-eod" }, + { GTK_HTML_COMMAND_MODIFY_SELECTION_PAGEUP, "GTK_HTML_COMMAND_MODIFY_SELECTION_PAGEUP", "selection-move-pageup" }, + { GTK_HTML_COMMAND_MODIFY_SELECTION_PAGEDOWN, "GTK_HTML_COMMAND_MODIFY_SELECTION_PAGEDOWN", "selection-move-pagedown" }, + { GTK_HTML_COMMAND_CAPITALIZE_WORD, "GTK_HTML_COMMAND_CAPITALIZE_WORD", "capitalize-word" }, + { GTK_HTML_COMMAND_UPCASE_WORD, "GTK_HTML_COMMAND_UPCASE_WORD", "upcase-word" }, + { GTK_HTML_COMMAND_DOWNCASE_WORD, "GTK_HTML_COMMAND_DOWNCASE_WORD", "downcase-word" }, +#ifdef GTKHTML_HAVE_PSPELL + + { GTK_HTML_COMMAND_SPELL_SUGGEST, "GTK_HTML_COMMAND_SPELL_SUGGEST", "spell-suggest" }, + { GTK_HTML_COMMAND_SPELL_PERSONAL_DICTIONARY_ADD, "GTK_HTML_COMMAND_SPELL_PERSONAL_DICTIONARY_ADD", "spell-personal-add" }, + { GTK_HTML_COMMAND_SPELL_SESSION_DICTIONARY_ADD, "GTK_HTML_COMMAND_SPELL_SESSION_DICTIONARY_ADD", "spell-session-add" }, +#endif + { 0, NULL, NULL } +}; + +GtkType +gtk_html_command_get_type () +{ + static GtkType command_type = 0; + + if (!command_type) + command_type = gtk_type_register_enum ("GTK_HTML_COMMAND", _gtk_html_command_values); + + return command_type; +} diff --git a/gnome-extra/gtkhtml/gtkhtml-0.6.1.ebuild b/gnome-extra/gtkhtml/gtkhtml-0.6.1.ebuild new file mode 100644 index 000000000000..f7ee5908fa4b --- /dev/null +++ b/gnome-extra/gtkhtml/gtkhtml-0.6.1.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Achim Gottinger <achim@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/gnome-extra/gtkhtml/gtkhtml-0.6.1.ebuild,v 1.1 2000/10/14 11:38:35 achim Exp $ + +P=gtkhtml-0.6.1 +A=${P}.tar.gz +S=${WORKDIR}/${P} +DESCRIPTION="gtkhtml" +SRC_URI="ftp://ftp.gnome.org/pub/GNOME/unstable/sources/gtkhtml/"${A} +HOMEPAGE="http://www.gnome.org/" + +src_unpack() { + unpack ${A} +} + +src_compile() { + cd ${S} + try ./configure --host=${CHOST} --prefix=/opt/gnome \ + --with-bonobo --with-gconf + # bonobo support doesn't work yet + try make +} + +src_install() { + cd ${S} + try make prefix=${D}/opt/gnome install + dodoc AUTHORS COPYING* ChangeLog README + dodoc NEWS TODO +} + + + + + diff --git a/gnome-extra/libgda/files/digest-libgda-0.1.0 b/gnome-extra/libgda/files/digest-libgda-0.1.0 new file mode 100644 index 000000000000..70c3a2fff804 --- /dev/null +++ b/gnome-extra/libgda/files/digest-libgda-0.1.0 @@ -0,0 +1 @@ +MD5 32bc66cf394f51a8166d695e5d4a736a libgda-0.1.0.tar.gz diff --git a/gnome-extra/libgda/libgda-0.1.0.ebuild b/gnome-extra/libgda/libgda-0.1.0.ebuild new file mode 100644 index 000000000000..9afd874f48a1 --- /dev/null +++ b/gnome-extra/libgda/libgda-0.1.0.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Achim Gottinger <achim@gentoo.org> +# $Header + +A=${P}.tar.gz +S=${WORKDIR}/${P} +DESCRIPTION="gda lib" +SRC_URI="ftp://ftp.gnome.org/pub/GNOME/stable/sources/gnome-db/${A}" +HOMEPAGE="http://www.gnome.org/gnome-db" + +src_unpack() { + unpack ${A} +} + +src_compile() { + cd ${S} + try ./configure --host=${CHOST} --prefix=/opt/gnome \ + --with-mysql=/usr --with-ldap=/usr --with-catgets + try make +} + +src_install() { + cd ${S} + try make prefix=${D}/opt/gnome install + + dodoc AUTHORS COPYING.* ChangeLog NEWS README THANKS TODO +} + + + diff --git a/gnome-extra/mc/mc-4.5.51.ebuild b/gnome-extra/mc/mc-4.5.51.ebuild index d11ca6185df0..a15c247246a2 100644 --- a/gnome-extra/mc/mc-4.5.51.ebuild +++ b/gnome-extra/mc/mc-4.5.51.ebuild @@ -1,7 +1,7 @@ # Copyright 1999-2000 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Author Achim Gottinger <achim@gentoo.org> -# $Header: /var/cvsroot/gentoo-x86/gnome-extra/mc/mc-4.5.51.ebuild,v 1.3 2000/09/15 20:08:56 drobbins Exp $ +# $Header: /var/cvsroot/gentoo-x86/gnome-extra/mc/mc-4.5.51.ebuild,v 1.4 2000/10/14 11:38:36 achim Exp $ P=mc-4.5.51 A=${P}.tar.gz @@ -20,7 +20,8 @@ src_unpack() { src_compile() { cd ${S} LDFLAGS="-lcrypt -lncurses" try ./configure --host=${CHOST} --prefix=/opt/gnome \ - --with-samba --with-ldap --with-pam + --with-samba --with-ldap --with-pam --with-vfs \ + --with-netrc --with-slang try make } diff --git a/gnome-libs/gal/files/digest-gal-0.1 b/gnome-libs/gal/files/digest-gal-0.1 new file mode 100644 index 000000000000..99c4690e536d --- /dev/null +++ b/gnome-libs/gal/files/digest-gal-0.1 @@ -0,0 +1 @@ +MD5 f7442798ab5b2df824b07ada32057eeb gal-0.1.tar.gz diff --git a/gnome-libs/gal/gal-0.1.ebuild b/gnome-libs/gal/gal-0.1.ebuild new file mode 100644 index 000000000000..3fadd2c6c914 --- /dev/null +++ b/gnome-libs/gal/gal-0.1.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Achim Gottinger <achim@gentoo.org> +# $Header + +A=${P}.tar.gz +S=${WORKDIR}/${P} +DESCRIPTION="The Gnome Application Libraries" +SRC_URI="ftp://ftp.gnome.org/pub/GNOME/unstable/sources/${PN}/${A}" +HOMEPAGE="http://www.gnome.org/" + +src_unpack() { + unpack ${A} +} + +src_compile() { + cd ${S} + try ./configure --host=${CHOST} --prefix=/opt/gnome --with-catgets + try make +} + +src_install() { + cd ${S} + try make prefix=${D}/opt/gnome install + prepman /opt/gnome + + dodoc AUTHORS COPYING ChangeLog NEWS README +} + + + diff --git a/gnome-libs/libgda/files/digest-libgda-0.1.0 b/gnome-libs/libgda/files/digest-libgda-0.1.0 new file mode 100644 index 000000000000..70c3a2fff804 --- /dev/null +++ b/gnome-libs/libgda/files/digest-libgda-0.1.0 @@ -0,0 +1 @@ +MD5 32bc66cf394f51a8166d695e5d4a736a libgda-0.1.0.tar.gz diff --git a/gnome-libs/libgda/libgda-0.1.0.ebuild b/gnome-libs/libgda/libgda-0.1.0.ebuild new file mode 100644 index 000000000000..9afd874f48a1 --- /dev/null +++ b/gnome-libs/libgda/libgda-0.1.0.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Achim Gottinger <achim@gentoo.org> +# $Header + +A=${P}.tar.gz +S=${WORKDIR}/${P} +DESCRIPTION="gda lib" +SRC_URI="ftp://ftp.gnome.org/pub/GNOME/stable/sources/gnome-db/${A}" +HOMEPAGE="http://www.gnome.org/gnome-db" + +src_unpack() { + unpack ${A} +} + +src_compile() { + cd ${S} + try ./configure --host=${CHOST} --prefix=/opt/gnome \ + --with-mysql=/usr --with-ldap=/usr --with-catgets + try make +} + +src_install() { + cd ${S} + try make prefix=${D}/opt/gnome install + + dodoc AUTHORS COPYING.* ChangeLog NEWS README THANKS TODO +} + + + diff --git a/gnome-libs/libole2/libole2-0.1.6.ebuild b/gnome-libs/libole2/libole2-0.1.6.ebuild index 5ad07d823298..018266bfd27b 100644 --- a/gnome-libs/libole2/libole2-0.1.6.ebuild +++ b/gnome-libs/libole2/libole2-0.1.6.ebuild @@ -3,11 +3,10 @@ # Author Achim Gottinger <achim@gentoo.org> # $Header -P=libole2-0.1.6 A=${P}.tar.gz S=${WORKDIR}/${P} DESCRIPTION="libole2" -SRC_URI="ftp://ftp.gnome.org/pub/GNOME/unstable/sources/libole2/${A}" +SRC_URI="ftp://ftp.gnome.org/pub/GNOME/unstable/sources/${PN}/${A}" HOMEPAGE="http://www.gnome.org/" src_unpack() { @@ -16,7 +15,7 @@ src_unpack() { src_compile() { cd ${S} - try ./configure --host=${CHOST} --prefix=/opt/gnome --with-catgets + try ./configure --host=${CHOST} --prefix=/opt/gnome try make } diff --git a/gnome-libs/libunicode/files/digest-libunicode-0.4 b/gnome-libs/libunicode/files/digest-libunicode-0.4 new file mode 100644 index 000000000000..dd54d95a09f0 --- /dev/null +++ b/gnome-libs/libunicode/files/digest-libunicode-0.4 @@ -0,0 +1 @@ +MD5 d788ed7595a0250931f421068f4a0083 libunicode-0.4.tar.gz diff --git a/gnome-libs/libunicode/libunicode-0.4.ebuild b/gnome-libs/libunicode/libunicode-0.4.ebuild new file mode 100644 index 000000000000..922360f4c2b6 --- /dev/null +++ b/gnome-libs/libunicode/libunicode-0.4.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Achim Gottinger <achim@gentoo.org> +# $Header + +A=${P}.tar.gz +S=${WORKDIR}/${P} +DESCRIPTION="The Gnome Application Libraries" +SRC_URI="ftp://ftp.gnome.org/pub/GNOME/unstable/sources/${PN}/${A}" +HOMEPAGE="http://www.gnome.org/" + +src_unpack() { + unpack ${A} +} + +src_compile() { + cd ${S} + try ./configure --host=${CHOST} --prefix=/opt/gnome + try make +} + +src_install() { + cd ${S} + try make prefix=${D}/opt/gnome install + + dodoc AUTHORS COPYING.* ChangeLog NEWS README THANKS TODO +} + + + diff --git a/media-libs/gdk-pixbuf/gdk-pixbuf-0.9.0.ebuild b/media-libs/gdk-pixbuf/gdk-pixbuf-0.9.0.ebuild index d72bde8c4760..cdadd1a95b50 100644 --- a/media-libs/gdk-pixbuf/gdk-pixbuf-0.9.0.ebuild +++ b/media-libs/gdk-pixbuf/gdk-pixbuf-0.9.0.ebuild @@ -1,12 +1,12 @@ # Copyright 1999-2000 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Author Achim Gottinger <achim@gentoo.org> -# $Header: /var/cvsroot/gentoo-x86/media-libs/gdk-pixbuf/gdk-pixbuf-0.9.0.ebuild,v 1.2 2000/09/15 20:08:55 drobbins Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-libs/gdk-pixbuf/gdk-pixbuf-0.9.0.ebuild,v 1.3 2000/10/14 11:38:34 achim Exp $ A=${P}.tar.gz S=${WORKDIR}/${P} DESCRIPTION="GNOME Image Library" -SRC_URI="ftp://ftp.gnome.org/pub/GNOME/unstable/sources/gdk-pixbuf/"${A} +SRC_URI="ftp://ftp.gnome.org/pub/GNOME/unstable/sources/${PN}/"${A} src_compile() { @@ -24,3 +24,4 @@ src_install() { + |