summaryrefslogtreecommitdiff
blob: fd9e89fc8228e13213d625140c0e66845059c0c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Your Name <your email>
# $Header: /var/cvsroot/gentoo-x86/media-sound/teknap/teknap-1.3f-r1.ebuild,v 1.1 2001/10/06 10:08:19 azarah Exp $

P=TekNap-${PV}
A=${P}.tar.gz
S=${WORKDIR}/TekNap
DESCRIPTION="TekNap is a console Napster/OpenNap client"
SRC_URI="ftp://ftp.teknap.com/pub/TekNap/${A}"
HOMEPAGE="http://www.TekNap.com/"

DEPEND="virtual/glibc >=sys-libs/ncurses-5.2
        gtk? ( >=x11-libs/gtk+-1.2.10-r4 )
        tcpd? ( sys-apps/tcp-wrappers )
        xmms? ( media-sound/xmms )"

src_compile() {
    local myconf
    if [ "`use gtk`" ] ; then
      myconf="--with-gtk"
    fi
    if [ "`use tcpd`" ] ; then
      myconf="$myconf --enable-wrap"
    fi
    if [ "`use xmms`" ] ; then
      myconf="$myconf --enable-xmms"
    fi

    try ./configure --prefix=/usr --mandir=/usr/share/man --enable-cdrom --enable-ipv6 $myconf --host=${CHOST}
    try make

}

src_install () {

    try make prefix=${D}/usr mandir=${D}/usr/share/man install
    rm ${D}/usr/bin/TekNap
    dosym TekNap-1.3f /usr/bin/TekNap
    dodoc COPYRIGHT README TODO Changelog
    docinto txt
    cd doc
    dodoc *.txt TekNap.faq bugs link-guidelines macosx.notes
    doman TekNap.1
}