diff options
author | Ulrich Müller <ulm@gentoo.org> | 2023-03-20 18:27:09 +0100 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2023-03-20 18:27:09 +0100 |
commit | 015d7e1648ba32072eed926ee3009a3adf9037a1 (patch) | |
tree | 73f2ac8afbe61bbd4ebbbd6030b2be46ff792309 /app-admin | |
parent | dev-vcs/git-absorb: new package, add 0.6.9 (diff) | |
download | gentoo-015d7e1648ba32072eed926ee3009a3adf9037a1.tar.gz gentoo-015d7e1648ba32072eed926ee3009a3adf9037a1.tar.bz2 gentoo-015d7e1648ba32072eed926ee3009a3adf9037a1.zip |
app-admin/eselect: add 1.4.22
Closes: https://bugs.gentoo.org/901205
Closes: https://bugs.gentoo.org/901209
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'app-admin')
-rw-r--r-- | app-admin/eselect/Manifest | 1 | ||||
-rw-r--r-- | app-admin/eselect/eselect-1.4.22.ebuild | 58 |
2 files changed, 59 insertions, 0 deletions
diff --git a/app-admin/eselect/Manifest b/app-admin/eselect/Manifest index 73ae2c1fd565..d22db10b0ff3 100644 --- a/app-admin/eselect/Manifest +++ b/app-admin/eselect/Manifest @@ -1,2 +1,3 @@ DIST eselect-1.4.20.tar.xz 180272 BLAKE2B 424653d00eda45335c3aaae50f6fbf2e89486da4529f657596516352f3b7fcb9859ceb2dc5b9762a34c44fb64e645fa27c46b86453bf50be6e8ae820664a4289 SHA512 9589ed89c4d5d31f71d535886eb50da67b84dec8a13a5df081e7569efee861dede4eaa43a0bfb9930c5b95d4f334e19245cb8820a73f7361527da262da1d1fb2 DIST eselect-1.4.21.tar.xz 182780 BLAKE2B 64db8ec3655bc78ad0e40be3c83625f46c49b1cd88e881dba843f05cdc56aba4e746b5fd27ab5c6663947dacc93211a98b224d48aeccc0154e203d3929d49116 SHA512 0dfb771401af3ce5f4002ac6717b37351b3a37b0421cf292b7b5a432f4ee2cff1705a44a45f8e5b3dee73440c7b49b2b76a69fb1cfa727874dd64285d1097eb7 +DIST eselect-1.4.22.tar.xz 183480 BLAKE2B 8f86bdddaf98bc075694bdf7283cbd366e0ef93635472b3bbac11fdd9765984cd82e493b16836bae66e4b2c42a9cb33ad0d2aacaaf8529b59e4898e11f172d26 SHA512 73a10278d604f462aefa099df398eec2b08aee33da69419351ff2faf1cf4c0f3de0f301d92015e52da63046fe7e2c1c388e11ac84b7deb3def505a59fa291dac diff --git a/app-admin/eselect/eselect-1.4.22.ebuild b/app-admin/eselect/eselect-1.4.22.ebuild new file mode 100644 index 000000000000..db0f598986ef --- /dev/null +++ b/app-admin/eselect/eselect-1.4.22.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit bash-completion-r1 + +DESCRIPTION="Gentoo's multi-purpose configuration and management tool" +HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Eselect" +SRC_URI="https://dev.gentoo.org/~ulm/eselect/${P}.tar.xz" + +LICENSE="GPL-2+ || ( GPL-2+ CC-BY-SA-4.0 )" +SLOT="0" +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" +IUSE="doc emacs vim-syntax" + +DEPEND="sys-apps/sed + || ( + sys-apps/coreutils + app-misc/realpath + )" +RDEPEND="${DEPEND} + sys-apps/file + sys-libs/ncurses:0" +BDEPEND="doc? ( dev-python/docutils )" +PDEPEND="emacs? ( app-emacs/eselect-mode ) + vim-syntax? ( app-vim/eselect-syntax )" + +src_compile() { + emake + use doc && emake html +} + +src_install() { + emake DESTDIR="${D}" install + newbashcomp misc/${PN}.bashcomp ${PN} + dodoc AUTHORS ChangeLog NEWS README TODO doc/*.txt + if use doc; then + docinto html + dodoc *.html doc/*.html doc/*.css + fi + + # needed by news module + keepdir /var/lib/gentoo/news + if ! use prefix; then + fowners root:portage /var/lib/gentoo/news + fperms g+w /var/lib/gentoo/news + fi +} + +pkg_postinst() { + # fowners in src_install doesn't work for the portage group: + # merging changes the group back to root + if ! use prefix; then + chgrp portage "${EROOT}/var/lib/gentoo/news" \ + && chmod g+w "${EROOT}/var/lib/gentoo/news" + fi +} |