diff options
author | Sam James <sam@gentoo.org> | 2022-10-12 21:39:13 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-10-12 21:44:22 +0100 |
commit | 986d77160ebe701880bac53ac0a075148573b62c (patch) | |
tree | b9b11118dc5e24362f3aab7ff9bc07902e7fe148 /net-nntp | |
parent | net-nntp/sabnzbd: drop 3.3.1, 3.4.1-r1, 3.4.2 (diff) | |
download | gentoo-986d77160ebe701880bac53ac0a075148573b62c.tar.gz gentoo-986d77160ebe701880bac53ac0a075148573b62c.tar.bz2 gentoo-986d77160ebe701880bac53ac0a075148573b62c.zip |
net-nntp/sabnzbd: drop Python 3.11, misc QA cleanups
dev-python/tavern lacks Python 3.11
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-nntp')
-rw-r--r-- | net-nntp/sabnzbd/sabnzbd-3.6.1.ebuild | 36 |
1 files changed, 13 insertions, 23 deletions
diff --git a/net-nntp/sabnzbd/sabnzbd-3.6.1.ebuild b/net-nntp/sabnzbd/sabnzbd-3.6.1.ebuild index 22552e21fdd2..655960372313 100644 --- a/net-nntp/sabnzbd/sabnzbd-3.6.1.ebuild +++ b/net-nntp/sabnzbd/sabnzbd-3.6.1.ebuild @@ -3,7 +3,7 @@ EAPI="8" -PYTHON_COMPAT=( python3_{8..11} ) +PYTHON_COMPAT=( python3_{8..10} ) PYTHON_REQ_USE="sqlite" inherit optfeature python-single-r1 systemd @@ -16,6 +16,7 @@ MY_P="${PN/sab/SAB}-${MY_PV}" DESCRIPTION="Binary newsgrabber with web-interface" HOMEPAGE="https://sabnzbd.org/" SRC_URI="https://github.com/sabnzbd/sabnzbd/releases/download/${MY_PV}/${MY_P}-src.tar.gz" +S="${WORKDIR}/${MY_P}" # Sabnzbd is GPL-2 but bundles software with the following licenses. LICENSE="GPL-2 BSD LGPL-2 MIT BSD-1" @@ -23,6 +24,7 @@ SLOT="0" KEYWORDS="~amd64" IUSE="test" RESTRICT="!test? ( test )" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" DEPEND=" acct-user/sabnzbd @@ -42,13 +44,11 @@ DEPEND=" <dev-python/sabyenc-6[${PYTHON_USEDEP}] ') " - RDEPEND=" ${DEPEND} >=app-arch/par2cmdline-0.4 net-misc/wget " - BDEPEND=" test? ( $(python_gen_cond_dep ' @@ -70,14 +70,6 @@ BDEPEND=" ) " -REQUIRED_USE="${PYTHON_REQUIRED_USE}" - -S="${WORKDIR}/${MY_P}" - -pkg_setup() { - python-single-r1_pkg_setup -} - src_test() { local EPYTEST_IGNORE=( # network sandbox @@ -109,31 +101,29 @@ src_test() { 'tests/test_functional_misc.py::TestQueueRepair::test_queue_repair' 'tests/test_functional_misc.py::TestDaemonizing::test_daemonizing' ) + epytest -s } - - src_install() { local d - for d in email icons interfaces locale po sabnzbd scripts tools; do - insinto "/usr/share/${PN}/${d}" + insinto /usr/share/${PN}/${d} doins -r ${d}/* done - exeinto "/usr/share/${PN}" + exeinto /usr/share/${PN} doexe SABnzbd.py - python_fix_shebang "${ED}/usr/share/${PN}" - python_optimize "${ED}/usr/share/${PN}" + python_fix_shebang "${ED}"/usr/share/${PN} + python_optimize "${ED}"/usr/share/${PN} - newinitd "${FILESDIR}/${PN}-r1.initd" "${PN}" - newconfd "${FILESDIR}/${PN}.confd" "${PN}" + newinitd "${FILESDIR}"/${PN}-r1.initd ${PN} + newconfd "${FILESDIR}"/${PN}.confd ${PN} - diropts -o "${PN}" -g "${PN}" - dodir "/etc/${PN}" - keepdir "/var/log/${PN}" + diropts -o ${PN} -g ${PN} + dodir /etc/${PN} + keepdir /var/log/${PN} insinto "/etc/${PN}" insopts -m 0600 -o "${PN}" -g "${PN}" |