commit: 8f7676b4b2d4b8821cbcb743039eafaf190d5776
Author: Eli Schwartz <eschwartz93 <AT> gmail <DOT> com>
AuthorDate: Wed Jun 5 22:56:48 2024 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Jun 6 00:44:49 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8f7676b4
app-portage/elogviewer: wire up testsuite
Signed-off-by: Eli Schwartz <eschwartz93 <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>
app-portage/elogviewer/elogviewer-3.2.ebuild | 24 +++++++++++++++++-------
profiles/arch/ppc/package.use.mask | 4 ++++
2 files changed, 21 insertions(+), 7 deletions(-)
diff --git a/app-portage/elogviewer/elogviewer-3.2.ebuild
b/app-portage/elogviewer/elogviewer-3.2.ebuild
index 1c6330793153..fa50493d3bbc 100644
--- a/app-portage/elogviewer/elogviewer-3.2.ebuild
+++ b/app-portage/elogviewer/elogviewer-3.2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -7,7 +7,7 @@ PYTHON_COMPAT=( python3_{9..11} )
DISABLE_AUTOFORMATTING=true
-inherit desktop python-single-r1 readme.gentoo-r1
+inherit desktop python-single-r1 readme.gentoo-r1 virtualx
DESCRIPTION="Elog viewer for Gentoo"
HOMEPAGE="https://github.com/Synss/elogviewer"
@@ -16,8 +16,9 @@ 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=""
+IUSE="test"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+RESTRICT="!test? ( test )"
RDEPEND="${PYTHON_DEPS}
$(python_gen_cond_dep '
@@ -25,10 +26,14 @@ RDEPEND="${PYTHON_DEPS}
>=sys-apps/portage-2.1[${PYTHON_USEDEP}]
')
"
-DEPEND="${RDEPEND}
- $(python_gen_cond_dep '
- dev-python/setuptools[${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
@@ -47,6 +52,11 @@ src_compile() {
rm -f Makefile
}
+src_test() {
+ export PYTEST_QT_API=pyqt5
+ virtx epytest
+}
+
src_install() {
python_newscript elogviewer.py elogviewer
diff --git a/profiles/arch/ppc/package.use.mask
b/profiles/arch/ppc/package.use.mask
index 5d71faf85142..8c3b12715f9b 100644
--- a/profiles/arch/ppc/package.use.mask
+++ b/profiles/arch/ppc/package.use.mask
@@ -1,6 +1,10 @@
# Copyright 2023-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
+# Eli Schwartz <[email protected]> (2024-06-05)
+# tests require pytest-qt which is not keyworded
+app-portage/elogviewer test
+
# Eray Aslan <[email protected]> (2024-03-08)
# mongodb dependencies are not keyworded
mail-mta/postfix mongodb