commit: f6a4f7608757dcafc9f740a9e588c6336c6e3dbe
Author: Sebastian Engel <sighunter <AT> gmx <DOT> de>
AuthorDate: Wed Dec 10 22:20:26 2025 +0000
Commit: Haelwenn Monnier <contact <AT> hacktivis <DOT> me>
CommitDate: Wed Dec 10 22:20:26 2025 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=f6a4f760
media-sound/fooyin: Fix build with Qt 6.10
Signed-off-by: Sebastian Engel <sighunter <AT> gmx.de>
.../files/fooyin-0.9.2-fix-build-Qt6.10.1.patch | 13 +++
.../files/fooyin-0.9.2-vumeter-include.patch | 22 +++++
media-sound/fooyin/fooyin-0.9.2-r1.ebuild | 101 +++++++++++++++++++++
3 files changed, 136 insertions(+)
diff --git a/media-sound/fooyin/files/fooyin-0.9.2-fix-build-Qt6.10.1.patch
b/media-sound/fooyin/files/fooyin-0.9.2-fix-build-Qt6.10.1.patch
new file mode 100644
index 0000000000..c9f680b357
--- /dev/null
+++ b/media-sound/fooyin/files/fooyin-0.9.2-fix-build-Qt6.10.1.patch
@@ -0,0 +1,13 @@
+diff --git a/src/utils/starrating.cpp b/src/utils/starrating.cpp
+index 1e71e181..9c96e95e 100644
+--- a/src/utils/starrating.cpp
++++ b/src/utils/starrating.cpp
+@@ -104,7 +104,7 @@ void StarRating::paint(QPainter* painter, const QRect&
rect, const QPalette& pal
+ .arg(m_maxCount)
+ .arg(mode == EditMode::Editable ? 1 : 0)
+ .arg(rect.width())
+- .arg(alignment);
++ .arg(alignment.toInt());
+
+ QPixmap pixmap;
+ if(!QPixmapCache::find(cacheKey, &pixmap)) {
\ No newline at end of file
diff --git a/media-sound/fooyin/files/fooyin-0.9.2-vumeter-include.patch
b/media-sound/fooyin/files/fooyin-0.9.2-vumeter-include.patch
new file mode 100644
index 0000000000..cc7f4dfe95
--- /dev/null
+++ b/media-sound/fooyin/files/fooyin-0.9.2-vumeter-include.patch
@@ -0,0 +1,22 @@
+From 7b171c0da2b9289468696424fe51f76e1c365bb5 Mon Sep 17 00:00:00 2001
+From: rathann <[email protected]>
+Date: Tue, 7 Oct 2025 00:27:19 +0200
+Subject: [PATCH] [vumeter] Add missing header include for QElapsedTimer (#725)
+
+Fixes #724
+---
+ src/plugins/vumeter/vumeterwidget.cpp | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/plugins/vumeter/vumeterwidget.cpp
b/src/plugins/vumeter/vumeterwidget.cpp
+index 786f24b5b..2834a3e19 100644
+--- a/src/plugins/vumeter/vumeterwidget.cpp
++++ b/src/plugins/vumeter/vumeterwidget.cpp
+@@ -33,6 +33,7 @@
+ #include <QActionGroup>
+ #include <QBasicTimer>
+ #include <QContextMenuEvent>
++#include <QElapsedTimer>
+ #include <QJsonObject>
+ #include <QMenu>
+ #include <QPainter>
diff --git a/media-sound/fooyin/fooyin-0.9.2-r1.ebuild
b/media-sound/fooyin/fooyin-0.9.2-r1.ebuild
new file mode 100644
index 0000000000..5172942cd7
--- /dev/null
+++ b/media-sound/fooyin/fooyin-0.9.2-r1.ebuild
@@ -0,0 +1,101 @@
+# Copyright 2025 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/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 )
+"
+PATCHES=(
+ # https://github.com/fooyin/fooyin/issues/779
+ "${FILESDIR}/${PN}-0.9.2-fix-build-Qt6.10.1.patch"
+ # https://github.com/fooyin/fooyin/issues/724
+ "${FILESDIR}/${PN}-0.9.2-vumeter-include.patch"
+)
+
+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
+}