1 |
commit: a7a6f0bc66eef89b21c8b3a7ee31341b11a22223 |
2 |
Author: Austin English <wizardedit <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 3 17:07:04 2016 +0000 |
4 |
Commit: Austin English <wizardedit <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 3 17:07:04 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a7a6f0bc |
7 |
|
8 |
net-p2p/bittornado: use #!/sbin/openrc-run instead of #!/sbin/runscript |
9 |
|
10 |
Gentoo-Bug: https://bugs.gentoo.org/573846 |
11 |
|
12 |
Package-Manager: portage-2.2.26 |
13 |
|
14 |
net-p2p/bittornado/bittornado-0.3.18-r4.ebuild | 56 ++++++++++++++++++++++++++ |
15 |
net-p2p/bittornado/files/bttrack.rc | 4 +- |
16 |
2 files changed, 58 insertions(+), 2 deletions(-) |
17 |
|
18 |
diff --git a/net-p2p/bittornado/bittornado-0.3.18-r4.ebuild b/net-p2p/bittornado/bittornado-0.3.18-r4.ebuild |
19 |
new file mode 100644 |
20 |
index 0000000..b66a1e4 |
21 |
--- /dev/null |
22 |
+++ b/net-p2p/bittornado/bittornado-0.3.18-r4.ebuild |
23 |
@@ -0,0 +1,56 @@ |
24 |
+# Copyright 1999-2016 Gentoo Foundation |
25 |
+# Distributed under the terms of the GNU General Public License v2 |
26 |
+# $Id$ |
27 |
+ |
28 |
+# note: wxGTK interface has been removed wrt #391685. this ebuild is only for |
29 |
+# cmdline tools as is. |
30 |
+ |
31 |
+EAPI=6 |
32 |
+ |
33 |
+PYTHON_COMPAT=( python2_7 ) |
34 |
+ |
35 |
+inherit distutils-r1 |
36 |
+ |
37 |
+MY_PN=BitTornado |
38 |
+MY_P=${MY_PN}-${PV} |
39 |
+ |
40 |
+DESCRIPTION="TheShad0w's experimental BitTorrent client" |
41 |
+HOMEPAGE="http://www.bittornado.com/" |
42 |
+SRC_URI="http://download2.bittornado.com/download/${MY_P}.tar.gz" |
43 |
+LICENSE="MIT" |
44 |
+SLOT="0" |
45 |
+ |
46 |
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x86-solaris" |
47 |
+IUSE="" |
48 |
+ |
49 |
+RDEPEND="dev-python/pycrypto[${PYTHON_USEDEP}]" |
50 |
+DEPEND="${RDEPEND} |
51 |
+ app-arch/unzip |
52 |
+ >=sys-apps/sed-4.0.5" |
53 |
+ |
54 |
+S=${WORKDIR}/${MY_PN}-CVS |
55 |
+PIXMAPLOC=/usr/share/pixmaps/bittornado |
56 |
+ |
57 |
+python_prepare_all() { |
58 |
+ # fixes wrong icons path |
59 |
+ sed -i "s:os.path.abspath(os.path.dirname(os.path.realpath(sys.argv\[0\]))):\"${PIXMAPLOC}/\":" btdownloadgui.py |
60 |
+ # Needs wxpython-2.6 only, bug #201247 |
61 |
+ eapply "${FILESDIR}"/${P}-wxversion.patch |
62 |
+ |
63 |
+ distutils-r1_python_prepare_all |
64 |
+} |
65 |
+ |
66 |
+python_install() { |
67 |
+ distutils-r1_python_install |
68 |
+ |
69 |
+ # get rid of any reference to the not-installed gui version |
70 |
+ rm "${ED%/}"/usr/bin/*gui.py || die |
71 |
+ rm "${ED%/}$(python_get_scriptdir)"/*gui.py || die |
72 |
+} |
73 |
+ |
74 |
+python_install_all() { |
75 |
+ distutils-r1_python_install_all |
76 |
+ |
77 |
+ newconfd "${FILESDIR}"/bttrack.conf bttrack |
78 |
+ newinitd "${FILESDIR}"/bttrack.rc bttrack |
79 |
+} |
80 |
|
81 |
diff --git a/net-p2p/bittornado/files/bttrack.rc b/net-p2p/bittornado/files/bttrack.rc |
82 |
index d08110f..dcb40f7 100644 |
83 |
--- a/net-p2p/bittornado/files/bttrack.rc |
84 |
+++ b/net-p2p/bittornado/files/bttrack.rc |
85 |
@@ -1,5 +1,5 @@ |
86 |
-#!/sbin/runscript |
87 |
-# Copyright 1999-2004 Gentoo Foundation |
88 |
+#!/sbin/openrc-run |
89 |
+# Copyright 1999-2016 Gentoo Foundation |
90 |
# Distributed under the terms of the GNU General Public License v2 |
91 |
# $Id$ |