Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-eselect/eselect-repository/
Date: Thu, 13 Jan 2022 07:59:53
Message-Id: 1642060703.44f5f56b96eb529ef552c9c7594fb9fd66ba4ba7.mgorny@gentoo
1 commit: 44f5f56b96eb529ef552c9c7594fb9fd66ba4ba7
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jan 13 07:58:23 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 13 07:58:23 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=44f5f56b
7
8 app-eselect/eselect-repository: Bump to v12
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 app-eselect/eselect-repository/Manifest | 1 +
13 .../eselect-repository-12.ebuild | 52 ++++++++++++++++++++++
14 2 files changed, 53 insertions(+)
15
16 diff --git a/app-eselect/eselect-repository/Manifest b/app-eselect/eselect-repository/Manifest
17 index 7ae44f2e4cf5..ec2350a55f23 100644
18 --- a/app-eselect/eselect-repository/Manifest
19 +++ b/app-eselect/eselect-repository/Manifest
20 @@ -1 +1,2 @@
21 DIST eselect-repository-11.tar.gz 8554 BLAKE2B c7bdd1559c310c492b2c00c7a7cb92d48ad24a69ff4485c1282c67b7dd211360fcda6d96eec2b9e734a1b4745f2a0fe9da1ff20d62bf1174a64b6016097ea634 SHA512 31b0b36122e580a018ca66d112cdddfbfe1568030fb9a20440450c17c759bfb872eb7ef99036a3dae14e8384a8f770354fd4cd362ed594408ae9e8dbbc6dea68
22 +DIST eselect-repository-12.tar.gz 8543 BLAKE2B 14866156ddfefebaea368c4a13413d79e7858520861ee2b699cb09b339f3bb4b8393af7201b4cb7d6a60d2a48d168a053cc4707e2f56a7a2a11cfb5156cfa83f SHA512 3b98b9bd87fe61c7fb4d314e72c8433b11dd80501cfd226d4a4de25ca6d08e7a14a2497a1700ac64d704368bb8e5ea2ec337d0712097e9e10182a3122a59e388
23
24 diff --git a/app-eselect/eselect-repository/eselect-repository-12.ebuild b/app-eselect/eselect-repository/eselect-repository-12.ebuild
25 new file mode 100644
26 index 000000000000..d1183fe43d04
27 --- /dev/null
28 +++ b/app-eselect/eselect-repository/eselect-repository-12.ebuild
29 @@ -0,0 +1,52 @@
30 +# Copyright 1999-2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +PYTHON_COMPAT=( python3_{8..10} )
36 +inherit python-single-r1
37 +
38 +DESCRIPTION="Manage repos.conf via eselect"
39 +HOMEPAGE="https://github.com/mgorny/eselect-repository"
40 +SRC_URI="https://github.com/mgorny/eselect-repository/archive/v${PV}.tar.gz -> ${P}.tar.gz"
41 +
42 +LICENSE="BSD-2"
43 +SLOT="0"
44 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos"
45 +IUSE="test"
46 +RESTRICT="!test? ( test )"
47 +REQUIRED_USE=${PYTHON_REQUIRED_USE}
48 +
49 +RDEPEND="${PYTHON_DEPS}
50 + app-admin/eselect
51 + $(python_gen_cond_dep '
52 + dev-python/lxml[${PYTHON_USEDEP}]
53 + ')
54 + net-misc/wget"
55 +BDEPEND="
56 + test? (
57 + $(python_gen_cond_dep '
58 + dev-python/pytest[${PYTHON_USEDEP}]
59 + ')
60 + )"
61 +
62 +src_compile() {
63 + MAKEARGS=(
64 + PREFIX="${EPREFIX}/usr"
65 + SYSCONFDIR="${EPREFIX}/etc"
66 + SHAREDSTATEDIR="${EPREFIX}/var"
67 + ESELECTDIR="${EPREFIX}/usr/share/eselect/modules"
68 + )
69 +
70 + emake "${MAKEARGS[@]}"
71 + python_fix_shebang eselect-repo-helper
72 +}
73 +
74 +src_test() {
75 + epytest
76 +}
77 +
78 +src_install() {
79 + emake "${MAKEARGS[@]}" DESTDIR="${D}" install
80 + einstalldocs
81 +}