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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.14 - (show annotations) (download)
Tue Dec 4 19:11:55 2007 UTC (11 years, 10 months ago) by armin76
Branch: MAIN
CVS Tags: HEAD
Changes since 1.13: +1 -1 lines
FILE REMOVED
Add patch to use wxPython-2.6, by Ryan Hill <dirtyepic at gentoo dot org>, bug #201247 and remove ancient patch
(Portage version: 2.1.3.19, RepoMan options: --force)

1 # Copyright 1999-2007 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.18.ebuild,v 1.13 2007/11/21 15:54:50 armin76 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://download2.bittornado.com/download/${MY_P}.tar.gz"
13 LICENSE="MIT"
14 SLOT="0"
15
16 KEYWORDS="alpha amd64 ppc ppc64 ~sparc x86 ~x86-fbsd"
17 IUSE="gtk"
18
19 RDEPEND="gtk? ( =dev-python/wxpython-2.6* )
20 >=dev-lang/python-2.1
21 dev-python/pycrypto
22 !virtual/bittorrent"
23 DEPEND="${RDEPEND}
24 app-arch/unzip
25 >=sys-apps/sed-4.0.5"
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 # fixes a bug with < wxpython-2.5 which is not yet available in portage
38 epatch "${FILESDIR}"/${PN}-wxpython-pre2.5-fix.patch
39 }
40
41 src_install() {
42 distutils_src_install
43
44 if use gtk; then
45 dodir ${PIXMAPLOC}
46 insinto ${PIXMAPLOC}
47 doins icons/*.ico icons/*.gif
48 else
49 # get rid of any reference to the not-installed gui version
50 rm "${D}"/usr/bin/*gui.py
51 fi
52
53 newicon "${FILESDIR}"/favicon.ico ${PN}.ico
54 domenu "${FILESDIR}"/bittornado.desktop
55
56 newconfd "${FILESDIR}"/bttrack.conf bttrack
57 newinitd "${FILESDIR}"/bttrack.rc bttrack
58 }

  ViewVC Help
Powered by ViewVC 1.1.20