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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Wed Nov 22 02:15:47 2006 UTC (12 years, 10 months ago) by squinky86
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +1 -1 lines
FILE REMOVED
Version bump. Remove old version. Bug #151105.
(Portage version: 2.1.2_rc2-r1)
 (Unsigned Manifest commit)

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.12.ebuild,v 1.7 2005/09/25 20:41:05 mkay 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://bittornado.com/download/${MY_P}.tar.gz"
13 LICENSE="MIT"
14 SLOT="0"
15
16 KEYWORDS="alpha amd64 ppc ppc64 ~sparc x86"
17 IUSE="gtk"
18
19 RDEPEND="gtk? ( >=dev-python/wxpython-2.4 )
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 -pPR /etc/mailcap ${D}/etc/
45 MAILCAP_STRING="application/x-bittorrent; /usr/bin/btdownloadgui.py '%s'; test=test -n \"\$DISPLAY\""
46
47 if use gtk; 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 insinto /usr/share/bittorrent
66 doins ${FILESDIR}/favicon.ico
67
68 insinto /etc/conf.d
69 newins ${FILESDIR}/bttrack.conf bttrack
70
71 exeinto /etc/init.d
72 newexe ${FILESDIR}/bttrack.rc bttrack
73 }
74

  ViewVC Help
Powered by ViewVC 1.1.20