mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-10 23:52:59 -04:00
media-sound/fooyin: add 0.8.1_p20250622
Fix build with Qt 6.9 Fix build with USE=sndfile Signed-off-by: Sebastian Engel <sighunter@gmx.de>
This commit is contained in:
@@ -1 +1,2 @@
|
||||
DIST fooyin-0.8.1.tar.gz 1743303 BLAKE2B aa393dea6eca447320782fd4b766cda9cf6379150eb80451dfe63707fa51b48605daf082abf6e041da7bf5c384ee702d109f915daf4872f1dec927f0705958e3 SHA512 0204d7fe713d0f4f2602b56d51c7808fd4d14fae8405e77ceabb76cb64201a54a20411395fd648b333782889730e77525f96a20293dd7feb68db2b65973c7d3e
|
||||
DIST fooyin-0.8.1_p20250622.tar.gz 1924840 BLAKE2B 5125e3d5e5568f9a9a1808b0c6112d99aab2c67a1283b843a9ba326fe8ad1a0330e65a974266b608c9ecab2e45279b653bb75e5487d85ede98b53a6613ff5e8b SHA512 207c7f8d2a68387e61bc65ca6ab380382927702affea5db883e37a93ed00f1c428adc5a25dbaef9fa47af32aec83ea7e13708dd45507889b7f010d02b1f1ea62
|
||||
|
||||
89
media-sound/fooyin/fooyin-0.8.1_p20250622.ebuild
Normal file
89
media-sound/fooyin/fooyin-0.8.1_p20250622.ebuild
Normal file
@@ -0,0 +1,89 @@
|
||||
# Copyright 2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit cmake xdg
|
||||
|
||||
COMMIT="8303633a2d11bad54ab54d2b64b31ca03bac6ab3"
|
||||
|
||||
DESCRIPTION="A customizable music player, Qt clone of foobar2000"
|
||||
HOMEPAGE="https://www.fooyin.org/"
|
||||
SRC_URI="https://github.com/fooyin/fooyin/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/${PN}-${COMMIT}"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
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/qtimageformats:6
|
||||
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() {
|
||||
mkdir -p "${BUILD_DIR}/tests/data" || die
|
||||
ln -sr "${CMAKE_USE_DIR}/tests/data/audio" "${BUILD_DIR}/tests/data/audio" || die
|
||||
|
||||
cmake_src_test
|
||||
}
|
||||
Reference in New Issue
Block a user