Gentoo Archives: gentoo-commits

From: Sebastian Pipping <sping@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-portage/elogv/
Date: Mon, 28 Nov 2022 20:37:52
Message-Id: 1669667832.6d2014ac7d15cf20b3ba21bebe6518ae1647f656.sping@gentoo
1 commit: 6d2014ac7d15cf20b3ba21bebe6518ae1647f656
2 Author: Sebastian Pipping <sping <AT> gentoo <DOT> org>
3 AuthorDate: Mon Nov 28 20:33:09 2022 +0000
4 Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org>
5 CommitDate: Mon Nov 28 20:37:12 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6d2014ac
7
8 app-portage/elogv: Python 3.11
9
10 Signed-off-by: Sebastian Pipping <sping <AT> gentoo.org>
11
12 app-portage/elogv/elogv-0.7.9-r3.ebuild | 56 +++++++++++++++++++++++++++++++++
13 1 file changed, 56 insertions(+)
14
15 diff --git a/app-portage/elogv/elogv-0.7.9-r3.ebuild b/app-portage/elogv/elogv-0.7.9-r3.ebuild
16 new file mode 100644
17 index 000000000000..5936381034d5
18 --- /dev/null
19 +++ b/app-portage/elogv/elogv-0.7.9-r3.ebuild
20 @@ -0,0 +1,56 @@
21 +# Copyright 1999-2022 Gentoo Authors
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=8
25 +
26 +PYTHON_COMPAT=( python3_{8..11} pypy3 )
27 +PYTHON_REQ_USE="ncurses"
28 +DISTUTILS_USE_SETUPTOOLS=no
29 +
30 +inherit distutils-r1
31 +
32 +DESCRIPTION="Curses based utility to parse the contents of elogs created by Portage"
33 +HOMEPAGE="https://gitweb.gentoo.org/proj/elogv.git/"
34 +SRC_URI="https://github.com/gentoo/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
35 +
36 +LICENSE="GPL-2"
37 +SLOT="0"
38 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
39 +PLOCALES=( "de" "es" "it" "pl" )
40 +IUSE="${PLOCALES[*]/#/l10n_}"
41 +
42 +RDEPEND="sys-apps/portage[${PYTHON_USEDEP}]"
43 +DEPEND="${RDEPEND}"
44 +
45 +DOCS=( README )
46 +
47 +src_install() {
48 + distutils-r1_src_install
49 +
50 + elog 'Deleting unwanted language files...'
51 + for i in ${PLOCALES[@]}; do
52 + if use "l10n_${i}"; then
53 + # Keep and fix man page filename (bug #869905)
54 + mv "${ED}"/usr/share/man/${i}/man1/${PN}.1{.${i},} || die
55 + else
56 + rm -r "${ED}"/usr/share/{locale,man}/"${i}" || die
57 + elog "- Language \"${i}\" deleted"
58 + fi
59 + done
60 +}
61 +
62 +pkg_postinst() {
63 + elog "In order to use this software, you need to activate"
64 + elog "Portage's elog features. Required is"
65 + elog " PORTAGE_ELOG_SYSTEM=\"save\" "
66 + elog "and at least one out of "
67 + elog " PORTAGE_ELOG_CLASSES=\"warn error info log qa\""
68 + elog "More information on the elog system can be found"
69 + elog "in ${EPREFIX}/usr/share/portage/config/make.conf.example"
70 + elog
71 + elog "To operate properly this software needs the directory"
72 + elog "${PORT_LOGDIR:-${EPREFIX}/var/log/portage}/elog created, belonging to group portage."
73 + elog "To start the software as a user, add yourself to the portage"
74 + elog "group."
75 + elog
76 +}