diff options
author | Arthur Zamarin <arthurzam@gentoo.org> | 2022-08-09 23:28:31 +0300 |
---|---|---|
committer | Arthur Zamarin <arthurzam@gentoo.org> | 2022-08-09 23:28:52 +0300 |
commit | fd9d7dd2bbd8405a94ab04ba0001f9b9d064e931 (patch) | |
tree | 90680347ac7ab995728fb8f912e1740b870ed122 /sys-apps | |
parent | net-wireless/unifi: add 7.2.92 (diff) | |
download | gentoo-fd9d7dd2bbd8405a94ab04ba0001f9b9d064e931.tar.gz gentoo-fd9d7dd2bbd8405a94ab04ba0001f9b9d064e931.tar.bz2 gentoo-fd9d7dd2bbd8405a94ab04ba0001f9b9d064e931.zip |
sys-apps/pkgcore: add 0.12.13, enable py3.11
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'sys-apps')
-rw-r--r-- | sys-apps/pkgcore/Manifest | 1 | ||||
-rw-r--r-- | sys-apps/pkgcore/pkgcore-0.12.13.ebuild | 56 | ||||
-rw-r--r-- | sys-apps/pkgcore/pkgcore-9999.ebuild | 2 |
3 files changed, 58 insertions, 1 deletions
diff --git a/sys-apps/pkgcore/Manifest b/sys-apps/pkgcore/Manifest index 5c1410d139f3..55c03adb7096 100644 --- a/sys-apps/pkgcore/Manifest +++ b/sys-apps/pkgcore/Manifest @@ -1,2 +1,3 @@ DIST pkgcore-0.12.11.tar.gz 625613 BLAKE2B f9bb17286cf30714d9f6f47ae6286031e418fd5f420e8921e1f1ed546cb1f293772e8d6e11ea2f4af8046d82fd166abb7c27f640f7f105c13a73d9ce19ccc52b SHA512 b98804603a9d14562efd56d01fa0b17ee1753d25b8c108d0d12eb47b103787f5fa7170f9924b473996817f31c31c40b5920db597974438cdc43215f5f83e43db DIST pkgcore-0.12.12.tar.gz 625488 BLAKE2B a1492b642447b8bf8fff6eb7cf85cf8d1355984afeb9d385383574327e3636aad7f9e7932a44a55649a64126b90d68de60e3653affb2753916fd439d15edcde9 SHA512 fe813d7e0be7b7ca0686ce4047211dc2a08e49d3b041ea6935e3cc905e1c8cf8f15fda2d4c0852bfaa191d898d774999b85bc9b440a5c32d438e2a8157caafbc +DIST pkgcore-0.12.13.tar.gz 625121 BLAKE2B add4e54c9d92570f4a4e9dad1af45f7c10e4fa48a312f1dd07b24bede5bf796d523d0a8b8d069234e92db5cf64bfb2911c57e5161ebdb7325bfb336237066b73 SHA512 26267f8ac2c79408467a20decd5fa5b12c075269b3bec155f185349186d920b5273ad1666879ac59caf08af022c2395fe737e2d51f26f9674996767bfbfb9bc6 diff --git a/sys-apps/pkgcore/pkgcore-0.12.13.ebuild b/sys-apps/pkgcore/pkgcore-0.12.13.ebuild new file mode 100644 index 000000000000..b3339a31db20 --- /dev/null +++ b/sys-apps/pkgcore/pkgcore-0.12.13.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8..11} ) +inherit distutils-r1 + +if [[ ${PV} == *9999 ]] ; then + EGIT_REPO_URI="https://github.com/pkgcore/pkgcore.git" + inherit git-r3 +else + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" + SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" +fi + +DESCRIPTION="a framework for package management" +HOMEPAGE="https://github.com/pkgcore/pkgcore" + +LICENSE="BSD MIT" +SLOT="0" + +RDEPEND=" + >=app-shells/bash-5.0 + dev-python/lxml[${PYTHON_USEDEP}] +" +if [[ ${PV} == *9999 ]]; then + RDEPEND+=" ~dev-python/snakeoil-9999[${PYTHON_USEDEP}]" +else + RDEPEND+=" >=dev-python/snakeoil-0.9.11[${PYTHON_USEDEP}]" +fi +BDEPEND=" + test? ( + >=dev-python/pytest-6[${PYTHON_USEDEP}] + dev-vcs/git + ) +" + +distutils_enable_tests setup.py + +src_test() { + # With PYTHONDONTWRITEBYTECODE=, python will try rebuild all sorts of modules. + # https://bugs.gentoo.org/840266 + local -x SANDBOX_PREDICT=${SANDBOX_PREDICT} + addpredict / + + local -x PYTHONDONTWRITEBYTECODE= + distutils-r1_src_test +} + +python_install_all() { + local DOCS=( NEWS.rst ) + [[ ${PV} == *9999 ]] || doman man/* + distutils-r1_python_install_all +} diff --git a/sys-apps/pkgcore/pkgcore-9999.ebuild b/sys-apps/pkgcore/pkgcore-9999.ebuild index 0919b8f2c070..b3339a31db20 100644 --- a/sys-apps/pkgcore/pkgcore-9999.ebuild +++ b/sys-apps/pkgcore/pkgcore-9999.ebuild @@ -4,7 +4,7 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{8..10} ) +PYTHON_COMPAT=( python3_{8..11} ) inherit distutils-r1 if [[ ${PV} == *9999 ]] ; then |