Gentoo Archives: gentoo-commits

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/pkgdev/
Date: Sun, 27 Nov 2022 18:07:06
Message-Id: 1669572417.8abfa098e9084b722ff487e09776903c136056fd.arthurzam@gentoo
1 commit: 8abfa098e9084b722ff487e09776903c136056fd
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Sun Nov 27 18:06:42 2022 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Sun Nov 27 18:06:57 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8abfa098
7
8 dev-util/pkgdev: add 0.2.4
9
10 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
11
12 dev-util/pkgdev/Manifest | 1 +
13 dev-util/pkgdev/pkgdev-0.2.4.ebuild | 71 +++++++++++++++++++++++++++++++++++++
14 2 files changed, 72 insertions(+)
15
16 diff --git a/dev-util/pkgdev/Manifest b/dev-util/pkgdev/Manifest
17 index 72f0d517c7e9..c379f30e1e06 100644
18 --- a/dev-util/pkgdev/Manifest
19 +++ b/dev-util/pkgdev/Manifest
20 @@ -1 +1,2 @@
21 DIST pkgdev-0.2.3.tar.gz 67292 BLAKE2B 8e4195c1094200836e23f97ed8ddf44659dcbe123180b253bf961fc08f2534d3573c7194302b3dbe866b45a548e63951ef63d4fce77c4d0903c34a0f4ece9c0b SHA512 ea09483fff8d64ed2a53ab3435bf01be172f1ef6fcbcfa5eac2f19104fdd20cd57f045f578db896c92689f4e6e36acfa4ae4feb28424b5566041fc0e1d5ccb05
22 +DIST pkgdev-0.2.4.tar.gz 64156 BLAKE2B 321e14b246a97236142a862968bfc127f3215314ef173dc0d610ca867d00a0db067def7810083b11bf6aea1e36202e6c91d7c63d74aa2b85fb17ec476cba1f7c SHA512 0390e130abda2f8eea1d3dd029d31d9381f2543ca98f547b91716ce383791c3760bd89bb276b5b15eaaa165be339c8147d26e93ba81d5be4c8a4cbede6a31caf
23
24 diff --git a/dev-util/pkgdev/pkgdev-0.2.4.ebuild b/dev-util/pkgdev/pkgdev-0.2.4.ebuild
25 new file mode 100644
26 index 000000000000..d45b66120ddd
27 --- /dev/null
28 +++ b/dev-util/pkgdev/pkgdev-0.2.4.ebuild
29 @@ -0,0 +1,71 @@
30 +# Copyright 1999-2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +DISTUTILS_USE_PEP517=standalone
36 +PYTHON_COMPAT=( python3_{9..11} )
37 +inherit distutils-r1 optfeature
38 +
39 +if [[ ${PV} == *9999 ]] ; then
40 + EGIT_REPO_URI="https://anongit.gentoo.org/git/proj/pkgcore/pkgdev.git
41 + https://github.com/pkgcore/pkgdev.git"
42 + inherit git-r3
43 +else
44 + SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
45 + KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86 ~x64-macos"
46 +fi
47 +
48 +DESCRIPTION="Collection of tools for Gentoo development"
49 +HOMEPAGE="https://github.com/pkgcore/pkgdev"
50 +
51 +LICENSE="BSD MIT"
52 +SLOT="0"
53 +
54 +if [[ ${PV} == *9999 ]] ; then
55 + RDEPEND="
56 + ~dev-python/snakeoil-9999[${PYTHON_USEDEP}]
57 + ~dev-util/pkgcheck-9999[${PYTHON_USEDEP}]
58 + ~sys-apps/pkgcore-9999[${PYTHON_USEDEP}]
59 + "
60 +else
61 + RDEPEND="
62 + >=dev-python/snakeoil-0.10.3[${PYTHON_USEDEP}]
63 + >=dev-util/pkgcheck-0.10.16[${PYTHON_USEDEP}]
64 + >=sys-apps/pkgcore-0.12.16[${PYTHON_USEDEP}]
65 + "
66 +fi
67 +
68 +RDEPEND+="
69 + dev-vcs/git
70 +"
71 +BDEPEND="
72 + >=dev-python/flit_core-3.8[${PYTHON_USEDEP}]
73 + test? (
74 + x11-misc/xdg-utils
75 + )
76 +"
77 +
78 +distutils_enable_sphinx doc \
79 + ">=dev-python/snakeoil-0.10.3" \
80 + dev-python/tomli
81 +distutils_enable_tests pytest
82 +
83 +python_compile_all() {
84 + use doc && emake PYTHON="${EPYTHON}" man
85 +
86 + sphinx_compile_all # HTML pages only
87 +}
88 +
89 +python_install_all() {
90 + # If USE=doc, there'll be newly generated docs which we install instead.
91 + if use doc || [[ ${PV} != *9999 ]]; then
92 + doman build/sphinx/man/*
93 + fi
94 +
95 + distutils-r1_python_install_all
96 +}
97 +
98 +pkg_postinst() {
99 + optfeature "sending email support" x11-misc/xdg-utils
100 +}