summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2022-05-14 23:36:38 +0300
committerArthur Zamarin <arthurzam@gentoo.org>2022-05-14 23:37:13 +0300
commit179136b4c1963eb2f5cac2ab015501fb4ce70d1c (patch)
treed0da32593513edd43ccfca0c8c9e23557b57ff2c /dev-util
parentdev-python/pytest-sugar: enable py3.11 (diff)
downloadgentoo-179136b4c1963eb2f5cac2ab015501fb4ce70d1c.tar.gz
gentoo-179136b4c1963eb2f5cac2ab015501fb4ce70d1c.tar.bz2
gentoo-179136b4c1963eb2f5cac2ab015501fb4ce70d1c.zip
dev-util/pkgcheck: add 0.10.10
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'dev-util')
-rw-r--r--dev-util/pkgcheck/Manifest1
-rw-r--r--dev-util/pkgcheck/pkgcheck-0.10.10.ebuild68
2 files changed, 69 insertions, 0 deletions
diff --git a/dev-util/pkgcheck/Manifest b/dev-util/pkgcheck/Manifest
index dd65ba70fc78..a1a5ad30b407 100644
--- a/dev-util/pkgcheck/Manifest
+++ b/dev-util/pkgcheck/Manifest
@@ -1 +1,2 @@
+DIST pkgcheck-0.10.10.tar.gz 464957 BLAKE2B ce8abb3a4f40b6c8512dc6ff2def4d32a2628b3805dc6d90c67adb869d834885a8b17610766dc3ba11c9d93316dd8543152d3f91e919b0cfd2d9cb72ba5eb937 SHA512 54878acfab8a5c579c8a5ee5c6bf4f1a67811277a6b94950ade89ec8f400b3f8e91a9a6ac31b8a7cf3c97a3ffe053b744d7cb2040dda8fc273516eb663e84839
DIST pkgcheck-0.10.9.tar.gz 460614 BLAKE2B 5b581cf5acd6cf46d72bb3c928a93a20e3b2f552d447617eaf2b9ac50cd7956f9a43fa7b17932b27fa8dafc6d49e41cb8553e4a9059b0ef5fd769713deb6fb12 SHA512 cc800f89944353dec5a4293968a16c132e573b309b6074d4f950b993dab7ea8c51decf3921bd34d3b04520c932a932d27e6e969c8dcf86d20fd6917265d474b6
diff --git a/dev-util/pkgcheck/pkgcheck-0.10.10.ebuild b/dev-util/pkgcheck/pkgcheck-0.10.10.ebuild
new file mode 100644
index 000000000000..2c08f5a2ed09
--- /dev/null
+++ b/dev-util/pkgcheck/pkgcheck-0.10.10.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+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="~amd64"
+ 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.8[${PYTHON_USEDEP}]"
+fi
+RDEPEND+="
+ dev-libs/tree-sitter
+ dev-libs/tree-sitter-bash
+ 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}]
+ dev-python/requests[${PYTHON_USEDEP}]
+ dev-vcs/git
+ )
+"
+
+distutils_enable_tests setup.py
+
+export USE_SYSTEM_TREE_SITTER_BASH=1
+
+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
+}