diff options
author | Matoro Mahri <matoro_gentoo@matoro.tk> | 2024-01-15 20:29:25 -0500 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-01-16 03:35:54 +0000 |
commit | 62fba13fd0b86e6428ea2eae77138219cb2110b6 (patch) | |
tree | 738b2ef56ea21eee22887ed87e83dac900276e6c /media-sound/audacity/audacity-9999.ebuild | |
parent | xfce-base/thunar: Backport upstream master changes (diff) | |
download | gentoo-62fba13fd0b86e6428ea2eae77138219cb2110b6.tar.gz gentoo-62fba13fd0b86e6428ea2eae77138219cb2110b6.tar.bz2 gentoo-62fba13fd0b86e6428ea2eae77138219cb2110b6.zip |
media-sound/audacity: wire up tests
Patch not submitted upstream yet.
See: https://github.com/audacity/audacity/discussions/5841
Bug: https://bugs.gentoo.org/916258
Signed-off-by: Matoro Mahri <matoro_gentoo@matoro.tk>
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-sound/audacity/audacity-9999.ebuild')
-rw-r--r-- | media-sound/audacity/audacity-9999.ebuild | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/media-sound/audacity/audacity-9999.ebuild b/media-sound/audacity/audacity-9999.ebuild index ad59e3249ef7..d245b905cad3 100644 --- a/media-sound/audacity/audacity-9999.ebuild +++ b/media-sound/audacity/audacity-9999.ebuild @@ -5,7 +5,7 @@ EAPI=8 WX_GTK_VER="3.2-gtk3" -inherit cmake wxwidgets xdg +inherit cmake wxwidgets xdg virtualx DESCRIPTION="Free crossplatform audio editor" HOMEPAGE="https://www.audacityteam.org/" @@ -37,10 +37,8 @@ LICENSE="GPL-2+ " SLOT="0" IUSE="alsa audiocom ffmpeg +flac id3tag +ladspa +lv2 mpg123 ogg - opus +portmixer sbsms twolame vamp +vorbis wavpack" - -# The testsuite consists of two tests, 50% of which fail. -RESTRICT="test" + opus +portmixer sbsms test twolame vamp +vorbis wavpack" +RESTRICT="!test? ( test )" # dev-db/sqlite:3 hard dependency. # dev-libs/glib:2, x11-libs/gtk+:3 hard dependency, from @@ -103,7 +101,8 @@ RDEPEND="dev-db/sqlite:3 vorbis? ( media-libs/libvorbis ) wavpack? ( media-sound/wavpack ) " -DEPEND="${RDEPEND}" +DEPEND="${RDEPEND} + test? ( dev-cpp/catch:0 )" BDEPEND="app-arch/unzip sys-devel/gettext virtual/pkgconfig @@ -120,6 +119,9 @@ PATCHES=( # For has_networking "${FILESDIR}/${PN}-3.3.3-local-threadpool-libraries.patch" + + # Allows running tests without conan + "${FILESDIR}/${PN}-3.3.3-remove-conan-test-dependency.patch" ) src_prepare() { @@ -199,11 +201,17 @@ src_configure() { ## Keep watch of PA_HAS_OSS in lib-src/portmixer/CMakeLists.txt; ## AFAICT it introduces no deps as-is, but that could change. ## Similar goes for PA_HAS_JACK. + + -Daudacity_has_tests=$(usex test ON OFF) ) cmake_src_configure } +src_test() { + virtx cmake_src_test +} + src_install() { cmake_src_install |