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: Sat, 30 Nov 2019 18:59:59
Message-Id: 1575140197.aa8d33ba7b5b83a6dd5cdb2ea0bec36b0c2c108a.sping@gentoo
1 commit: aa8d33ba7b5b83a6dd5cdb2ea0bec36b0c2c108a
2 Author: Sebastian Pipping <sping <AT> gentoo <DOT> org>
3 AuthorDate: Sat Nov 30 18:56:37 2019 +0000
4 Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org>
5 CommitDate: Sat Nov 30 18:56:37 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aa8d33ba
7
8 app-portage/elogv: py38 + missing dependency
9
10 Closes: https://bugs.gentoo.org/701584
11 Signed-off-by: Sebastian Pipping <sping <AT> gentoo.org>
12 Package-Manager: Portage-2.3.80, Repoman-2.3.19
13
14 app-portage/elogv/elogv-0.7.8-r2.ebuild | 55 +++++++++++++++++++++++++++++++++
15 1 file changed, 55 insertions(+)
16
17 diff --git a/app-portage/elogv/elogv-0.7.8-r2.ebuild b/app-portage/elogv/elogv-0.7.8-r2.ebuild
18 new file mode 100644
19 index 00000000000..04a1a84d43f
20 --- /dev/null
21 +++ b/app-portage/elogv/elogv-0.7.8-r2.ebuild
22 @@ -0,0 +1,55 @@
23 +# Copyright 1999-2019 Gentoo Authors
24 +# Distributed under the terms of the GNU General Public License v2
25 +
26 +EAPI=7
27 +
28 +PYTHON_COMPAT=( python3_{5,6,7,8} )
29 +PYTHON_REQ_USE="ncurses"
30 +inherit distutils-r1
31 +
32 +DESCRIPTION="Curses based utility to parse the contents of elogs created by Portage"
33 +HOMEPAGE="https://github.com/gentoo/elogv"
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 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
39 +
40 +RDEPEND="sys-apps/portage[${PYTHON_USEDEP}]"
41 +DEPEND="${RDEPEND}"
42 +
43 +DOCS=( README )
44 +
45 +src_install() {
46 + distutils-r1_src_install
47 +
48 + # unset LINGUAS => install all languages
49 + # empty LINGUAS => install none
50 + local i
51 + if [[ -n "${LINGUAS+x}" ]] ; then
52 + for i in $(ls "${ED}"/usr/share/locale/) ; do
53 + if ! has ${i} ${LINGUAS} ; then
54 + rm -rf "${ED}"/usr/share/{locale,man}/${i}
55 + fi
56 + done
57 + fi
58 +}
59 +
60 +pkg_postinst() {
61 + elog "Optional dependencies:"
62 + elog " dev-python/pyliblzma (for xz compressed elog files)"
63 + elog
64 + elog "In order to use this software, you need to activate"
65 + elog "Portage's elog features. Required is"
66 + elog " PORTAGE_ELOG_SYSTEM=\"save\" "
67 + elog "and at least one out of "
68 + elog " PORTAGE_ELOG_CLASSES=\"warn error info log qa\""
69 + elog "More information on the elog system can be found"
70 + elog "in ${EPREFIX}/usr/share/portage/config/make.conf.example"
71 + elog
72 + elog "To operate properly this software needs the directory"
73 + elog "${PORT_LOGDIR:-${EPREFIX}/var/log/portage}/elog created, belonging to group portage."
74 + elog "To start the software as a user, add yourself to the portage"
75 + elog "group."
76 + elog
77 +}