commit: 2225b47f20439b77475e5baca1454ef9c131feb2 Author: Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com> AuthorDate: Fri Oct 17 18:59:20 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sat Oct 18 15:07:57 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2225b47f
media-sound/wildmidi: fix compilation with cmake4 Minor fixes to ebuild. Closes: https://bugs.gentoo.org/964466 Signed-off-by: Azamat H. Hackimov <azamat.hackimov <AT> gmail.com> Part-of: https://github.com/gentoo/gentoo/pull/44227 Closes: https://github.com/gentoo/gentoo/pull/44227 Signed-off-by: Sam James <sam <AT> gentoo.org> media-sound/wildmidi/files/wildmidi-0.4.6_cmake4.patch | 14 ++++++++++++++ media-sound/wildmidi/wildmidi-0.4.6.ebuild | 8 ++++++-- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/media-sound/wildmidi/files/wildmidi-0.4.6_cmake4.patch b/media-sound/wildmidi/files/wildmidi-0.4.6_cmake4.patch new file mode 100644 index 000000000000..be041154c84f --- /dev/null +++ b/media-sound/wildmidi/files/wildmidi-0.4.6_cmake4.patch @@ -0,0 +1,14 @@ +From https://github.com/Mindwerks/wildmidi/commit/1e21a829ce3b00a4747a50f8ae5e0cf11402a293 +From: Ozkan Sezer <[email protected]> +Date: Sat, 3 May 2025 14:56:50 +0300 +Subject: [PATCH] cmake: set maximum policy to 3.10 + +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,5 +1,5 @@ + # Project setup +-CMAKE_MINIMUM_REQUIRED(VERSION 3.4...3.5) ++CMAKE_MINIMUM_REQUIRED(VERSION 3.4...3.10) + PROJECT(wildmidi LANGUAGES C VERSION 0.4.6) + + # WildMIDI Version diff --git a/media-sound/wildmidi/wildmidi-0.4.6.ebuild b/media-sound/wildmidi/wildmidi-0.4.6.ebuild index 65358e75161c..eeeb51eab2b0 100644 --- a/media-sound/wildmidi/wildmidi-0.4.6.ebuild +++ b/media-sound/wildmidi/wildmidi-0.4.6.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -9,6 +9,8 @@ DESCRIPTION="MIDI processing library and player using the GUS patch set" HOMEPAGE="http://www.mindwerks.net/projects/wildmidi/" SRC_URI="https://github.com/Mindwerks/${PN}/archive/${P}.tar.gz" +S="${WORKDIR}/${PN}-${P}" + LICENSE="GPL-3+ LGPL-3+" SLOT="0" KEYWORDS="amd64 arm ~arm64 ~hppa ppc ppc64 ~riscv x86" @@ -29,7 +31,9 @@ DOC_CONTENTS="${PN} is using timidity-freepats for midi playback. A default configuration file was placed on /etc/${PN}/${PN}.cfg. For more information please read the ${PN}.cfg manpage." -S="${WORKDIR}/${PN}-${P}" +PATCHES=( + "${FILESDIR}/wildmidi-0.4.6_cmake4.patch" +) src_prepare() { cmake_src_prepare
