From 52c4eec278fc5a75ad7651ad30e04dfa2d782caa Mon Sep 17 00:00:00 2001 From: SigHunter Date: Sat, 14 Sep 2024 11:20:31 +0200 Subject: [PATCH] media-sound/fooyin: Enable all tests provided by upstream Signed-off-by: SigHunter --- media-sound/fooyin/fooyin-9999.ebuild | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/media-sound/fooyin/fooyin-9999.ebuild b/media-sound/fooyin/fooyin-9999.ebuild index acbbe5d..00094d2 100644 --- a/media-sound/fooyin/fooyin-9999.ebuild +++ b/media-sound/fooyin/fooyin-9999.ebuild @@ -8,7 +8,7 @@ inherit cmake xdg DESCRIPTION="A customizable music player, Qt clone of foobar2000" HOMEPAGE="https://www.fooyin.org/" -if [[ ${PV} == 9999 ]]; then +if [[ ${PV} == *9999* ]]; then inherit git-r3 EGIT_REPO_URI="https://github.com/fooyin/fooyin.git" else @@ -24,7 +24,9 @@ SLOT="0" IUSE="alsa pipewire sdl test" RESTRICT="!test? ( test )" -REQUIRED_USE="|| ( alsa pipewire sdl )" +REQUIRED_USE=" + || ( alsa pipewire sdl ) +" RDEPEND=" dev-libs/icu:= @@ -47,6 +49,13 @@ src_prepare() { -e '/option(BUILD_TESTING/aenable_testing()' \ || die + sed \ + -e "s#:/audio#data/audio#g" \ + -i \ + tests/tagwritertest.cpp \ + tests/tagreadertest.cpp \ + || die + cmake_src_prepare } @@ -54,6 +63,7 @@ src_configure() { local mycmakeargs=( -DBUILD_TESTING=$(usex test) -DBUILD_CCACHE=OFF + -DBUILD_LIBVGM=OFF -DINSTALL_HEADERS=ON $(cmake_use_find_package alsa ALSA) $(cmake_use_find_package pipewire PipeWire) @@ -64,11 +74,7 @@ src_configure() { } src_test() { - local CMAKE_SKIP_TESTS=( - # TODO: figure out why these tests fail to find their test data - TagReaderTest.* - TagWriterTest.* - ) + ln -sr "${CMAKE_USE_DIR}/tests/data/audio" "${BUILD_DIR}/tests/data/audio" || die cmake_src_test }