diff options
author | Sebastian Pipping <sping@gentoo.org> | 2022-09-17 15:34:20 +0200 |
---|---|---|
committer | Sebastian Pipping <sping@gentoo.org> | 2022-09-17 15:34:20 +0200 |
commit | 1cff333997f3e3082bd1610ad625e10bd0300b20 (patch) | |
tree | 6adf7aff69ca81aeab0feeb627387e94bb9e7ab3 /app-portage/elogv | |
parent | dev-java/jdbc-postgresql: add 42.5.0 (diff) | |
download | gentoo-1cff333997f3e3082bd1610ad625e10bd0300b20.tar.gz gentoo-1cff333997f3e3082bd1610ad625e10bd0300b20.tar.bz2 gentoo-1cff333997f3e3082bd1610ad625e10bd0300b20.zip |
app-portage/elogv: fix installation of l10n man pages + EAPI 8
Closes: https://bugs.gentoo.org/869905
Signed-off-by: Sebastian Pipping <sping@gentoo.org>
Diffstat (limited to 'app-portage/elogv')
-rw-r--r-- | app-portage/elogv/elogv-0.7.9-r2.ebuild | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/app-portage/elogv/elogv-0.7.9-r2.ebuild b/app-portage/elogv/elogv-0.7.9-r2.ebuild new file mode 100644 index 000000000000..38adcab927ba --- /dev/null +++ b/app-portage/elogv/elogv-0.7.9-r2.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{7,8,9,10} pypy3 ) +PYTHON_REQ_USE="ncurses" +DISTUTILS_USE_SETUPTOOLS=no + +inherit distutils-r1 + +DESCRIPTION="Curses based utility to parse the contents of elogs created by Portage" +HOMEPAGE="https://gitweb.gentoo.org/proj/elogv.git/" +SRC_URI="https://github.com/gentoo/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" +PLOCALES=( "de" "es" "it" "pl" ) +IUSE="${PLOCALES[*]/#/l10n_}" + +RDEPEND="sys-apps/portage[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND}" + +DOCS=( README ) + +src_install() { + distutils-r1_src_install + + elog 'Deleting unwanted language files...' + for i in ${PLOCALES[@]}; do + if use "l10n_${i}"; then + # Keep and fix man page filename (bug #869905) + mv "${ED}"/usr/share/man/${i}/man1/${PN}.1{.${i},} || die + else + rm -r "${ED}"/usr/share/{locale,man}/"${i}" || die + elog "- Language \"${i}\" deleted" + fi + done +} + +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 +} |