1 |
commit: b08bf08f317dc8202752b259c73f32fbfc781cd9 |
2 |
Author: Sebastian Pipping <sping <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Apr 30 18:05:03 2022 +0000 |
4 |
Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Apr 30 18:07:27 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b08bf08f |
7 |
|
8 |
app-portage/elogv: Improve LINGUAS cleanup code |
9 |
|
10 |
Closes: https://bugs.gentoo.org/839207 |
11 |
Signed-off-by: Sebastian Pipping <sping <AT> gentoo.org> |
12 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
13 |
|
14 |
app-portage/elogv/elogv-0.7.9-r1.ebuild | 56 +++++++++++++++++++++++++++++++++ |
15 |
1 file changed, 56 insertions(+) |
16 |
|
17 |
diff --git a/app-portage/elogv/elogv-0.7.9-r1.ebuild b/app-portage/elogv/elogv-0.7.9-r1.ebuild |
18 |
new file mode 100644 |
19 |
index 000000000000..5f0a98be9ddf |
20 |
--- /dev/null |
21 |
+++ b/app-portage/elogv/elogv-0.7.9-r1.ebuild |
22 |
@@ -0,0 +1,56 @@ |
23 |
+# Copyright 1999-2022 Gentoo Authors |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+ |
26 |
+EAPI=7 |
27 |
+ |
28 |
+PYTHON_COMPAT=( python3_{7,8,9,10} pypy3 ) |
29 |
+PYTHON_REQ_USE="ncurses" |
30 |
+DISTUTILS_USE_SETUPTOOLS=no |
31 |
+ |
32 |
+inherit distutils-r1 |
33 |
+ |
34 |
+DESCRIPTION="Curses based utility to parse the contents of elogs created by Portage" |
35 |
+HOMEPAGE="https://gitweb.gentoo.org/proj/elogv.git/" |
36 |
+SRC_URI="https://github.com/gentoo/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
37 |
+ |
38 |
+LICENSE="GPL-2" |
39 |
+SLOT="0" |
40 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" |
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 |
+ # unset LINGUAS => install all languages |
51 |
+ # empty LINGUAS => install none |
52 |
+ local i |
53 |
+ if [[ -n "${LINGUAS+x}" ]] ; then |
54 |
+ elog 'Deleting unwanted language files...' |
55 |
+ for i in $(cd "${ED}"/usr/share/locale/ && ls -1) ; do |
56 |
+ if ! has "${i}" "${LINGUAS}" ; then |
57 |
+ rm -rf "${ED}"/usr/share/{locale,man}/"${i}" |
58 |
+ elog "- Language \"${i}\" deleted" |
59 |
+ fi |
60 |
+ done |
61 |
+ fi |
62 |
+} |
63 |
+ |
64 |
+pkg_postinst() { |
65 |
+ elog "In order to use this software, you need to activate" |
66 |
+ elog "Portage's elog features. Required is" |
67 |
+ elog " PORTAGE_ELOG_SYSTEM=\"save\" " |
68 |
+ elog "and at least one out of " |
69 |
+ elog " PORTAGE_ELOG_CLASSES=\"warn error info log qa\"" |
70 |
+ elog "More information on the elog system can be found" |
71 |
+ elog "in ${EPREFIX}/usr/share/portage/config/make.conf.example" |
72 |
+ elog |
73 |
+ elog "To operate properly this software needs the directory" |
74 |
+ elog "${PORT_LOGDIR:-${EPREFIX}/var/log/portage}/elog created, belonging to group portage." |
75 |
+ elog "To start the software as a user, add yourself to the portage" |
76 |
+ elog "group." |
77 |
+ elog |
78 |
+} |