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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Tue Jun 1 21:27:19 2004 UTC (15 years, 4 months ago) by mholzer
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
x86 stable

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.2.0.ebuild,v 1.3 2004/05/16 12:52:26 mholzer 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 ~ppc"
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/bittornado"
31
32 src_unpack() {
33 unpack ${A}
34
35 # fixes wrong icons path
36 sed -i "s:os.path.abspath(os.path.dirname(os.path.realpath(sys.argv\[0\]))):\"${PIXMAPLOC}/\":" ${S}/btdownloadgui.py
37 }
38
39 src_install() {
40 distutils_src_install
41
42 dodir etc
43 cp -a /etc/mailcap ${D}/etc/
44 MAILCAP_STRING="application/x-bittorrent; /usr/bin/btdownloadgui.py '%s'; test=test -n \"\$DISPLAY\""
45
46 rm ${D}/usr/bin/*.ico
47 rm ${D}/usr/bin/*.gif
48
49 if use X; then
50 dodir ${PIXMAPLOC}
51 insinto ${PIXMAPLOC}
52 doins *.ico *.gif
53 if [ -n "`grep 'application/x-bittorrent' ${D}/etc/mailcap`" ]; then
54 # replace bittorrent entry if it already exists
55 einfo "updating bittorrent mime info"
56 sed -i "s,application/x-bittorrent;.*,${MAILCAP_STRING}," ${D}/etc/mailcap
57 else
58 # add bittorrent entry if it doesn't exist
59 einfo "adding bittorrent mime info"
60 echo "${MAILCAP_STRING}" >> ${D}/etc/mailcap
61 fi
62 else
63 # get rid of any reference to the not-installed gui version
64 sed -i '/btdownloadgui/d' ${D}/etc/mailcap
65 rm ${D}/usr/bin/*gui.py
66 fi
67 }
68

  ViewVC Help
Powered by ViewVC 1.1.20