dev-util/pkgdev: add 0.2.12

Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
This commit is contained in:
Arthur Zamarin
2025-06-14 12:41:36 +03:00
parent c43c34c4f7
commit 5ef617d7d4
2 changed files with 76 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST pkgdev-0.2.11.tar.gz 87611 BLAKE2B ae864535a9ca9b9b69c4b595a67ddef477cfeacefb24a87258d0725cd912cedcad0ad3d1152f776a115b5230d259a58254e988a1db10d39af46a094fcea3219e SHA512 7e0a3ca6c11080874f9c49d708c926e7eed7c6591e07f34130e25bd2b2bd4a272e460537684d270095142eded94ed01ca8b547c340b3d3611208aad0ab432633
DIST pkgdev-0.2.12.tar.gz 87765 BLAKE2B 023c74d8563708d3601489a7df6c3da580ba3388f57ef31f52becf29e1d12725448058a3b237c733a365cbdc2d58523aed199f4ea6888fd96f50c59eca019a9b SHA512 3346b68585a8b5ad24293209fa312816d26e9b11e52135ab6866e993cafd28335d91eac66979cca04470181e4185145df8e0af0f2b98eb06c99ac46f19163c4c

View File

@@ -0,0 +1,75 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=standalone
PYTHON_COMPAT=( python3_{11..14} )
inherit distutils-r1 optfeature
if [[ ${PV} == *9999 ]] ; then
EGIT_BRANCH="main"
EGIT_REPO_URI="https://anongit.gentoo.org/git/proj/pkgcore/pkgdev.git
https://github.com/pkgcore/pkgdev.git"
inherit git-r3
else
inherit pypi
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos"
fi
DESCRIPTION="Collection of tools for Gentoo development"
HOMEPAGE="https://github.com/pkgcore/pkgdev"
LICENSE="BSD MIT"
SLOT="0"
IUSE="doc"
if [[ ${PV} == *9999 ]] ; then
RDEPEND="
~dev-python/snakeoil-9999[${PYTHON_USEDEP}]
~dev-util/pkgcheck-9999[${PYTHON_USEDEP}]
~sys-apps/pkgcore-9999[${PYTHON_USEDEP}]
"
else
RDEPEND="
>=dev-python/snakeoil-0.10.11[${PYTHON_USEDEP}]
>=sys-apps/pkgcore-0.12.30[${PYTHON_USEDEP}]
>=dev-util/pkgcheck-0.10.36[${PYTHON_USEDEP}]
"
fi
RDEPEND+="
dev-vcs/git
"
BDEPEND="
>=dev-python/flit-core-3.8[${PYTHON_USEDEP}]
>=dev-python/snakeoil-0.10.11[${PYTHON_USEDEP}]
test? (
x11-misc/xdg-utils
)
"
distutils_enable_sphinx doc \
">=dev-python/snakeoil-0.10.11" \
dev-python/tomli
distutils_enable_tests pytest
python_compile_all() {
use doc && emake PYTHON="${EPYTHON}" man
sphinx_compile_all # HTML pages only
}
python_install_all() {
# If USE=doc, there'll be newly generated docs which we install instead.
if use doc || [[ ${PV} != *9999 ]]; then
doman build/sphinx/man/*
fi
distutils-r1_python_install_all
}
pkg_postinst() {
optfeature "sending email support" x11-misc/xdg-utils
optfeature "tatt subcommand" "app-portage/nattka dev-python/jinja2"
}