From cb05df82d86cf7ae935b46f3ed3c40bfb4549bfd Mon Sep 17 00:00:00 2001 From: SigHunter Date: Wed, 28 Aug 2024 22:14:20 +0200 Subject: [PATCH] media-sound/fooyin: add 0.6.1 Signed-off-by: SigHunter --- media-sound/fooyin/Manifest | 1 + media-sound/fooyin/fooyin-0.6.1.ebuild | 75 ++++++++++++++++++++++++++ 2 files changed, 76 insertions(+) create mode 100644 media-sound/fooyin/fooyin-0.6.1.ebuild diff --git a/media-sound/fooyin/Manifest b/media-sound/fooyin/Manifest index c32cff8..b21614b 100644 --- a/media-sound/fooyin/Manifest +++ b/media-sound/fooyin/Manifest @@ -1 +1,2 @@ DIST fooyin-0.5.3.tar.gz 4345101 BLAKE2B 351fc8337d424a2a8abeea33979645862208e150bd06b638a9e5c5f02c52299707935208c1f4b9f1c4876e702924f1701251e2158e1f22d50f65363ff137c137 SHA512 61356c0db34eee3a939a86fc867690f3c2389bb6a235b2e06975ce1bc83221bb8f8e9b684269510518147d5b4d203645db1bba96d574fcf01a16ec3b5222f47c +DIST fooyin-0.6.1.tar.gz 4570533 BLAKE2B a9219d4e518cea13376e80207b544e419e6acf45e1695cec5b56ade9bf2dc9611d533df6fb700898c1cc7197b0abdbf087fee36659bbeb2220038a5021c3eb88 SHA512 162414e4e67dbfa5ba05e30cff0b051e9063425035c85c03b8b0cee64c61701145d091e7a1e7090f839d51318694639b25334ce463f8192df726e98e0c946296 diff --git a/media-sound/fooyin/fooyin-0.6.1.ebuild b/media-sound/fooyin/fooyin-0.6.1.ebuild new file mode 100644 index 0000000..8322cd2 --- /dev/null +++ b/media-sound/fooyin/fooyin-0.6.1.ebuild @@ -0,0 +1,75 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake xdg + +DESCRIPTION="A customizable music player, Qt clone of foobar2000" +HOMEPAGE="https://www.fooyin.org/" + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/fooyin/fooyin.git" +else + SRC_URI=" + https://github.com/fooyin/fooyin/archive/refs/tags/v${PV}.tar.gz + -> ${P}.tar.gz + " + KEYWORDS="~amd64" +fi + +LICENSE="GPL-3" +SLOT="0" + +IUSE="alsa pipewire sdl test" +RESTRICT="!test? ( test )" +REQUIRED_USE="|| ( alsa pipewire sdl )" + +RDEPEND=" + dev-libs/icu:= + dev-libs/kdsingleapplication + dev-qt/qtbase:6[concurrent,dbus,gui,network,sql,widgets] + media-libs/taglib + media-video/ffmpeg:= + alsa? ( media-libs/alsa-lib ) + pipewire? ( media-video/pipewire:= ) + sdl? ( media-libs/libsdl2 ) +" +DEPEND="${RDEPEND}" +BDEPEND=" + test? ( dev-cpp/gtest ) +" + +src_prepare() { + sed -i CMakeLists.txt \ + -e "s|/doc/${PN}|/doc/${PF}|g" \ + -e '/option(BUILD_TESTING/aenable_testing()' \ + || die + + cmake_src_prepare +} + +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) + $(cmake_use_find_package sdl SDL2) + ) + + cmake_src_configure +} + +src_test() { + local CMAKE_SKIP_TESTS=( + # TODO: figure out why these tests fail to find their test data + TagReaderTest.* + TagWriterTest.* + ) + + cmake_src_test +}