diff options
author | Arthur Zamarin <arthurzam@gentoo.org> | 2022-11-17 19:15:05 +0200 |
---|---|---|
committer | Arthur Zamarin <arthurzam@gentoo.org> | 2022-11-17 19:15:05 +0200 |
commit | 505d1f8f1b216572cff8ee89a3b4307524482b9b (patch) | |
tree | f4fb64dad8ad9ff80ca398ebfa2ae3044342cd70 /dev-util/pkgdev/pkgdev-9999.ebuild | |
parent | www-client/firefox: Stabilize 102.5.0 arm64, #881649 (diff) | |
download | gentoo-505d1f8f1b216572cff8ee89a3b4307524482b9b.tar.gz gentoo-505d1f8f1b216572cff8ee89a3b4307524482b9b.tar.bz2 gentoo-505d1f8f1b216572cff8ee89a3b4307524482b9b.zip |
dev-util/pkgdev: (live) update build backend
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'dev-util/pkgdev/pkgdev-9999.ebuild')
-rw-r--r-- | dev-util/pkgdev/pkgdev-9999.ebuild | 41 |
1 files changed, 23 insertions, 18 deletions
diff --git a/dev-util/pkgdev/pkgdev-9999.ebuild b/dev-util/pkgdev/pkgdev-9999.ebuild index 43088aafe85a..3ce9dec619cb 100644 --- a/dev-util/pkgdev/pkgdev-9999.ebuild +++ b/dev-util/pkgdev/pkgdev-9999.ebuild @@ -3,9 +3,9 @@ EAPI=8 -DISTUTILS_USE_PEP517=setuptools +DISTUTILS_USE_PEP517=standalone PYTHON_COMPAT=( python3_{9..11} ) -inherit distutils-r1 +inherit distutils-r1 optfeature if [[ ${PV} == *9999 ]] ; then EGIT_REPO_URI="https://anongit.gentoo.org/git/proj/pkgcore/pkgdev.git @@ -24,44 +24,49 @@ SLOT="0" IUSE="doc" if [[ ${PV} == *9999 ]] ; then - # https://github.com/pkgcore/pkgdev/blob/main/requirements/dev.txt RDEPEND=" ~dev-python/snakeoil-9999[${PYTHON_USEDEP}] ~dev-util/pkgcheck-9999[${PYTHON_USEDEP}] ~sys-apps/pkgcore-9999[${PYTHON_USEDEP}] " else - # https://github.com/pkgcore/pkgdev/blob/main/requirements/install.txt RDEPEND=" - >=dev-python/snakeoil-0.10.1[${PYTHON_USEDEP}] + >=dev-python/snakeoil-0.10.3[${PYTHON_USEDEP}] >=dev-util/pkgcheck-0.10.16[${PYTHON_USEDEP}] >=sys-apps/pkgcore-0.12.16[${PYTHON_USEDEP}] " fi -# Uses pytest but we want to use the setup.py runner to get generated modules -BDEPEND+="test? ( dev-python/pytest )" -RDEPEND+="dev-vcs/git" +RDEPEND+=" + dev-vcs/git +" +BDEPEND=" + >=dev-python/flit_core-3.8[${PYTHON_USEDEP}] + test? ( + x11-misc/xdg-utils + ) +" -distutils_enable_sphinx doc -distutils_enable_tests setup.py +distutils_enable_sphinx doc \ + ">=dev-python/snakeoil-0.10.3" \ + dev-python/tomli +distutils_enable_tests pytest python_compile_all() { - if use doc; then - "${EPYTHON}" setup.py build_man -f || die - fi + use doc && emake PYTHON="${EPYTHON}" man - # HTML pages only - sphinx_compile_all + 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; then + if use doc || [[ ${PV} != *9999 ]]; then doman build/sphinx/man/* - elif [[ ${PV} != *9999 ]]; then - doman man/*.[0-8] fi distutils-r1_python_install_all } + +pkg_postinst() { + optfeature "sending email support" x11-misc/xdg-utils +} |