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)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id AD51615817D for ; Thu, 6 Jun 2024 00:45:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 80689E2B4D; Thu, 6 Jun 2024 00:45:46 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 68D68E2B46 for ; Thu, 6 Jun 2024 00:45:46 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 96FD23406D1 for ; Thu, 6 Jun 2024 00:45:45 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 559DE1C90 for ; Thu, 6 Jun 2024 00:45:42 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1717634691.0cad7fcb23fc9550ea839aa4b63f6d76a4df5a02.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-portage/elogviewer/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-portage/elogviewer/elogviewer-3.2-r1.ebuild X-VCS-Directories: app-portage/elogviewer/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 0cad7fcb23fc9550ea839aa4b63f6d76a4df5a02 X-VCS-Branch: master Date: Thu, 6 Jun 2024 00:45:42 +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: 4801fd6c-917a-453f-ace6-fa8d0ccb1a7f X-Archives-Hash: a7ecf392da94a815dff59c6bb11017c7 commit: 0cad7fcb23fc9550ea839aa4b63f6d76a4df5a02 Author: Eli Schwartz gmail com> AuthorDate: Wed Jun 5 23:00:58 2024 +0000 Commit: Sam James gentoo org> CommitDate: Thu Jun 6 00:44:51 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0cad7fcb app-portage/elogviewer: update EAPI 7 -> 8 Signed-off-by: Eli Schwartz gmail.com> Signed-off-by: Sam James gentoo.org> app-portage/elogviewer/elogviewer-3.2-r1.ebuild | 75 +++++++++++++++++++++++++ 1 file changed, 75 insertions(+) diff --git a/app-portage/elogviewer/elogviewer-3.2-r1.ebuild b/app-portage/elogviewer/elogviewer-3.2-r1.ebuild new file mode 100644 index 000000000000..327373e9f778 --- /dev/null +++ b/app-portage/elogviewer/elogviewer-3.2-r1.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..12} ) + +DISABLE_AUTOFORMATTING=true + +inherit desktop python-single-r1 readme.gentoo-r1 virtualx + +DESCRIPTION="Elog viewer for Gentoo" +HOMEPAGE="https://github.com/Synss/elogviewer" +SRC_URI="https://github.com/Synss/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~ppc ~riscv ~x86" +IUSE="test" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" +RESTRICT="!test? ( test )" + +RDEPEND="${PYTHON_DEPS} + $(python_gen_cond_dep ' + dev-python/PyQt5[gui,widgets,${PYTHON_USEDEP}] + >=sys-apps/portage-2.1[${PYTHON_USEDEP}] + ') +" +BDEPEND=" + test? ( + ${RDEPEND} + $(python_gen_cond_dep ' + dev-python/pyfakefs[${PYTHON_USEDEP}] + dev-python/pytest-qt[${PYTHON_USEDEP}] + ') + ) +" + +DOC_CONTENTS="In order to use this software, you need to activate +Portage's elog features. Required is + PORTAGE_ELOG_SYSTEM=\"save\" +and at least one of + PORTAGE_ELOG_CLASSES=\"warn error info log qa\" +More information on the elog system can be found in +/usr/share/portage/config/make.conf.example + +To operate properly this software needs the directory +${PORT_LOGDIR:-/var/log/portage}/elog created, belonging to group portage. +To start the software as a user, add yourself to the portage group." + +src_compile() { + rm -f Makefile +} + +src_test() { + export PYTEST_QT_API=pyqt5 + virtx epytest +} + +src_install() { + python_newscript elogviewer.py elogviewer + + make_desktop_entry ${PN} ${PN} ${PN} System + + doman elogviewer.1 + readme.gentoo_create_doc +} + +pkg_postinst() { + readme.gentoo_print_elog + + ewarn "The elogviewer's configuration file is now saved in:" + ewarn "~/.config/elogviewer/ (was ~/.config/Mathias\ Laurin/)." + ewarn "Please migrate any user specific settings to the new config file." +}