diff options
author | Michał Górny <mgorny@gentoo.org> | 2021-08-25 18:53:16 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2021-08-25 18:53:27 +0200 |
commit | e5008f4fd9d249c22898875042b3c50a9040c337 (patch) | |
tree | 056372a2c5a43a303a02a202e5e49e33f1c720b0 /dev-util | |
parent | dev-perl/namespace-autoclean: Stabilize 0.290.0 sparc, #810225 (diff) | |
download | gentoo-e5008f4fd9d249c22898875042b3c50a9040c337.tar.gz gentoo-e5008f4fd9d249c22898875042b3c50a9040c337.tar.bz2 gentoo-e5008f4fd9d249c22898875042b3c50a9040c337.zip |
dev-util/pkgcheck: Remove old
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-util')
-rw-r--r-- | dev-util/pkgcheck/Manifest | 4 | ||||
-rw-r--r-- | dev-util/pkgcheck/files/pkgcheck-0.9.7-py310-update.patch | 170 | ||||
-rw-r--r-- | dev-util/pkgcheck/pkgcheck-0.10.0.ebuild | 59 | ||||
-rw-r--r-- | dev-util/pkgcheck/pkgcheck-0.10.2.ebuild | 59 | ||||
-rw-r--r-- | dev-util/pkgcheck/pkgcheck-0.10.4.ebuild | 59 | ||||
-rw-r--r-- | dev-util/pkgcheck/pkgcheck-0.9.7-r2.ebuild | 60 | ||||
-rw-r--r-- | dev-util/pkgcheck/pkgcheck-0.9.7-r3.ebuild | 64 |
7 files changed, 0 insertions, 475 deletions
diff --git a/dev-util/pkgcheck/Manifest b/dev-util/pkgcheck/Manifest index a34140c8b5e5..22f4cace1dd0 100644 --- a/dev-util/pkgcheck/Manifest +++ b/dev-util/pkgcheck/Manifest @@ -1,7 +1,3 @@ -DIST pkgcheck-0.10.0.tar.gz 453555 BLAKE2B aeb211619f400b729a9f5e7e1ffa787c33c1c8cf592d9d25aaf3a82e5ca44711b9da6a012f0aa000e7269a40be387efb271f981b038fc29c497f2f660dead74e SHA512 2b702d269e899a4643f40397414a32f78af611cccc0d4a3d816b978bc63dc09d5e0086aebf11711c8d80703fa7e78d36eb884de6908ee548791a0d934569ded9 DIST pkgcheck-0.10.1.tar.gz 454051 BLAKE2B ba0e91fee539d0a41c27da08c91e1c65078eaebea33b8254cbad38d49feb91a4aa490992a5d88bd96ce0570d89f9f8343d0ff0a2d7368f09d55637b2597aad6b SHA512 044067928bc1c1280a95e785def80e6ebb289e0882f9a61b18d1d75ddc22c4f7eea1da4a4621fd5a598c3e7ee75ece2adedb936086f3c3cbc92c23ab93419215 -DIST pkgcheck-0.10.2.tar.gz 454643 BLAKE2B 4585a72ce9675a23a3bcd7228ac811bdf45bacf2a25d91b9665f833de6dffbac5c4e11405b112bd5dd6e643fc51c3f57cf7dda989c2521c11e279324a02740c7 SHA512 0151d6fb81f800d46b65bb02bd5474ae36e8e4dc35376f1abfaa1c8be61e3429e527947b42f76c9f6da5ede648617d58f6b9ac44a93ff58175b748dfd9a43cbe DIST pkgcheck-0.10.3.tar.gz 454953 BLAKE2B 5ee2c13cb1ca5b13bfcd8434700c69e6839c5dc2f25dec4060020f8477159ff071b1487a446ba7e03bf1b8d139e8c65a1cd21a777d8bfe3ce677bbfe39b8d85f SHA512 edef25fc1542c3d3fb89c0c1546ebfa736b6ad4b113b0e6bc9ede379b0a5cb9ece5dd8b79ddb2df2cfeaf7f67f290e96a8baee1f2dfcc3bcebe32d9dcf4c264e -DIST pkgcheck-0.10.4.tar.gz 455252 BLAKE2B 3fb8183120b8a45569a007e4c9e521e5b070554523c5c2fbf44c383996896924800d42f79f9809e0fcc3b04363b2c50a8894b547376a8c030f4d0451c7f943bf SHA512 f5f01340ff4ac882da8e56cbb44440425dcb42c5ed6a9ab102c435a61cfca6861a421ee294039f055fec5b93cae338ea4ba23237f1ba509e6e24bdba351427eb DIST pkgcheck-0.10.5.tar.gz 458314 BLAKE2B 143a397f5374b3f84d957953d0915b6ae7107b81f85af4e37e75289ed0edc5bdf16bdc00213860fdf0bdf53be953b80d514839c6568c3a70d2cdd61401e8dc73 SHA512 3902560099c7e5570be2b86b6e7d56427b6ef9cc893dafe5327b6773b92ca44cc787725a0d2e81d4b779ae71dc2acaeceaaff4d5de50fc99aab4c0dc0ab03bfa -DIST pkgcheck-0.9.7.tar.gz 453478 BLAKE2B 486bae68af1757fbdb4b109b34cea836cb6dee258d4e53b4c3818c1aa6194da86e7ee339335ac6f2a1c2fb89a547f46658fadd88706fa807a9fdce2bb82a5c65 SHA512 e8fc02997d558af1e8e89a13130076b4db59e9c2a8ea383d0dca9a57375dae1fb315619593178d67c89d30e7b16810905694c838ea4ec608eaee195fa4797569 diff --git a/dev-util/pkgcheck/files/pkgcheck-0.9.7-py310-update.patch b/dev-util/pkgcheck/files/pkgcheck-0.9.7-py310-update.patch deleted file mode 100644 index 8bee592b228e..000000000000 --- a/dev-util/pkgcheck/files/pkgcheck-0.9.7-py310-update.patch +++ /dev/null @@ -1,170 +0,0 @@ -From 443c0aab158e34196399073e801ae19ae0dce4dc Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org> -Date: Sun, 9 May 2021 10:59:18 +0200 -Subject: [PATCH] python: Fix treating python3.10 as newer than python3.9 - -Fix the sorting logic to use a combined lexical-numerical sort, in order -to sort python3.10 as newer than python3.9. This fixes -PythonCompatUpdate check. ---- - src/pkgcheck/checks/python.py | 25 +++++++++++++++---- - .../PythonCompatUpdate/expected.json | 6 ++--- - .../PythonCompatUpdate/fix.patch | 6 ++--- - .../profiles/desc/python_single_target.desc | 1 + - .../python/profiles/desc/python_targets.desc | 1 + - .../stub/python-dep1/python-dep1-0.ebuild | 2 +- - .../stub/python-dep2/python-dep2-0.ebuild | 2 +- - 7 files changed, 30 insertions(+), 13 deletions(-) - -diff --git a/src/pkgcheck/checks/python.py b/src/pkgcheck/checks/python.py -index ed922215..7f0e9be4 100644 ---- a/src/pkgcheck/checks/python.py -+++ b/src/pkgcheck/checks/python.py -@@ -1,4 +1,5 @@ - import itertools -+import re - - from pkgcore.ebuild.atom import atom - from pkgcore.restrictions import packages, values -@@ -28,6 +29,18 @@ CHECK_EXCLUDE = frozenset(['virtual/pypy', 'virtual/pypy3']) - IUSE_PREFIX = 'python_targets_' - IUSE_PREFIX_S = 'python_single_target_' - -+TARGET_SPLIT_RE = re.compile(r'([0-9]+)') -+ -+ -+def target_sort_key(target): -+ def iter(): -+ for x in TARGET_SPLIT_RE.split(target): -+ try: -+ yield int(x) -+ except ValueError: -+ yield x -+ return tuple(iter()) -+ - - def get_python_eclass(pkg): - eclasses = ECLASSES.intersection(pkg.inherited) -@@ -281,14 +294,14 @@ class PythonCompatCheck(Check): - for target, _desc in repo.config.use_expand_desc.get(IUSE_PREFIX[:-1], ()): - if target[len(IUSE_PREFIX):].startswith('python'): - targets.append(target[len(IUSE_PREFIX):]) -- multi_targets = tuple(sorted(targets)) -+ multi_targets = tuple(sorted(targets, key=target_sort_key)) - - # determine available PYTHON_SINGLE_TARGET use flags - targets = [] - for target, _desc in repo.config.use_expand_desc.get(IUSE_PREFIX_S[:-1], ()): - if target[len(IUSE_PREFIX_S):].startswith('python'): - targets.append(target[len(IUSE_PREFIX_S):]) -- single_targets = tuple(sorted(targets)) -+ single_targets = tuple(sorted(targets, key=target_sort_key)) - - self.params = { - 'python-r1': (multi_targets, IUSE_PREFIX, None), -@@ -327,8 +340,9 @@ class PythonCompatCheck(Check): - try: - # determine the latest supported python version - latest_target = sorted( -- f"python{x.slot.replace('.', '_')}" for x in deps -- if x.key == 'dev-lang/python' and x.slot is not None)[-1] -+ (f"python{x.slot.replace('.', '_')}" for x in deps -+ if x.key == 'dev-lang/python' and x.slot is not None), -+ key=target_sort_key)[-1] - except IndexError: - # should be flagged by PythonMissingDeps - return -@@ -355,4 +369,5 @@ class PythonCompatCheck(Check): - except IndexError: - return - -- yield PythonCompatUpdate(sorted(targets), pkg=pkg) -+ yield PythonCompatUpdate(sorted(targets, key=target_sort_key), -+ pkg=pkg) -diff --git a/testdata/data/repos/python/PythonCompatCheck/PythonCompatUpdate/expected.json b/testdata/data/repos/python/PythonCompatCheck/PythonCompatUpdate/expected.json -index ab7d9b01..f3476eac 100644 ---- a/testdata/data/repos/python/PythonCompatCheck/PythonCompatUpdate/expected.json -+++ b/testdata/data/repos/python/PythonCompatCheck/PythonCompatUpdate/expected.json -@@ -1,3 +1,3 @@ --{"__class__": "PythonCompatUpdate", "category": "PythonCompatCheck", "package": "PythonCompatUpdate", "version": "0", "updates": ["python3_8", "python3_9"]} --{"__class__": "PythonCompatUpdate", "category": "PythonCompatCheck", "package": "PythonCompatUpdate", "version": "1", "updates": ["python3_9"]} --{"__class__": "PythonCompatUpdate", "category": "PythonCompatCheck", "package": "PythonCompatUpdate", "version": "2", "updates": ["python3_9"]} -+{"__class__": "PythonCompatUpdate", "category": "PythonCompatCheck", "package": "PythonCompatUpdate", "version": "0", "updates": ["python3_8", "python3_9", "python3_10"]} -+{"__class__": "PythonCompatUpdate", "category": "PythonCompatCheck", "package": "PythonCompatUpdate", "version": "1", "updates": ["python3_9", "python3_10"]} -+{"__class__": "PythonCompatUpdate", "category": "PythonCompatCheck", "package": "PythonCompatUpdate", "version": "2", "updates": ["python3_9", "python3_10"]} -diff --git a/testdata/data/repos/python/PythonCompatCheck/PythonCompatUpdate/fix.patch b/testdata/data/repos/python/PythonCompatCheck/PythonCompatUpdate/fix.patch -index c63184e9..9be4952a 100644 ---- a/testdata/data/repos/python/PythonCompatCheck/PythonCompatUpdate/fix.patch -+++ b/testdata/data/repos/python/PythonCompatCheck/PythonCompatUpdate/fix.patch -@@ -4,7 +4,7 @@ diff -Naur python/PythonCompatCheck/PythonCompatUpdate/PythonCompatUpdate-0.ebui - @@ -1,5 +1,5 @@ - EAPI=7 - -PYTHON_COMPAT=( python3_7 ) --+PYTHON_COMPAT=( python3_{7..9} ) -++PYTHON_COMPAT=( python3_{7..10} ) - - inherit python-r1 - -@@ -14,7 +14,7 @@ diff -Naur python/PythonCompatCheck/PythonCompatUpdate/PythonCompatUpdate-1.ebui - @@ -1,5 +1,5 @@ - EAPI=7 - -PYTHON_COMPAT=( python3_{7,8} ) --+PYTHON_COMPAT=( python3_{7..9} ) -++PYTHON_COMPAT=( python3_{7..10} ) - - inherit python-single-r1 - -@@ -24,7 +24,7 @@ diff -Naur python/PythonCompatCheck/PythonCompatUpdate/PythonCompatUpdate-2.ebui - @@ -1,5 +1,5 @@ - EAPI=7 - -PYTHON_COMPAT=( python3_{7,8} ) --+PYTHON_COMPAT=( python3_{7..9} ) -++PYTHON_COMPAT=( python3_{7..10} ) - - inherit python-any-r1 - -diff --git a/testdata/repos/python/profiles/desc/python_single_target.desc b/testdata/repos/python/profiles/desc/python_single_target.desc -index da5be2fd..3c39a224 100644 ---- a/testdata/repos/python/profiles/desc/python_single_target.desc -+++ b/testdata/repos/python/profiles/desc/python_single_target.desc -@@ -3,4 +3,5 @@ python2_7 - Build with Python 2.7 - python3_7 - Build with Python 3.7 - python3_8 - Build with Python 3.8 - python3_9 - Build with Python 3.9 -+python3_10 - Build with Python 3.10 - pypy3 - Build for PyPy3 only -diff --git a/testdata/repos/python/profiles/desc/python_targets.desc b/testdata/repos/python/profiles/desc/python_targets.desc -index b2be59ca..8e55f2da 100644 ---- a/testdata/repos/python/profiles/desc/python_targets.desc -+++ b/testdata/repos/python/profiles/desc/python_targets.desc -@@ -3,4 +3,5 @@ python2_7 - Build with Python 2.7 - python3_7 - Build with Python 3.7 - python3_8 - Build with Python 3.8 - python3_9 - Build with Python 3.9 -+python3_10 - Build with Python 3.10 - pypy3 - Build for PyPy3 only -diff --git a/testdata/repos/python/stub/python-dep1/python-dep1-0.ebuild b/testdata/repos/python/stub/python-dep1/python-dep1-0.ebuild -index 9eebedfd..55c455d9 100644 ---- a/testdata/repos/python/stub/python-dep1/python-dep1-0.ebuild -+++ b/testdata/repos/python/stub/python-dep1/python-dep1-0.ebuild -@@ -1,5 +1,5 @@ - EAPI=7 --PYTHON_COMPAT=( python2_7 python3_{7,8,9} ) -+PYTHON_COMPAT=( python2_7 python3_{7,8,9,10} ) - - inherit python-r1 - -diff --git a/testdata/repos/python/stub/python-dep2/python-dep2-0.ebuild b/testdata/repos/python/stub/python-dep2/python-dep2-0.ebuild -index 9eebedfd..55c455d9 100644 ---- a/testdata/repos/python/stub/python-dep2/python-dep2-0.ebuild -+++ b/testdata/repos/python/stub/python-dep2/python-dep2-0.ebuild -@@ -1,5 +1,5 @@ - EAPI=7 --PYTHON_COMPAT=( python2_7 python3_{7,8,9} ) -+PYTHON_COMPAT=( python2_7 python3_{7,8,9,10} ) - - inherit python-r1 - --- -2.31.1 - diff --git a/dev-util/pkgcheck/pkgcheck-0.10.0.ebuild b/dev-util/pkgcheck/pkgcheck-0.10.0.ebuild deleted file mode 100644 index afa31791177f..000000000000 --- a/dev-util/pkgcheck/pkgcheck-0.10.0.ebuild +++ /dev/null @@ -1,59 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 -PYTHON_COMPAT=( python3_{8..9} ) -DISTUTILS_IN_SOURCE_BUILD=1 -inherit distutils-r1 optfeature - -if [[ ${PV} == *9999 ]] ; then - EGIT_REPO_URI="https://github.com/pkgcore/pkgcheck.git" - inherit git-r3 -else - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~x64-macos" - SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" -fi - -DESCRIPTION="pkgcore-based QA utility for ebuild repos" -HOMEPAGE="https://github.com/pkgcore/pkgcheck" - -LICENSE="BSD MIT" -SLOT="0" - -if [[ ${PV} == *9999 ]]; then - RDEPEND=" - ~dev-python/snakeoil-9999[${PYTHON_USEDEP}] - ~sys-apps/pkgcore-9999[${PYTHON_USEDEP}]" -else - RDEPEND=" - >=dev-python/snakeoil-0.9.6[${PYTHON_USEDEP}] - >=sys-apps/pkgcore-0.12.0[${PYTHON_USEDEP}]" -fi -RDEPEND+=" - dev-python/chardet[${PYTHON_USEDEP}] - dev-python/lazy-object-proxy[${PYTHON_USEDEP}] - dev-python/lxml[${PYTHON_USEDEP}] - dev-python/pathspec[${PYTHON_USEDEP}] - >=dev-python/tree-sitter-0.19.0[${PYTHON_USEDEP}] -" -BDEPEND=" - test? ( dev-python/pytest[${PYTHON_USEDEP}] ) -" - -distutils_enable_tests setup.py - -src_test() { - local -x PYTHONDONTWRITEBYTECODE= - distutils-r1_src_test -} - -python_install_all() { - local DOCS=( NEWS.rst ) - [[ ${PV} == *9999 ]] || doman man/* - distutils-r1_python_install_all -} - -pkg_postinst() { - optfeature "Network check support" dev-python/requests - optfeature "Perl module version check support" dev-perl/Gentoo-PerlMod-Version -} diff --git a/dev-util/pkgcheck/pkgcheck-0.10.2.ebuild b/dev-util/pkgcheck/pkgcheck-0.10.2.ebuild deleted file mode 100644 index 9a255efb0571..000000000000 --- a/dev-util/pkgcheck/pkgcheck-0.10.2.ebuild +++ /dev/null @@ -1,59 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 -PYTHON_COMPAT=( python3_{8..10} ) -DISTUTILS_IN_SOURCE_BUILD=1 -inherit distutils-r1 optfeature - -if [[ ${PV} == *9999 ]] ; then - EGIT_REPO_URI="https://github.com/pkgcore/pkgcheck.git" - inherit git-r3 -else - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" - SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" -fi - -DESCRIPTION="pkgcore-based QA utility for ebuild repos" -HOMEPAGE="https://github.com/pkgcore/pkgcheck" - -LICENSE="BSD MIT" -SLOT="0" - -if [[ ${PV} == *9999 ]]; then - RDEPEND=" - ~dev-python/snakeoil-9999[${PYTHON_USEDEP}] - ~sys-apps/pkgcore-9999[${PYTHON_USEDEP}]" -else - RDEPEND=" - >=dev-python/snakeoil-0.9.6[${PYTHON_USEDEP}] - >=sys-apps/pkgcore-0.12.1[${PYTHON_USEDEP}]" -fi -RDEPEND+=" - dev-python/chardet[${PYTHON_USEDEP}] - dev-python/lazy-object-proxy[${PYTHON_USEDEP}] - dev-python/lxml[${PYTHON_USEDEP}] - dev-python/pathspec[${PYTHON_USEDEP}] - >=dev-python/tree-sitter-0.19.0[${PYTHON_USEDEP}] -" -BDEPEND=" - test? ( dev-python/pytest[${PYTHON_USEDEP}] ) -" - -distutils_enable_tests setup.py - -src_test() { - local -x PYTHONDONTWRITEBYTECODE= - distutils-r1_src_test -} - -python_install_all() { - local DOCS=( NEWS.rst ) - [[ ${PV} == *9999 ]] || doman man/* - distutils-r1_python_install_all -} - -pkg_postinst() { - optfeature "Network check support" dev-python/requests - optfeature "Perl module version check support" dev-perl/Gentoo-PerlMod-Version -} diff --git a/dev-util/pkgcheck/pkgcheck-0.10.4.ebuild b/dev-util/pkgcheck/pkgcheck-0.10.4.ebuild deleted file mode 100644 index 9a255efb0571..000000000000 --- a/dev-util/pkgcheck/pkgcheck-0.10.4.ebuild +++ /dev/null @@ -1,59 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 -PYTHON_COMPAT=( python3_{8..10} ) -DISTUTILS_IN_SOURCE_BUILD=1 -inherit distutils-r1 optfeature - -if [[ ${PV} == *9999 ]] ; then - EGIT_REPO_URI="https://github.com/pkgcore/pkgcheck.git" - inherit git-r3 -else - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" - SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" -fi - -DESCRIPTION="pkgcore-based QA utility for ebuild repos" -HOMEPAGE="https://github.com/pkgcore/pkgcheck" - -LICENSE="BSD MIT" -SLOT="0" - -if [[ ${PV} == *9999 ]]; then - RDEPEND=" - ~dev-python/snakeoil-9999[${PYTHON_USEDEP}] - ~sys-apps/pkgcore-9999[${PYTHON_USEDEP}]" -else - RDEPEND=" - >=dev-python/snakeoil-0.9.6[${PYTHON_USEDEP}] - >=sys-apps/pkgcore-0.12.1[${PYTHON_USEDEP}]" -fi -RDEPEND+=" - dev-python/chardet[${PYTHON_USEDEP}] - dev-python/lazy-object-proxy[${PYTHON_USEDEP}] - dev-python/lxml[${PYTHON_USEDEP}] - dev-python/pathspec[${PYTHON_USEDEP}] - >=dev-python/tree-sitter-0.19.0[${PYTHON_USEDEP}] -" -BDEPEND=" - test? ( dev-python/pytest[${PYTHON_USEDEP}] ) -" - -distutils_enable_tests setup.py - -src_test() { - local -x PYTHONDONTWRITEBYTECODE= - distutils-r1_src_test -} - -python_install_all() { - local DOCS=( NEWS.rst ) - [[ ${PV} == *9999 ]] || doman man/* - distutils-r1_python_install_all -} - -pkg_postinst() { - optfeature "Network check support" dev-python/requests - optfeature "Perl module version check support" dev-perl/Gentoo-PerlMod-Version -} diff --git a/dev-util/pkgcheck/pkgcheck-0.9.7-r2.ebuild b/dev-util/pkgcheck/pkgcheck-0.9.7-r2.ebuild deleted file mode 100644 index 7cf93d2ab9c2..000000000000 --- a/dev-util/pkgcheck/pkgcheck-0.9.7-r2.ebuild +++ /dev/null @@ -1,60 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 -PYTHON_COMPAT=( python3_{8..9} ) -DISTUTILS_IN_SOURCE_BUILD=1 -inherit distutils-r1 optfeature - -if [[ ${PV} == *9999 ]] ; then - EGIT_REPO_URI="https://github.com/pkgcore/pkgcheck.git" - inherit git-r3 -else - KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ppc ppc64 ~s390 sparc x86 ~x64-macos" - SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" -fi - -DESCRIPTION="pkgcore-based QA utility for ebuild repos" -HOMEPAGE="https://github.com/pkgcore/pkgcheck" - -LICENSE="BSD MIT" -SLOT="0" - -if [[ ${PV} == *9999 ]]; then - RDEPEND=" - ~dev-python/snakeoil-9999[${PYTHON_USEDEP}] - ~sys-apps/pkgcore-9999[${PYTHON_USEDEP}]" -else - RDEPEND=" - >=dev-python/snakeoil-0.9.6[${PYTHON_USEDEP}] - <sys-apps/pkgcore-0.12.0[${PYTHON_USEDEP}] - >=sys-apps/pkgcore-0.11.6[${PYTHON_USEDEP}]" -fi -RDEPEND+=" - dev-python/chardet[${PYTHON_USEDEP}] - dev-python/lazy-object-proxy[${PYTHON_USEDEP}] - dev-python/lxml[${PYTHON_USEDEP}] - dev-python/pathspec[${PYTHON_USEDEP}] - >=dev-python/tree-sitter-0.19.0[${PYTHON_USEDEP}] -" -BDEPEND=" - test? ( dev-python/pytest[${PYTHON_USEDEP}] ) -" - -distutils_enable_tests setup.py - -src_test() { - local -x PYTHONDONTWRITEBYTECODE= - distutils-r1_src_test -} - -python_install_all() { - local DOCS=( NEWS.rst ) - [[ ${PV} == *9999 ]] || doman man/* - distutils-r1_python_install_all -} - -pkg_postinst() { - optfeature "Network check support" dev-python/requests - optfeature "Perl module version check support" dev-perl/Gentoo-PerlMod-Version -} diff --git a/dev-util/pkgcheck/pkgcheck-0.9.7-r3.ebuild b/dev-util/pkgcheck/pkgcheck-0.9.7-r3.ebuild deleted file mode 100644 index 70f186fd2538..000000000000 --- a/dev-util/pkgcheck/pkgcheck-0.9.7-r3.ebuild +++ /dev/null @@ -1,64 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 -PYTHON_COMPAT=( python3_{8..9} ) -DISTUTILS_IN_SOURCE_BUILD=1 -inherit distutils-r1 optfeature - -if [[ ${PV} == *9999 ]] ; then - EGIT_REPO_URI="https://github.com/pkgcore/pkgcheck.git" - inherit git-r3 -else - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~x64-macos" - SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" -fi - -DESCRIPTION="pkgcore-based QA utility for ebuild repos" -HOMEPAGE="https://github.com/pkgcore/pkgcheck" - -LICENSE="BSD MIT" -SLOT="0" - -if [[ ${PV} == *9999 ]]; then - RDEPEND=" - ~dev-python/snakeoil-9999[${PYTHON_USEDEP}] - ~sys-apps/pkgcore-9999[${PYTHON_USEDEP}]" -else - RDEPEND=" - >=dev-python/snakeoil-0.9.6[${PYTHON_USEDEP}] - <sys-apps/pkgcore-0.12.0[${PYTHON_USEDEP}] - >=sys-apps/pkgcore-0.11.6[${PYTHON_USEDEP}]" -fi -RDEPEND+=" - dev-python/chardet[${PYTHON_USEDEP}] - dev-python/lazy-object-proxy[${PYTHON_USEDEP}] - dev-python/lxml[${PYTHON_USEDEP}] - dev-python/pathspec[${PYTHON_USEDEP}] - >=dev-python/tree-sitter-0.19.0[${PYTHON_USEDEP}] -" -BDEPEND=" - test? ( dev-python/pytest[${PYTHON_USEDEP}] ) -" - -distutils_enable_tests setup.py - -PATCHES=( - "${FILESDIR}"/${P}-py310-update.patch -) - -src_test() { - local -x PYTHONDONTWRITEBYTECODE= - distutils-r1_src_test -} - -python_install_all() { - local DOCS=( NEWS.rst ) - [[ ${PV} == *9999 ]] || doman man/* - distutils-r1_python_install_all -} - -pkg_postinst() { - optfeature "Network check support" dev-python/requests - optfeature "Perl module version check support" dev-perl/Gentoo-PerlMod-Version -} |