/[gentoo-x86]/net-p2p/bittornado/bittornado-0.1.3.ebuild
Gentoo

Contents of /net-p2p/bittornado/bittornado-0.1.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu Apr 22 14:25:54 2004 UTC (15 years, 5 months ago) by mholzer
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
x86 stable & cleanup

1 # Copyright 1999-2004 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /home/cvsroot/gentoo-x86/net-p2p/bittornado/bittornado-0.1.3.ebuild,v 1.1 2004/04/05 07:38:47 eradicator Exp $
4
5 inherit distutils
6 inherit eutils
7
8 MY_PN="BitTornado"
9 MY_P="${MY_PN}-${PV}"
10
11 DESCRIPTION="TheShad0w's experimental BitTorrent client"
12 HOMEPAGE="http://www.bittornado.com/"
13 SRC_URI="http://e.scarywater.net/bt/download/${MY_P}.tar.gz"
14 LICENSE="MIT"
15 SLOT="0"
16
17 KEYWORDS="~x86 ~amd64"
18 IUSE="X"
19
20 RDEPEND="X? ( >=dev-python/wxPython-2.2 )
21 >=dev-lang/python-2.0
22 !virtual/bittorrent"
23
24 DEPEND="${RDEPEND}
25 >=sys-apps/sed-4.0.5"
26
27 PROVIDE="virtual/bittorrent"
28
29 S="${WORKDIR}/${MY_PN}-CVS"
30 PIXMAPLOC="/usr/share/pixmaps/bittorrent"
31
32 # Why did we do this???
33 #src_unpack() {
34 # unpack ${A}
35 # sed -i "s:os.path.abspath(os.path.dirname(sys.argv\[0\])):\"${PIXMAPLOC}/\":" ${S}/btdownloadgui.py || die "sed failure 1"
36 #}
37
38 src_install() {
39 distutils_src_install
40
41 dodir etc
42 cp -a /etc/mailcap ${D}/etc/
43 MAILCAP_STRING="application/x-bittorrent; /usr/bin/btdownloadgui.py '%s'; test=test -n \"\$DISPLAY\""
44
45 if use X; then
46 dodir ${PIXMAPLOC}
47 insinto ${PIXMAPLOC}
48 doins *.ico *.gif
49 if [ -n "`grep 'application/x-bittorrent' ${D}/etc/mailcap`" ]; then
50 # replace bittorrent entry if it already exists
51 einfo "updating bittorrent mime info"
52 sed -i "s,application/x-bittorrent;.*,${MAILCAP_STRING}," ${D}/etc/mailcap
53 else
54 # add bittorrent entry if it doesn't exist
55 einfo "adding bittorrent mime info"
56 echo "${MAILCAP_STRING}" >> ${D}/etc/mailcap
57 fi
58 else
59 # get rid of any reference to the not-installed gui version
60 sed -i '/btdownloadgui/d' ${D}/etc/mailcap
61 rm ${D}/usr/bin/*gui.py
62 fi
63 }

  ViewVC Help
Powered by ViewVC 1.1.20