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