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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Sun May 29 21:48:08 2005 UTC (14 years, 4 months ago) by mholzer
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
cleanup
(Portage version: 2.0.51.19)

1 # Copyright 1999-2005 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.6.ebuild,v 1.5 2005/05/05 23:24:10 swegener 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.5 )
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 S="${WORKDIR}/${MY_PN}-CVS"
28 PIXMAPLOC="/usr/share/pixmaps/bittornado"
29
30 src_unpack() {
31 unpack ${A}
32 cd ${S}
33
34 # fixes wrong icons path
35 sed -i "s:os.path.abspath(os.path.dirname(os.path.realpath(sys.argv\[0\]))):\"${PIXMAPLOC}/\":" btdownloadgui.py
36 # fixes a bug with < wxpython-2.5 which is not yet available in portage
37 epatch ${FILESDIR}/${PN}-wxpython-pre2.5-fix.patch
38 }
39
40 src_install() {
41 distutils_src_install
42
43 dodir etc
44 cp -a /etc/mailcap ${D}/etc/
45 MAILCAP_STRING="application/x-bittorrent; /usr/bin/btdownloadgui.py '%s'; test=test -n \"\$DISPLAY\""
46
47 if use X; then
48 dodir ${PIXMAPLOC}
49 insinto ${PIXMAPLOC}
50 doins *.ico *.gif
51 if [ -n "`grep 'application/x-bittorrent' ${D}/etc/mailcap`" ]; then
52 # replace bittorrent entry if it already exists
53 einfo "updating bittorrent mime info"
54 sed -i "s,application/x-bittorrent;.*,${MAILCAP_STRING}," ${D}/etc/mailcap
55 else
56 # add bittorrent entry if it doesn't exist
57 einfo "adding bittorrent mime info"
58 echo "${MAILCAP_STRING}" >> ${D}/etc/mailcap
59 fi
60 else
61 # get rid of any reference to the not-installed gui version
62 sed -i '/btdownloadgui/d' ${D}/etc/mailcap
63 rm ${D}/usr/bin/*gui.py
64 fi
65 }
66

  ViewVC Help
Powered by ViewVC 1.1.20