You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.6 KiB
55 lines
1.6 KiB
4 years ago
|
# Copyright 1999-2020 Gentoo Authors
|
||
6 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
5 years ago
|
EAPI=7
|
||
6 years ago
|
|
||
4 years ago
|
PYTHON_COMPAT=( python3_{6,7,8,9} pypy3 )
|
||
6 years ago
|
PYTHON_REQ_USE="ncurses"
|
||
4 years ago
|
DISTUTILS_USE_SETUPTOOLS=no
|
||
|
|
||
6 years ago
|
inherit distutils-r1
|
||
|
|
||
|
DESCRIPTION="Curses based utility to parse the contents of elogs created by Portage"
|
||
4 years ago
|
HOMEPAGE="https://gitweb.gentoo.org/proj/elogv.git/"
|
||
6 years ago
|
SRC_URI="https://github.com/gentoo/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||
|
|
||
|
LICENSE="GPL-2"
|
||
|
SLOT="0"
|
||
4 years ago
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||
6 years ago
|
|
||
5 years ago
|
RDEPEND="sys-apps/portage[${PYTHON_USEDEP}]"
|
||
|
DEPEND="${RDEPEND}"
|
||
|
|
||
6 years ago
|
DOCS=( README )
|
||
|
|
||
|
src_install() {
|
||
|
distutils-r1_src_install
|
||
|
|
||
|
# unset LINGUAS => install all languages
|
||
|
# empty LINGUAS => install none
|
||
|
local i
|
||
|
if [[ -n "${LINGUAS+x}" ]] ; then
|
||
|
for i in $(ls "${ED}"/usr/share/locale/) ; do
|
||
|
if ! has ${i} ${LINGUAS} ; then
|
||
|
rm -rf "${ED}"/usr/share/{locale,man}/${i}
|
||
|
fi
|
||
|
done
|
||
|
fi
|
||
|
}
|
||
|
|
||
|
pkg_postinst() {
|
||
|
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 ${EPREFIX}/usr/share/portage/config/make.conf.example"
|
||
|
elog
|
||
|
elog "To operate properly this software needs the directory"
|
||
|
elog "${PORT_LOGDIR:-${EPREFIX}/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
|
||
|
}
|