commit:     c4e152e6ac599af4a1803fae725116022d3377c6
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Fri Dec 12 14:24:28 2025 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Fri Dec 12 14:26:51 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c4e152e6

app-portage/elogviewer: add 3.3

Bug: https://bugs.gentoo.org/965510
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 app-portage/elogviewer/Manifest              |  1 +
 app-portage/elogviewer/elogviewer-3.3.ebuild | 71 ++++++++++++++++++++++++++++
 2 files changed, 72 insertions(+)

diff --git a/app-portage/elogviewer/Manifest b/app-portage/elogviewer/Manifest
index df2c4a30651d..88d8f1a6f606 100644
--- a/app-portage/elogviewer/Manifest
+++ b/app-portage/elogviewer/Manifest
@@ -1,2 +1,3 @@
 DIST elogviewer-3.2.tar.gz 29046 BLAKE2B 
a880fde71df3c688572c33abbc163f3ac10a53c672b01b3139d02effa5e59a05f7ae1df35a4505b1a48d7a0cb6166a21b18d1d969e1eaebab03e3620298d4f38
 SHA512 
2503482f14e21c7b6f69ac0d6305c7c126fa3ac944b68acef7edec0c464d2e45bc2dc348f8d38033dbc276afc132d75863c737e222f66ad5ebe870b30fec2f39
+DIST elogviewer-3.3.tar.gz 30246 BLAKE2B 
2311849e841425c4790a6e8d31179805af6b9565c591074263ba37070f3f3d2445f8d03e6a07c72a39a87de5756eb60baa18bc8b3ccdd69c5568be1c179dc837
 SHA512 
96ce50bf3d5b2f130974996d600eeb1778358aff16ce102ef6b9cef7129846e6f707d0c16e53f455ebd68b41ed63f346cb64427456c60901dacc8184d5cd6ac0
 DIST elogviewer-3.3_pre20251208-dd5ac25c.tar.gz 30150 BLAKE2B 
70c0301ad8166bd8254e64632dad8ee460b51f3da99e1bcee5e60803db1dd2c9b4370864d5d5d907be28ae2daf5aaa1ffa38101e3e4f2c1cdd74058470acde17
 SHA512 
ccbbae2093b81fd1127cd6687f1d367a2ee54afdf4559041c5943884daae19ce9d16230b4f9b54a1baaf3d8234556a10933c89adadb85f7db301ec01df41be3c

diff --git a/app-portage/elogviewer/elogviewer-3.3.ebuild 
b/app-portage/elogviewer/elogviewer-3.3.ebuild
new file mode 100644
index 000000000000..885957293edd
--- /dev/null
+++ b/app-portage/elogviewer/elogviewer-3.3.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISABLE_AUTOFORMATTING=true
+PYTHON_COMPAT=( python3_{11..13} )
+inherit desktop python-single-r1 readme.gentoo-r1
+
+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/pyqt6[gui,widgets,${PYTHON_USEDEP}]
+               sys-apps/portage[${PYTHON_USEDEP}]
+       ')
+"
+BDEPEND="
+       test? (
+               ${RDEPEND}
+               $(python_gen_cond_dep '
+                       dev-python/pyfakefs[${PYTHON_USEDEP}]
+                       dev-python/pytest[${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 Makefile || die
+}
+
+src_test() {
+       export PYTEST_QT_API=pyqt6
+       local -x QT_QPA_PLATFORM=offscreen
+       epytest
+}
+
+src_install() {
+       python_newscript elogviewer.py elogviewer
+
+       make_desktop_entry --eapi9 ${PN} -c System
+
+       doman elogviewer.1
+       readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+       readme.gentoo_print_elog
+}

Reply via email to