# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit gnome2 DESCRIPTION="GAI - General Applet Interface Library" HOMEPAGE="http://gai.sourceforge.net/" SRC_URI="http://belnet.dl.sourceforge.net/sourceforge/gai/${P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="gnome" DEPEND="gnome? ( >=gnome-base/libgnome-2.2.0 ) gnome? ( >=gnome-base/gnome-panel-1.4.1 ) dev-util/pkgconfig >=x11-libs/gtk+-2" RDEPEND=${DEPEND} S=${WORKDIR}/${P} src_unpack() { unpack ${A} epatch ${FILESDIR}/${P}.patch } src_compile() { local myconf use gnome \ && myconf="${myconf}" \ || myconf="${myconf} --disable-gnome" \ ./configure \ --host=${CHOST} \ --prefix=/usr \ ${myconf} || die "./configure failed" emake || die } src_install() { make DESTDIR=${D} install || die "make install failed" }