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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Sun Aug 12 22:07:25 2012 UTC (7 years, 2 months ago) by ottxor
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +4 -4 lines
added prefix keywords

(Portage version: 2.2.0_alpha121/cvs/Linux i686)

1 # Copyright 1999-2012 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-r2.ebuild,v 1.4 2011/12/09 15:44:21 ssuominen Exp $
4
5 # note: wxGTK interface has been removed wrt #391685. this ebuild is only for
6 # cmdline tools as is.
7
8 EAPI=3
9 PYTHON_DEPEND=2
10
11 inherit distutils eutils
12
13 MY_PN=BitTornado
14 MY_P=${MY_PN}-${PV}
15
16 DESCRIPTION="TheShad0w's experimental BitTorrent client"
17 HOMEPAGE="http://www.bittornado.com/"
18 SRC_URI="http://download2.bittornado.com/download/${MY_P}.tar.gz"
19 LICENSE="MIT"
20 SLOT="0"
21
22 KEYWORDS="alpha amd64 ppc ppc64 ~sparc x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x86-solaris"
23 IUSE=""
24
25 RDEPEND="dev-python/pycrypto"
26 DEPEND="${RDEPEND}
27 app-arch/unzip
28 >=sys-apps/sed-4.0.5"
29
30 S=${WORKDIR}/${MY_PN}-CVS
31 PIXMAPLOC=/usr/share/pixmaps/bittornado
32
33 pkg_setup() {
34 python_set_active_version 2
35 python_pkg_setup
36 }
37
38 src_prepare() {
39 # fixes wrong icons path
40 sed -i "s:os.path.abspath(os.path.dirname(os.path.realpath(sys.argv\[0\]))):\"${PIXMAPLOC}/\":" btdownloadgui.py
41 # Needs wxpython-2.6 only, bug #201247
42 epatch "${FILESDIR}"/${P}-wxversion.patch
43
44 python_convert_shebangs -r 2 .
45 }
46
47 src_install() {
48 distutils_src_install
49
50 # get rid of any reference to the not-installed gui version
51 rm "${ED}"/usr/bin/*gui.py
52
53 newconfd "${FILESDIR}"/bttrack.conf bttrack
54 newinitd "${FILESDIR}"/bttrack.rc bttrack
55 }

  ViewVC Help
Powered by ViewVC 1.1.20