summaryrefslogtreecommitdiff
blob: f79beea20a3e3a7e6e6e2fd810c9f725cdfa27f6 (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
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-p2p/gift-cvs/gift-cvs-0.10.0.ebuild,v 1.2 2002/11/30 12:11:16 verwilst Exp $

DESCRIPTION="Lets you connect to OpenFT, a decentralised p2p network like FastTrack"
HOMEPAGE="http://gift.sourceforge.net"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="x86 sparc sparc64"

DEPENDS="virtual/glibc
        >=sys-libs/zlib-1.1.4"

inherit cvs debug flag-o-matic

strip-flags

ECVS_SERVER="cvs.gift.sourceforge.net:/cvsroot/gift"
ECVS_MODULE="giFT"
ECVS_TOP_DIR="${DISTDIR}/cvs-src/${PN}"
S=${WORKDIR}/${ECVS_MODULE}

src_compile() {

        cd ${S}
        ./autogen.sh --prefix=/usr --host=${CHOST} || die
        emake || die

}

src_install() {

        einstall giftconfdir=${D}/etc/giFT \
                 plugindir=${D}/usr/lib/giFT \
                 giftdatadir=${D}/usr/share/giFT \
                 giftperldir=${D}/usr/bin || die
        cd ${D}/usr/bin
        mv giFT-setup giFT-setup.orig
        sed 's:$prefix/etc/giFT/:/etc/giFT/:' giFT-setup.orig > giFT-setup
        chmod +x ${D}/usr/bin/giFT-setup

}