# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-p2p/teknap/teknap-1.4.1-r1.ebuild,v 1.3 2004/06/28 03:47:20 squinky86 Exp $ inherit eutils IUSE="xmms gtk ipv6 tcpd" DESCRIPTION="TekNap is a console Napster/OpenNap client" SRC_URI="http://www.cactuz.org/jnbek/teknap/TekNap-1.4.orig.tar.gz http://www.cactuz.org/jnbek/teknap/TekNap-1.4-1.diff.gz" HOMEPAGE="http://www.cactuz.org/jnbek/teknap" SLOT="0" KEYWORDS="~x86 ~ppc ~amd64" LICENSE="as-is" DEPEND="virtual/libc >=sys-libs/ncurses-5.2 gtk? ( =x11-libs/gtk+-1.2* ) tcpd? ( sys-apps/tcp-wrappers ) xmms? ( media-sound/xmms )" S=${WORKDIR}/${PN}-1.4 src_unpack() { unpack TekNap-1.4.orig.tar.gz epatch ${DISTDIR}/TekNap-1.4-1.diff.gz epatch ${FILESDIR}/teknap-1.4-gcc3.3.patch epatch ${FILESDIR}/teknap-1.4-gcc3.4.patch } src_compile() { econf `use_enable tcpd wrap` \ `use_enable xmms` \ `use_enable ipv6` \ `use_enable gtk` \ --enable-cdrom || die make || die } src_install () { einstall datadir=${D}/usr/share/TekNap install || die rm ${D}/usr/bin/TekNap dosym TekNap-1.4 /usr/bin/TekNap dodoc COPYRIGHT README TODO Changelog doc/*.txt doc/TekNap.faq doc/bugs doc/link-guidelines doc/macosx.notes doman TekNap.1 }