diff options
author | Arthur Zamarin <arthurzam@gentoo.org> | 2022-11-10 07:06:17 +0200 |
---|---|---|
committer | Arthur Zamarin <arthurzam@gentoo.org> | 2022-11-10 07:06:17 +0200 |
commit | a86251acafb914d259ff63d4b8678267b3ab6026 (patch) | |
tree | 80e069fb5170ca254db4b8f600548256cacf7245 /sys-apps | |
parent | sys-auth/elogind: fix UnquotedVariable (diff) | |
download | gentoo-a86251acafb914d259ff63d4b8678267b3ab6026.tar.gz gentoo-a86251acafb914d259ff63d4b8678267b3ab6026.tar.bz2 gentoo-a86251acafb914d259ff63d4b8678267b3ab6026.zip |
sys-apps/pkgcore: add 0.12.17
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.17.ebuild | 60 |
2 files changed, 61 insertions, 0 deletions
diff --git a/sys-apps/pkgcore/Manifest b/sys-apps/pkgcore/Manifest index 31326a7d7586..c1d1f55b2050 100644 --- a/sys-apps/pkgcore/Manifest +++ b/sys-apps/pkgcore/Manifest @@ -1 +1,2 @@ DIST pkgcore-0.12.16.tar.gz 623795 BLAKE2B b591aeaa5d780f0b273d446d1bdbdf33a44d085aa4975d3c5f394820a6f479c15da7850a699c92a56cb280ee028d922551c7226801dea6f4c34620bde3859c31 SHA512 acd7c478b342349e66dfda5ed1284663037b221e39b557215d1441e8a908c845fe26e274bcfd97b1879f5792fc017437cd0fbde1cdffc5ebc595a34fa56d2589 +DIST pkgcore-0.12.17.tar.gz 615375 BLAKE2B 9aabdeead2997e53ee3c966c908a231ff5e3b85422844538f47ff7bed03611459224ad7e931a9e94f0e376f221bd5c54f0f77f7883543cbd5b03c4dba6ba591b SHA512 9bad9b6e6177873b9187cff66b6b51c644a59a2d9f01b8ca110bc49006d6f0221c2c3b145d7cf5cec6f3c7526b6751100d56df13350b674a68ab5bbf19f10131 diff --git a/sys-apps/pkgcore/pkgcore-0.12.17.ebuild b/sys-apps/pkgcore/pkgcore-0.12.17.ebuild new file mode 100644 index 000000000000..727dcbf220de --- /dev/null +++ b/sys-apps/pkgcore/pkgcore-0.12.17.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=standalone +PYTHON_COMPAT=( python3_{9..11} ) +inherit distutils-r1 + +if [[ ${PV} == *9999 ]] ; then + EGIT_REPO_URI="https://anongit.gentoo.org/git/proj/pkgcore/pkgcore.git + 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.10.1[${PYTHON_USEDEP}]" +fi +BDEPEND=" + >=dev-python/flit_core-3.8[${PYTHON_USEDEP}] + test? ( + dev-vcs/git + ) +" + +distutils_enable_tests pytest + +EPYTEST_DESELECT=( + # fail because of forcing Gentoo's prefix + tests/ebuild/test_eapi.py::TestEAPI::test_register + tests/ebuild/test_eapi.py::TestEAPI::test_is_supported +) + +src_prepare() { + # force Gentoo's prefix + sed -e "/INSTALL_PREFIX =/s@= .*\$@= '${EPREFIX}/usr'@" -i py_build.py || die + + distutils-r1_src_prepare +} + +python_install_all() { + local DOCS=( NEWS.rst ) + [[ ${PV} == *9999 ]] || doman build/sphinx/man/* + distutils-r1_python_install_all +} |