diff options
author | Eli Schwartz <eschwartz93@gmail.com> | 2024-06-25 23:09:45 -0400 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-06-26 10:03:48 +0100 |
commit | f7a7c27b26fe71f4d607f78ec540cf91f9ce926f (patch) | |
tree | 1e00c9a08a50430d99f66df4aee4f0fd6d170113 /dev-util/pkgdev | |
parent | dev-util/gcovr: fix mysterious overdependency in initial 7.2 addition (diff) | |
download | gentoo-f7a7c27b26fe71f4d607f78ec540cf91f9ce926f.tar.gz gentoo-f7a7c27b26fe71f4d607f78ec540cf91f9ce926f.tar.bz2 gentoo-f7a7c27b26fe71f4d607f78ec540cf91f9ce926f.zip |
dev-util/pkgdev: add dependency on tomli for old impls
It is missing it in wheel metadata, and also in the ebuild metadata. It
is only necessary for versions of python that don't have it in the
stdlib, and all those are old versions, but that's no reason not to
depend correctly on it where needed.
The "doc" USE flag also depends on tomli and does so unconditionally. It
appears that it doesn't allow one to select specific USEDEPs, which is
interesting but ok.
Signed-off-by: Eli Schwartz <eschwartz93@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-util/pkgdev')
-rw-r--r-- | dev-util/pkgdev/pkgdev-0.2.10-r1.ebuild | 78 | ||||
-rw-r--r-- | dev-util/pkgdev/pkgdev-9999.ebuild | 3 |
2 files changed, 81 insertions, 0 deletions
diff --git a/dev-util/pkgdev/pkgdev-0.2.10-r1.ebuild b/dev-util/pkgdev/pkgdev-0.2.10-r1.ebuild new file mode 100644 index 000000000000..1fc8f43e2948 --- /dev/null +++ b/dev-util/pkgdev/pkgdev-0.2.10-r1.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=standalone +PYTHON_COMPAT=( python3_{10..12} ) +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 ~ia64 ~loong ~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.5[${PYTHON_USEDEP}] + >=sys-apps/pkgcore-0.12.23[${PYTHON_USEDEP}] + >=dev-util/pkgcheck-0.10.25[${PYTHON_USEDEP}] + " +fi + +RDEPEND+=" + dev-vcs/git + $(python_gen_cond_dep ' + dev-python/tomli[${PYTHON_USEDEP}] + ' 3.10) +" +BDEPEND=" + >=dev-python/flit-core-3.8[${PYTHON_USEDEP}] + >=dev-python/snakeoil-0.10.5[${PYTHON_USEDEP}] + test? ( + x11-misc/xdg-utils + ) +" + +distutils_enable_sphinx doc \ + ">=dev-python/snakeoil-0.10.5" \ + 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/jinja" +} diff --git a/dev-util/pkgdev/pkgdev-9999.ebuild b/dev-util/pkgdev/pkgdev-9999.ebuild index 207bcf10ce9c..a1858addd1ea 100644 --- a/dev-util/pkgdev/pkgdev-9999.ebuild +++ b/dev-util/pkgdev/pkgdev-9999.ebuild @@ -40,6 +40,9 @@ fi RDEPEND+=" dev-vcs/git + $(python_gen_cond_dep ' + dev-python/tomli[${PYTHON_USEDEP}] + ' 3.10) " BDEPEND=" >=dev-python/flit-core-3.8[${PYTHON_USEDEP}] |