Gentoo Archives: gentoo-commits

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/eselect/
Date: Mon, 20 Mar 2023 17:27:51
Message-Id: 1679333229.015d7e1648ba32072eed926ee3009a3adf9037a1.ulm@gentoo
1 commit: 015d7e1648ba32072eed926ee3009a3adf9037a1
2 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
3 AuthorDate: Mon Mar 20 17:27:09 2023 +0000
4 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
5 CommitDate: Mon Mar 20 17:27:09 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=015d7e16
7
8 app-admin/eselect: add 1.4.22
9
10 Closes: https://bugs.gentoo.org/901205
11 Closes: https://bugs.gentoo.org/901209
12 Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
13
14 app-admin/eselect/Manifest | 1 +
15 app-admin/eselect/eselect-1.4.22.ebuild | 58 +++++++++++++++++++++++++++++++++
16 2 files changed, 59 insertions(+)
17
18 diff --git a/app-admin/eselect/Manifest b/app-admin/eselect/Manifest
19 index 73ae2c1fd565..d22db10b0ff3 100644
20 --- a/app-admin/eselect/Manifest
21 +++ b/app-admin/eselect/Manifest
22 @@ -1,2 +1,3 @@
23 DIST eselect-1.4.20.tar.xz 180272 BLAKE2B 424653d00eda45335c3aaae50f6fbf2e89486da4529f657596516352f3b7fcb9859ceb2dc5b9762a34c44fb64e645fa27c46b86453bf50be6e8ae820664a4289 SHA512 9589ed89c4d5d31f71d535886eb50da67b84dec8a13a5df081e7569efee861dede4eaa43a0bfb9930c5b95d4f334e19245cb8820a73f7361527da262da1d1fb2
24 DIST eselect-1.4.21.tar.xz 182780 BLAKE2B 64db8ec3655bc78ad0e40be3c83625f46c49b1cd88e881dba843f05cdc56aba4e746b5fd27ab5c6663947dacc93211a98b224d48aeccc0154e203d3929d49116 SHA512 0dfb771401af3ce5f4002ac6717b37351b3a37b0421cf292b7b5a432f4ee2cff1705a44a45f8e5b3dee73440c7b49b2b76a69fb1cfa727874dd64285d1097eb7
25 +DIST eselect-1.4.22.tar.xz 183480 BLAKE2B 8f86bdddaf98bc075694bdf7283cbd366e0ef93635472b3bbac11fdd9765984cd82e493b16836bae66e4b2c42a9cb33ad0d2aacaaf8529b59e4898e11f172d26 SHA512 73a10278d604f462aefa099df398eec2b08aee33da69419351ff2faf1cf4c0f3de0f301d92015e52da63046fe7e2c1c388e11ac84b7deb3def505a59fa291dac
26
27 diff --git a/app-admin/eselect/eselect-1.4.22.ebuild b/app-admin/eselect/eselect-1.4.22.ebuild
28 new file mode 100644
29 index 000000000000..db0f598986ef
30 --- /dev/null
31 +++ b/app-admin/eselect/eselect-1.4.22.ebuild
32 @@ -0,0 +1,58 @@
33 +# Copyright 1999-2023 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +inherit bash-completion-r1
39 +
40 +DESCRIPTION="Gentoo's multi-purpose configuration and management tool"
41 +HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Eselect"
42 +SRC_URI="https://dev.gentoo.org/~ulm/eselect/${P}.tar.xz"
43 +
44 +LICENSE="GPL-2+ || ( GPL-2+ CC-BY-SA-4.0 )"
45 +SLOT="0"
46 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
47 +IUSE="doc emacs vim-syntax"
48 +
49 +DEPEND="sys-apps/sed
50 + || (
51 + sys-apps/coreutils
52 + app-misc/realpath
53 + )"
54 +RDEPEND="${DEPEND}
55 + sys-apps/file
56 + sys-libs/ncurses:0"
57 +BDEPEND="doc? ( dev-python/docutils )"
58 +PDEPEND="emacs? ( app-emacs/eselect-mode )
59 + vim-syntax? ( app-vim/eselect-syntax )"
60 +
61 +src_compile() {
62 + emake
63 + use doc && emake html
64 +}
65 +
66 +src_install() {
67 + emake DESTDIR="${D}" install
68 + newbashcomp misc/${PN}.bashcomp ${PN}
69 + dodoc AUTHORS ChangeLog NEWS README TODO doc/*.txt
70 + if use doc; then
71 + docinto html
72 + dodoc *.html doc/*.html doc/*.css
73 + fi
74 +
75 + # needed by news module
76 + keepdir /var/lib/gentoo/news
77 + if ! use prefix; then
78 + fowners root:portage /var/lib/gentoo/news
79 + fperms g+w /var/lib/gentoo/news
80 + fi
81 +}
82 +
83 +pkg_postinst() {
84 + # fowners in src_install doesn't work for the portage group:
85 + # merging changes the group back to root
86 + if ! use prefix; then
87 + chgrp portage "${EROOT}/var/lib/gentoo/news" \
88 + && chmod g+w "${EROOT}/var/lib/gentoo/news"
89 + fi
90 +}