From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 6A4A3158094 for ; Sat, 17 Sep 2022 13:36:20 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6E799E0909; Sat, 17 Sep 2022 13:36:18 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4542FE0909 for ; Sat, 17 Sep 2022 13:36:18 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2FFFC33E830 for ; Sat, 17 Sep 2022 13:36:17 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 883D25D5 for ; Sat, 17 Sep 2022 13:36:15 +0000 (UTC) From: "Sebastian Pipping" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sebastian Pipping" Message-ID: <1663421660.1cff333997f3e3082bd1610ad625e10bd0300b20.sping@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-portage/elogv/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-portage/elogv/elogv-0.7.9-r2.ebuild X-VCS-Directories: app-portage/elogv/ X-VCS-Committer: sping X-VCS-Committer-Name: Sebastian Pipping X-VCS-Revision: 1cff333997f3e3082bd1610ad625e10bd0300b20 X-VCS-Branch: master Date: Sat, 17 Sep 2022 13:36:15 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 2f61364d-09d8-4e54-8282-146e080d3261 X-Archives-Hash: c6618e06c54fce2ac069d3d74f2c8aad commit: 1cff333997f3e3082bd1610ad625e10bd0300b20 Author: Sebastian Pipping gentoo org> AuthorDate: Sat Sep 17 13:34:20 2022 +0000 Commit: Sebastian Pipping gentoo org> CommitDate: Sat Sep 17 13:34:20 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1cff3339 app-portage/elogv: fix installation of l10n man pages + EAPI 8 Closes: https://bugs.gentoo.org/869905 Signed-off-by: Sebastian Pipping gentoo.org> app-portage/elogv/elogv-0.7.9-r2.ebuild | 56 +++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) 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 +}