From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 18A4A138239 for ; Thu, 17 Jun 2021 17:59:07 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 26499E0839; Thu, 17 Jun 2021 17:59:06 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id DE840E0839 for ; Thu, 17 Jun 2021 17:59:05 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E5165335CD3 for ; Thu, 17 Jun 2021 17:59:04 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 775C947 for ; Thu, 17 Jun 2021 17:59:03 +0000 (UTC) From: "Patrick McLean" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Patrick McLean" Message-ID: <1623952731.195c8273b589be086190f3c3f0a4539cf04a17c9.chutzpah@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-p2p/bittornado/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-p2p/bittornado/bittornado-0.4.1_p20160925-r4.ebuild X-VCS-Directories: net-p2p/bittornado/ X-VCS-Committer: chutzpah X-VCS-Committer-Name: Patrick McLean X-VCS-Revision: 195c8273b589be086190f3c3f0a4539cf04a17c9 X-VCS-Branch: master Date: Thu, 17 Jun 2021 17:59:03 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 75dfc950-dbb4-47b1-b2db-7c838d15bde8 X-Archives-Hash: f0d646a6ad2f8d5c77fd6689c5c44bc7 commit: 195c8273b589be086190f3c3f0a4539cf04a17c9 Author: Patrick McLean gentoo org> AuthorDate: Thu Jun 17 17:58:36 2021 +0000 Commit: Patrick McLean gentoo 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 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 +}