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 }