# Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /home/cvsroot/gentoo-x86/app-games/gtetrinet/gtetrinet-0.4.4.ebuild,v 1.3 2002/11/20 13:16:25 vapier Exp $ DESCRIPTION="Gtk Tetrinet Clone for linux" SRC_URI="mirror://sourceforge/gtetrinet/${P}.tar.gz http://ftp.debian.org/debian/pool/main/g/gtetrinet/gtetrinet_0.5.1-2.diff.gz" HOMEPAGE="http://gtetrinet.sourceforge.net/" SLOT="0" KEYWORDS="x86" LICENSE="GPL-2" IUSE="gtk2 nls ipv6" inherit eutils DEPEND=">=x11-libs/gtk+-2 >=media-sound/esound-0.2.28 >=gnome-base/ORBit-0.5.16 >=gnome-base/gconf-1.2.1 >=gnome-base/libgnome-2 >=gnome-base/libgnomeui-2 >=gnome-base/libbonoboui-2 dev-libs/libxml2 nls? ( sys-devel/gettext )" src_unpack() { unpack ${P}.tar.gz cd ${S} EPATCH_SINGLE_MSG="Applying gtetrinet-0.5.1-2 patch..." epatch ${DISTDIR}/gtetrinet_0.5.1-2.diff.gz } src_compile() { local myconf="" use nls || myconf="--disable-nls" use ipv6 && myconf="$myconf --enable-ipv6" econf ${myconf} emake || die "Compilation failed" } src_install() { einstall dodoc ABOUT-NLS AUTHORS COPYING ChangeLog NEWS README }