Gentoo Archives: gentoo-commits

From: Patrick McLean <chutzpah@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-p2p/bittornado/
Date: Tue, 25 May 2021 21:09:12
Message-Id: 1621976769.192848a1ae5dc146ad9681256754cd8a8feaf259.chutzpah@gentoo
1 commit: 192848a1ae5dc146ad9681256754cd8a8feaf259
2 Author: Patrick McLean <patrick.mclean <AT> sony <DOT> com>
3 AuthorDate: Tue May 25 21:06:03 2021 +0000
4 Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
5 CommitDate: Tue May 25 21:06:09 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=192848a1
7
8 net-p2p/bittornado-0.4.1_p20160925-r3: revbump, py3{9,10}, EAPI=7
9
10 Copyright: Sony Interactive Entertainment Inc.
11 Package-Manager: Portage-3.0.19, Repoman-3.0.3
12 Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org>
13
14 .../bittornado-0.4.1_p20160925-r3.ebuild | 57 ++++++++++++++++++++++
15 1 file changed, 57 insertions(+)
16
17 diff --git a/net-p2p/bittornado/bittornado-0.4.1_p20160925-r3.ebuild b/net-p2p/bittornado/bittornado-0.4.1_p20160925-r3.ebuild
18 new file mode 100644
19 index 00000000000..36ff74e707d
20 --- /dev/null
21 +++ b/net-p2p/bittornado/bittornado-0.4.1_p20160925-r3.ebuild
22 @@ -0,0 +1,57 @@
23 +# Copyright 1999-2021 Gentoo Authors
24 +# Distributed under the terms of the GNU General Public License v2
25 +
26 +EAPI=7
27 +
28 +PYTHON_COMPAT=( python3_{7..10} )
29 +DISTUTILS_USE_SETUPTOOLS=no
30 +inherit distutils-r1
31 +
32 +MY_PN=BitTornado
33 +MY_P=${MY_PN}-${PV}
34 +EGIT_COMMIT="ed327c4e1ebbe1fe949be81723527cfda87aeb8d"
35 +
36 +DESCRIPTION="John Hoffman's fork of the original bittorrent"
37 +HOMEPAGE="https://github.com/effigies/BitTornado"
38 +SRC_URI="https://github.com/effigies/BitTornado/archive/${EGIT_COMMIT}.tar.gz -> ${MY_P}.tar.gz"
39 +# GPL-2 is just for the init script from FILESDIR.
40 +LICENSE="MIT GPL-2"
41 +SLOT="0"
42 +
43 +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~x86-solaris"
44 +IUSE="test"
45 +RESTRICT="!test? ( test )"
46 +
47 +RDEPEND="
48 + dev-python/pycryptodome[${PYTHON_USEDEP}]
49 +"
50 +# Block dev-python/pytest-testmon for bug #693508.
51 +DEPEND="
52 + test? (
53 + !!dev-python/pytest-testmon
54 + )
55 +"
56 +
57 +S=${WORKDIR}/${MY_PN}-${EGIT_COMMIT}
58 +
59 +distutils_enable_tests pytest
60 +
61 +python_prepare_all() {
62 + # https://github.com/effigies/BitTornado/pull/53
63 + sed -e 's:"BitTornado.Tracker":\0, "BitTornado.Types":' -i setup.py || die
64 + find "${S}" -name '*.py' -print0 | \
65 + xargs --null -- \
66 + sed -r -i 's:time.clock():time.perf_counter():g ; s:collections.(MutableSet|Set|Sequence|Mapping):collections.abc.\1:g' || die
67 + distutils-r1_python_prepare_all
68 +}
69 +
70 +python_test() {
71 + epytest BitTornado/tests
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 +}