commit:     087e06f3447db386585efbffefdb80cb270bf328
Author:     Mart Raudsepp <leio <AT> gentoo <DOT> org>
AuthorDate: Sun Jan 16 17:12:12 2022 +0000
Commit:     Mart Raudsepp <leio <AT> gentoo <DOT> org>
CommitDate: Sun Jan 16 17:13:53 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=087e06f3

media-sound/sound-juicer: use python-any-r1, restrict tests

There seems to only be a single appdata validation test, which will
fail with network-sandbox if the appstream-util is available.
Use python-any-r1.eclass, as there's a python meson postinstall script.
Also fix deps - docbook-xml-dtd is always a dep, not just for tests.

Package-Manager: Portage-3.0.20, Repoman-3.0.2
Signed-off-by: Mart Raudsepp <leio <AT> gentoo.org>

 media-sound/sound-juicer/sound-juicer-3.38.0.ebuild | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/media-sound/sound-juicer/sound-juicer-3.38.0.ebuild 
b/media-sound/sound-juicer/sound-juicer-3.38.0.ebuild
index de08dd174e7d..3516bda7b7e5 100644
--- a/media-sound/sound-juicer/sound-juicer-3.38.0.ebuild
+++ b/media-sound/sound-juicer/sound-juicer-3.38.0.ebuild
@@ -1,8 +1,9 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
-inherit gnome2 meson
+PYTHON_COMPAT=( python3_{8..10} )
+inherit python-any-r1 gnome2 meson
 
 DESCRIPTION="CD ripper for GNOME"
 HOMEPAGE="https://wiki.gnome.org/Apps/SoundJuicer";
@@ -10,8 +11,8 @@ HOMEPAGE="https://wiki.gnome.org/Apps/SoundJuicer";
 LICENSE="GPL-2+"
 SLOT="0"
 KEYWORDS="amd64 ~arm ~arm64 ~ia64 ppc ppc64 ~riscv ~sparc x86"
-IUSE="flac test vorbis"
-RESTRICT="!test? ( test )"
+IUSE="flac vorbis"
+RESTRICT="test" # only does appdata validation, which fails with 
network-sandbox
 
 DEPEND="
        >=dev-libs/glib-2.49.5:2[dbus]
@@ -38,11 +39,12 @@ RDEPEND="${DEPEND}
        media-plugins/gst-plugins-meta:1.0
 "
 BDEPEND="
+       ${PYTHON_DEPS}
+       app-text/docbook-xml-dtd:4.3
        dev-libs/appstream-glib
        dev-util/itstool
        >=sys-devel/gettext-0.19.6
        virtual/pkgconfig
-       test? ( ~app-text/docbook-xml-dtd-4.3 )
 "
 
 src_prepare() {

Reply via email to