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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Sat Aug 14 00:41:35 2004 UTC (15 years, 2 months ago) by squinky86
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
stable on x86

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.2.ebuild,v 1.5 2004/07/06 09:57:00 kang 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.1
21 !virtual/bittorrent"
22 DEPEND="${RDEPEND}
23 app-arch/unzip
24 >=sys-apps/sed-4.0.5"
25 PROVIDE="virtual/bittorrent"
26
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
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 if use X; then
47 dodir ${PIXMAPLOC}
48 insinto ${PIXMAPLOC}
49 doins *.ico *.gif
50 if [ -n "`grep 'application/x-bittorrent' ${D}/etc/mailcap`" ]; then
51 # replace bittorrent entry if it already exists
52 einfo "updating bittorrent mime info"
53 sed -i "s,application/x-bittorrent;.*,${MAILCAP_STRING}," ${D}/etc/mailcap
54 else
55 # add bittorrent entry if it doesn't exist
56 einfo "adding bittorrent mime info"
57 echo "${MAILCAP_STRING}" >> ${D}/etc/mailcap
58 fi
59 else
60 # get rid of any reference to the not-installed gui version
61 sed -i '/btdownloadgui/d' ${D}/etc/mailcap
62 rm ${D}/usr/bin/*gui.py
63 fi
64 }
65

  ViewVC Help
Powered by ViewVC 1.1.20