diff options
author | Eli Schwartz <eschwartz93@gmail.com> | 2024-06-05 19:00:58 -0400 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-06-06 01:44:51 +0100 |
commit | 0cad7fcb23fc9550ea839aa4b63f6d76a4df5a02 (patch) | |
tree | 9f7291114a6397ffbbfbc64f4368cad317b0c47c /app-portage/elogviewer | |
parent | app-portage/elogviewer: enable py3.12 (diff) | |
download | gentoo-0cad7fcb23fc9550ea839aa4b63f6d76a4df5a02.tar.gz gentoo-0cad7fcb23fc9550ea839aa4b63f6d76a4df5a02.tar.bz2 gentoo-0cad7fcb23fc9550ea839aa4b63f6d76a4df5a02.zip |
app-portage/elogviewer: update EAPI 7 -> 8
Signed-off-by: Eli Schwartz <eschwartz93@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-portage/elogviewer')
-rw-r--r-- | app-portage/elogviewer/elogviewer-3.2-r1.ebuild | 75 |
1 files changed, 75 insertions, 0 deletions
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." +} |