commit: cf6f23d55971f0b5800428926a637b7cf76576ef Author: Sebastian Engel <sighunter <AT> gmx <DOT> de> AuthorDate: Tue Oct 15 20:30:12 2024 +0000 Commit: Sebastian Engel <sighunter <AT> gmx <DOT> de> CommitDate: Tue Oct 15 20:46:28 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=cf6f23d5
media-sound/fooyin: add 0.8.1 Signed-off-by: Sebastian Engel <sighunter <AT> gmx.de> media-sound/fooyin/Manifest | 1 + media-sound/fooyin/fooyin-0.8.1.ebuild | 93 ++++++++++++++++++++++++++++++++++ 2 files changed, 94 insertions(+) diff --git a/media-sound/fooyin/Manifest b/media-sound/fooyin/Manifest index 1ab25b4b1..e2390f8bc 100644 --- a/media-sound/fooyin/Manifest +++ b/media-sound/fooyin/Manifest @@ -1 +1,2 @@ DIST fooyin-0.7.3.tar.gz 1602824 BLAKE2B d4b120ef3cf39e8598cb5b5e5c3bf17223e60f2fb7507fcfa8d4946f596e2e55c1e293835d29727ba7e4b3749982ffd4192d21e8583b34df124af5aa635cc2b4 SHA512 09edba0e9874ba204b6167222003d907c091df277b628cac3492f9647c3484afc3a61a3ac1bb3cf6d4f7b210e48541d8f5c865fde66039d098c4e90280e57f07 +DIST fooyin-0.8.1.tar.gz 1743303 BLAKE2B aa393dea6eca447320782fd4b766cda9cf6379150eb80451dfe63707fa51b48605daf082abf6e041da7bf5c384ee702d109f915daf4872f1dec927f0705958e3 SHA512 0204d7fe713d0f4f2602b56d51c7808fd4d14fae8405e77ceabb76cb64201a54a20411395fd648b333782889730e77525f96a20293dd7feb68db2b65973c7d3e diff --git a/media-sound/fooyin/fooyin-0.8.1.ebuild b/media-sound/fooyin/fooyin-0.8.1.ebuild new file mode 100644 index 000000000..c55958905 --- /dev/null +++ b/media-sound/fooyin/fooyin-0.8.1.ebuild @@ -0,0 +1,93 @@ +# 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 +archive openmpt +pipewire +replaygain sdl sndfile 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] + dev-qt/qtsvg:6 + media-libs/taglib + media-video/ffmpeg:= + alsa? ( media-libs/alsa-lib ) + archive? ( app-arch/libarchive:= ) + openmpt? ( media-libs/libopenmpt ) + pipewire? ( media-video/pipewire:= ) + replaygain? ( media-libs/libebur128:= ) + sdl? ( media-libs/libsdl2 ) + sndfile? ( media-libs/libsndfile ) +" +DEPEND="${RDEPEND}" +BDEPEND=" + dev-qt/qttools:6[linguist] + test? ( dev-cpp/gtest ) +" + +src_prepare() { + sed -i CMakeLists.txt \ + -e "s|/doc/${PN}|/doc/${PF}|g" \ + -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 +} + +# libvgm and libgme dependencies can currently not be satisfied, +# so building their input plugins is unconditionally disabled for now. +src_configure() { + local mycmakeargs=( + -DBUILD_ALSA=$(usex alsa) + -DBUILD_TESTING=$(usex test) + -DBUILD_CCACHE=OFF + -DBUILD_LIBVGM=OFF + -DCMAKE_DISABLE_FIND_PACKAGE_LIBGME=ON + -DINSTALL_HEADERS=ON + $(cmake_use_find_package archive LibArchive) + $(cmake_use_find_package openmpt OpenMpt) + $(cmake_use_find_package pipewire PipeWire) + $(cmake_use_find_package replaygain Ebur128) + $(cmake_use_find_package sdl SDL2) + $(cmake_use_find_package sndfile SndFile) + ) + + cmake_src_configure +} + +src_test() { + ln -sr "${CMAKE_USE_DIR}/tests/data/audio" "${BUILD_DIR}/tests/data/audio" || die + + cmake_src_test +}
