public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Patrick McLean" <chutzpah@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-p2p/bittornado/
Date: Thu, 17 Jun 2021 17:59:03 +0000 (UTC)	[thread overview]
Message-ID: <1623952731.195c8273b589be086190f3c3f0a4539cf04a17c9.chutzpah@gentoo> (raw)

commit:     195c8273b589be086190f3c3f0a4539cf04a17c9
Author:     Patrick McLean <chutzpah <AT> gentoo <DOT> org>
AuthorDate: Thu Jun 17 17:58:36 2021 +0000
Commit:     Patrick McLean <chutzpah <AT> gentoo <DOT> org>
CommitDate: Thu Jun 17 17:58:51 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=195c8273

net-p2p/bittornado-0.4.1_p20160925-r4: Fix sed for py38

Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org>

 .../bittornado-0.4.1_p20160925-r4.ebuild           | 60 ++++++++++++++++++++++
 1 file changed, 60 insertions(+)

diff --git a/net-p2p/bittornado/bittornado-0.4.1_p20160925-r4.ebuild b/net-p2p/bittornado/bittornado-0.4.1_p20160925-r4.ebuild
new file mode 100644
index 00000000000..b07789e6e0b
--- /dev/null
+++ b/net-p2p/bittornado/bittornado-0.4.1_p20160925-r4.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{7..10} )
+DISTUTILS_USE_SETUPTOOLS=no
+inherit distutils-r1
+
+MY_PN=BitTornado
+MY_P=${MY_PN}-${PV}
+EGIT_COMMIT="ed327c4e1ebbe1fe949be81723527cfda87aeb8d"
+
+DESCRIPTION="John Hoffman's fork of the original bittorrent"
+HOMEPAGE="https://github.com/effigies/BitTornado"
+SRC_URI="https://github.com/effigies/BitTornado/archive/${EGIT_COMMIT}.tar.gz -> ${MY_P}.tar.gz"
+# GPL-2 is just for the init script from FILESDIR.
+LICENSE="MIT GPL-2"
+SLOT="0"
+
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~x86-solaris"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+	dev-python/pycryptodome[${PYTHON_USEDEP}]
+"
+# Block dev-python/pytest-testmon for bug #693508.
+DEPEND="
+	test? (
+		!!dev-python/pytest-testmon
+	)
+"
+
+S=${WORKDIR}/${MY_PN}-${EGIT_COMMIT}
+
+distutils_enable_tests pytest
+
+python_prepare_all() {
+	# https://github.com/effigies/BitTornado/pull/53
+	sed -e 's:"BitTornado.Tracker":\0, "BitTornado.Types":' -i setup.py || die
+	find "${S}" -name '*.py' -print0 | \
+		xargs --null -- \
+		sed -r -i '
+			s:time.clock\(\):time.perf_counter():g;
+			s:collections.(MutableSet|Set|Sequence|Mapping):collections.abc.\1:g
+		' || die
+	distutils-r1_python_prepare_all
+}
+
+python_test() {
+	epytest BitTornado/tests
+}
+
+python_install_all() {
+	distutils-r1_python_install_all
+
+	newconfd "${FILESDIR}"/bttrack.conf bttrack
+	newinitd "${FILESDIR}"/bttrack.rc bttrack
+}


             reply	other threads:[~2021-06-17 17:59 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-17 17:59 Patrick McLean [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-06-17 19:52 [gentoo-commits] repo/gentoo:master commit in: net-p2p/bittornado/ William Hubbs
2021-06-01  6:59 Agostino Sarubbo
2021-06-01  6:36 Agostino Sarubbo
2021-06-01  6:32 Agostino Sarubbo
2021-05-25 21:09 Patrick McLean
2021-02-10  2:43 Patrick McLean
2021-02-07 18:37 Zac Medico
2020-04-17 22:29 David Seifert
2020-03-31 10:01 Agostino Sarubbo
2020-03-31 10:01 Agostino Sarubbo
2020-03-31 10:00 Agostino Sarubbo
2020-03-31  7:18 Agostino Sarubbo
2020-03-30 17:30 Zac Medico
2020-03-30 17:18 Zac Medico
2019-08-11 11:50 David Seifert
2017-03-26 22:39 Zac Medico
2017-03-26 13:17 Michał Górny
2017-03-20 20:44 Zac Medico
2017-03-20 20:44 Zac Medico
2016-09-21 17:48 Tobias Klausmann
2016-05-03 17:35 Austin English
2015-11-30 15:59 Jeroen Roovers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1623952731.195c8273b589be086190f3c3f0a4539cf04a17c9.chutzpah@gentoo \
    --to=chutzpah@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox