From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B9184158092 for ; Tue, 31 May 2022 04:07:15 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 861AAE096F; Tue, 31 May 2022 04:07:14 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9974DE096D for ; Tue, 31 May 2022 04:07:12 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id AE31F3419A8 for ; Tue, 31 May 2022 04:07:11 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 77F774E3 for ; Tue, 31 May 2022 04:07:09 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1653970020.5faee21836cdcd724ca89df47ae28620d5a56ad9.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/soundconverter/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-sound/soundconverter/soundconverter-4.0.3.ebuild X-VCS-Directories: media-sound/soundconverter/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 5faee21836cdcd724ca89df47ae28620d5a56ad9 X-VCS-Branch: master Date: Tue, 31 May 2022 04:07:09 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: a8a3071d-56e8-461a-bdae-b00a1e2e1ef8 X-Archives-Hash: fd328e7cf9dbf42fbad4013a3fd9eaaf commit: 5faee21836cdcd724ca89df47ae28620d5a56ad9 Author: Sam James gentoo org> AuthorDate: Tue May 31 04:03:46 2022 +0000 Commit: Sam James gentoo org> CommitDate: Tue May 31 04:07:00 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5faee218 media-sound/soundconverter: add partial test infrastructure; minor QA touchups Closes: https://bugs.gentoo.org/758197 Bug: https://bugs.gentoo.org/846092 Signed-off-by: Sam James gentoo.org> .../soundconverter/soundconverter-4.0.3.ebuild | 47 +++++++++++++++++++--- 1 file changed, 41 insertions(+), 6 deletions(-) diff --git a/media-sound/soundconverter/soundconverter-4.0.3.ebuild b/media-sound/soundconverter/soundconverter-4.0.3.ebuild index 9840037dc60f..334ca9cba906 100644 --- a/media-sound/soundconverter/soundconverter-4.0.3.ebuild +++ b/media-sound/soundconverter/soundconverter-4.0.3.ebuild @@ -7,7 +7,7 @@ DISTUTILS_SINGLE_IMPL=1 DISTUTILS_USE_PEP517=setuptools PYTHON_COMPAT=( python3_{8..10} ) PYTHON_REQ_USE="xml(+)" -inherit distutils-r1 xdg +inherit gnome2-utils distutils-r1 virtualx xdg MY_PV="${PV/_/-}" DESCRIPTION="A simple audiofile converter application for the GNOME environment" @@ -16,8 +16,7 @@ SRC_URI="https://github.com/kassoulet/${PN}/archive/${MY_PV}.tar.gz -> ${P}.tar. LICENSE="GPL-3" SLOT="0" -KEYWORDS="amd64 x86" - +KEYWORDS="~amd64 ~x86" IUSE="aac flac mp3 ogg opus vorbis" # gst-plugins-meta for any decoders, USE flags for specific encoders used by code @@ -47,18 +46,54 @@ BDEPEND=" $(python_gen_cond_dep ' dev-python/python-distutils-extra[${PYTHON_USEDEP}] ') + test? ( + media-plugins/gst-plugins-flac:1.0 + media-libs/gst-plugins-bad:1.0 + media-libs/gst-plugins-ugly:1.0 + media-plugins/gst-plugins-lame:1.0 + media-plugins/gst-plugins-faac:1.0 + media-plugins/gst-plugins-opus:1.0 + ) " +# Before PEP517: tests seem to hang and also fail to find fdkaacenc from gst? +# After: need to trick it into finding the data (inc. glade files) +RESTRICT="test" + python_prepare_all() { + gnome2_environment_reset distutils-r1_python_prepare_all - rm -v "${S}/CHANGELOG.old" + + rm -v "${S}/CHANGELOG.old" || die + # workaround incorrect behavior when LINGUAS is set to an empty string # https://bugs.launchpad.net/python-distutils-extra/+bug/1133594 ! [[ -v LINGUAS && -z ${LINGUAS} ]] || rm po/*.po || die } +src_test() { + virtx distutils-r1_src_test +} + +python_test() { + export GSETTINGS_SCHEMA_DIR="${S}/data" + "${BROOT}${GLIB_COMPILE_SCHEMAS}" --allow-any-name "${S}"/data || die + + "${EPYTHON}" tests/test.py || die +} + python_install_all() { - rm -v "${D}/usr/share/glib-2.0/schemas/gschemas.compiled" - mv -v "${D}/usr/share/doc/${PN}" "${D}/usr/share/doc/${P}" + rm -v "${ED}"/usr/share/glib-2.0/schemas/gschemas.compiled || die + mv -v "${ED}"/usr/share/doc/${PN} "${ED}"/usr/share/doc/${PF} || die distutils-r1_python_install_all } + +pkg_postrm() { + xdg_pkg_postrm + gnome2_schemas_update +} + +pkg_postinst() { + xdg_pkg_postinst + gnome2_schemas_update +}