# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/gnome-base/gnome-core/gnome-core-1.4.2-r1.ebuild,v 1.12 2004/07/14 15:08:25 agriffis Exp $ IUSE="kde nls cups" inherit libtool gnome.org DESCRIPTION="Core components of the GNOME desktop environment" HOMEPAGE="http://www.gnome.org/" KEYWORDS="x86 ppc sparc alpha" LICENSE="GPL-2" SLOT="0" RDEPEND="=gnome-base/control-center-1.4* =gnome-base/libglade-0.17* >=gnome-base/gnome-libs-1.4.1.2-r1 >=media-libs/gdk-pixbuf-0.16.0-r1 cups? ( >=gnome-base/gnome-print-0.35 ) !gnome-base/gnome-session !x11-terms/gnome-terminal !gnome-base/gnome-desktop" # This should not be installed if the user is using Gnome2, as it # overwrite files from those packages. If some app needs gnome-core # for the panel-applet, please fix it to use: # # DEPEND=" configure.in # Libtoolize elibtoolize aclocal -I macros automake --add-missing autoconf } src_compile() { local myconf="" local myldflags="" use nls || myconf="${myconf} --disable-nls" if use kde then myconf="${myconf} --with-kde-datadir=/usr/share" fi # Fix build against gdk-pixbuf-0.12 and later CFLAGS="${CFLAGS} `gdk-pixbuf-config --cflags`" ./configure --host=${CHOST} \ --prefix=/usr \ --mandir=/usr/share/man \ --sysconfdir=/etc \ --localstatedir=/var/lib \ ${myconf} || die cd panel cp gnome-panel-screenshot.c gnome-panel-screenshot.c.orig cat gnome-panel-screenshot.c.orig | \ sed 's:\(^#include \):\1\n#include :' \ > gnome-panel-screenshot.c cd ${S} emake || die } src_install() { make prefix=${D}/usr \ mandir=${D}/usr/share/man \ sysconfdir=${D}/etc \ localstatedir=${D}/var/lib \ install || die # Support for new X session management scheme exeinto /etc/X11/Sessions doexe ${FILESDIR}/Gnome dodoc AUTHORS COPYING* ChangeLog README NEWS }