forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
elogviewer-0.6.2-r3.ebuild
57 lines (47 loc) · 1.59 KB
/
elogviewer-0.6.2-r3.ebuild
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
PYTHON_COMPAT=( python2_7 )
inherit eutils python-r1
DESCRIPTION="GTK+ based utility to parse the contents of elogs created by Portage"
HOMEPAGE="https://sourceforge.net/projects/elogviewer/"
SRC_URI="mirror://sourceforge/elogviewer/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc sparc x86 ~x86-fbsd"
IUSE=""
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
DEPEND=""
RDEPEND="${PYTHON_DEPS}
>=sys-apps/portage-2.1
>=dev-python/pygtk-2.0"
S="${WORKDIR}"
src_prepare() {
# Apply patch from Bug 349071 to restore missing newline
epatch "${FILESDIR}/${P}-missing_newline.patch"
# Fix bug #453016
sed -e 's|is not ""|!= ""|' -i elogviewer || die
}
src_install() {
python_foreach_impl python_doscript "${WORKDIR}"/elogviewer
dodoc "${WORKDIR}"/CHANGELOG
doman "${WORKDIR}"/elogviewer.1
make_desktop_entry elogviewer Elogviewer "" "System" ||
die "Couldn't make desktop entry"
}
pkg_postinst() {
elog
elog "In order to use this software, you need to activate"
elog "Portage's elog features. Required is"
elog " PORTAGE_ELOG_SYSTEM=\"save\" "
elog "and at least one out of "
elog " PORTAGE_ELOG_CLASSES=\"warn error info log qa\""
elog "More information on the elog system can be found"
elog "in /usr/share/portage/config/make.conf.example"
elog
elog "To operate properly this software needs the directory"
elog "${PORT_LOGDIR:-/var/log/portage}/elog created, belonging to group portage."
elog "To start the software as a user, add yourself to the portage"
elog "group."
elog
}