# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/x11-themes/gtk-engines-industrial/gtk-engines-industrial-0.2.36.ebuild,v 1.4 2005/08/14 18:58:54 metalgod Exp $ inherit eutils MY_PN="gtk-industrial-engine" DESCRIPTION="GTK+ 1 Industrial theme engine" HOMEPAGE="http://art.gnome.org/themes/gtk_engines/672" SRC_URI="http://art.gnome.org/download/themes/gtk_engines/672/${MY_PN}_${PV}-2.tar.gz" LICENSE="GPL-2" SLOT="1" KEYWORDS="~amd64 ~ppc ~sparc ~x86" IUSE="static" DEPEND="=x11-libs/gtk+-1.2*" S=${WORKDIR}/${MY_PN}-${PV} src_unpack() { unpack ${A} cd ${S} # Only install the gtk1 engine epatch ${FILESDIR}/${P}-gtk1_only.patch # Hack so it can find the required files cp gtk-common/* gtk1-engine libtoolize --copy --force aclocal || die "aclocal failed" autoheader || die "autoheader failed" automake --add-missing --gnu || die "automake failed" autoconf || die "autoconf failed" } src_compile() { local myconf="$(use_enable static)" econf $myconf || die "Configuration failed" emake || die "Compilation failed" } src_install() { make DESTDIR="${D}" install || die "Installation failed" dodoc ChangeLog README }