diff options
author | Arthur Zamarin <arthurzam@gentoo.org> | 2022-05-22 21:18:52 +0300 |
---|---|---|
committer | Arthur Zamarin <arthurzam@gentoo.org> | 2022-05-22 21:18:52 +0300 |
commit | b0f2c146f70cefb1fd221fe19a1bdd8cb96dcd60 (patch) | |
tree | 1aa2e2a249cdc1ac20dbca15b28756e4feb70fe6 /dev-util | |
parent | games-simulation/EmptyEpsilon: fix compilation with gcc 12 (diff) | |
download | gentoo-b0f2c146f70cefb1fd221fe19a1bdd8cb96dcd60.tar.gz gentoo-b0f2c146f70cefb1fd221fe19a1bdd8cb96dcd60.tar.bz2 gentoo-b0f2c146f70cefb1fd221fe19a1bdd8cb96dcd60.zip |
dev-util/pkgdev: add 0.2.1
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'dev-util')
-rw-r--r-- | dev-util/pkgdev/Manifest | 1 | ||||
-rw-r--r-- | dev-util/pkgdev/pkgdev-0.2.1.ebuild | 64 |
2 files changed, 65 insertions, 0 deletions
diff --git a/dev-util/pkgdev/Manifest b/dev-util/pkgdev/Manifest index d43475210c20..459250355872 100644 --- a/dev-util/pkgdev/Manifest +++ b/dev-util/pkgdev/Manifest @@ -1,2 +1,3 @@ DIST pkgdev-0.1.9.tar.gz 57093 BLAKE2B 5f5d9b4956cdc949d5e37c24160c692c32cf7e5d9fe90c167adc364993370dc42291edca048db3b0a2f17b199003aea61bd6b541bc58de1c1a084365ce517660 SHA512 78c117163549cb021e8cb9bd65e9a7752633506f3db825133fc3c4c515549c6e10dc974164489c06f94c1a1e25acb8fe050a57754353b907d6026892ef034cb2 DIST pkgdev-0.2.0.tar.gz 59836 BLAKE2B 89de7179b1365f7f4bf1359720200bc8dba53e3b3133fead12b224db8d9a6cf7accbed3c5ed89760030efd3a992d46cf525756a522ac4d9128376e4c03b2a5e9 SHA512 6bf17e8188c809e8862c1a39ce4c0c2e60ed0a261f00bf93707257df0395b03120838247bdc7f5a3375111797564a5a6b16bb8f7e571ce957efe92e173a6ed11 +DIST pkgdev-0.2.1.tar.gz 66455 BLAKE2B 6f89b1601813adcb1263a044a096d187d7fa926f116a09dc2b1cec083f8d82da54ae00577c36d64ece5733d8952f8dc5f4dff94aeb695e851f340a30f04b203e SHA512 8277f74f3d9902da295c5436a46302627bdc1cb2a63f29b0603bf9bfa2c8bb812b26f12a54630cbbcba1e2bbac7352146f6ab59fc04cd8b89b46df1fe7c9f8dd diff --git a/dev-util/pkgdev/pkgdev-0.2.1.ebuild b/dev-util/pkgdev/pkgdev-0.2.1.ebuild new file mode 100644 index 000000000000..6e52159b76e3 --- /dev/null +++ b/dev-util/pkgdev/pkgdev-0.2.1.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..10} ) +DISTUTILS_IN_SOURCE_BUILD=1 +inherit distutils-r1 + +if [[ ${PV} == *9999 ]] ; then + EGIT_REPO_URI="https://github.com/pkgcore/pkgdev.git" + inherit git-r3 +else + SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86 ~x64-macos" +fi + +DESCRIPTION="Collection of tools for Gentoo development" +HOMEPAGE="https://github.com/pkgcore/pkgdev" + +LICENSE="BSD MIT" +SLOT="0" + +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.9.6[${PYTHON_USEDEP}] + >=dev-util/pkgcheck-0.10.0[${PYTHON_USEDEP}] + >=sys-apps/pkgcore-0.12.0[${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" + +distutils_enable_sphinx doc +distutils_enable_tests setup.py + +python_install_all() { + # We'll generate man pages ourselves + # Revisit when a release is made + # to pregenerate them, making USE=doc + # for generating the real HTML docs only. + if use doc ; then + cd doc || die + emake man + doman _build/man/* + fi + + cd .. || die + + # HTML pages only + sphinx_compile_all + + distutils-r1_python_install_all +} |