# Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 IUSE="gtk2" S=${WORKDIR}/${P} DESCRIPTION="A GTK+ frontend for Snes9X" SRC_URI="http://bard.sytes.net/debian/dists/unstable/main/source/${PN}_${PV}-1.tar.gz" HOMEPAGE="http://bard.sytes.net/goosnes/" SLOT="0" LICENSE="GPL-2" KEYWORDS="x86 -ppc -sparc -sparc64" DEPEND="( gtk2? >=x11-libs/gtk+-2.0.0 : =x11-libs/gtk+-1.2* ) app-emulation/snes9x" src_compile() { if [ -n "`use gtk2`" ] then econf --with-gtk-version=2.0 || die else econf || die fi emake || die } src_install () { make DESTDIR=${D} install || die dodoc AUTHORS COPYING ChangeLog README }