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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Mon Jun 28 02:34:37 2004 UTC (15 years, 3 months ago) by squinky86
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
version bumps, closes #55225

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

  ViewVC Help
Powered by ViewVC 1.1.20