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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Thu Dec 25 10:58:59 2014 UTC (4 years, 9 months ago) by mgorny
Branch: MAIN
CVS Tags: HEAD
Convert to distutils-r1.

(Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!)

1 # Copyright 1999-2014 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.5 2012/08/12 22:07:25 ottxor Exp $
4
5 # note: wxGTK interface has been removed wrt #391685. this ebuild is only for
6 # cmdline tools as is.
7
8 EAPI=5
9
10 PYTHON_COMPAT=( python2_7 )
11
12 inherit distutils-r1 eutils
13
14 MY_PN=BitTornado
15 MY_P=${MY_PN}-${PV}
16
17 DESCRIPTION="TheShad0w's experimental BitTorrent client"
18 HOMEPAGE="http://www.bittornado.com/"
19 SRC_URI="http://download2.bittornado.com/download/${MY_P}.tar.gz"
20 LICENSE="MIT"
21 SLOT="0"
22
23 KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x86-solaris"
24 IUSE=""
25
26 RDEPEND="dev-python/pycrypto[${PYTHON_USEDEP}]"
27 DEPEND="${RDEPEND}
28 app-arch/unzip
29 >=sys-apps/sed-4.0.5"
30
31 S=${WORKDIR}/${MY_PN}-CVS
32 PIXMAPLOC=/usr/share/pixmaps/bittornado
33
34 python_prepare_all() {
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 # Needs wxpython-2.6 only, bug #201247
38 epatch "${FILESDIR}"/${P}-wxversion.patch
39
40 distutils-r1_python_prepare_all
41 }
42
43 python_install() {
44 distutils-r1_python_install
45
46 # get rid of any reference to the not-installed gui version
47 rm "${ED%/}"/usr/bin/*gui.py || die
48 rm "${ED%/}$(python_get_scriptdir)"/*gui.py || die
49 }
50
51 python_install_all() {
52 distutils-r1_python_install_all
53
54 newconfd "${FILESDIR}"/bttrack.conf bttrack
55 newinitd "${FILESDIR}"/bttrack.rc bttrack
56 }

  ViewVC Help
Powered by ViewVC 1.1.20