diff options
author | Eli Schwartz <eschwartz93@gmail.com> | 2024-06-05 18:56:48 -0400 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-06-06 01:44:49 +0100 |
commit | 8f7676b4b2d4b8821cbcb743039eafaf190d5776 (patch) | |
tree | d2d5ac4853a264c5efaab59770abc0d8f5370503 /app-portage | |
parent | dev-python/pycxx: update HOMEPAGE to use https (diff) | |
download | gentoo-8f7676b4b2d4b8821cbcb743039eafaf190d5776.tar.gz gentoo-8f7676b4b2d4b8821cbcb743039eafaf190d5776.tar.bz2 gentoo-8f7676b4b2d4b8821cbcb743039eafaf190d5776.zip |
app-portage/elogviewer: wire up testsuite
Signed-off-by: Eli Schwartz <eschwartz93@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-portage')
-rw-r--r-- | app-portage/elogviewer/elogviewer-3.2.ebuild | 24 |
1 files changed, 17 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 |