commit: 9c5d2136953b4b68526f7561dafc2cefd0da7170 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> AuthorDate: Fri May 23 17:27:04 2025 +0000 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> CommitDate: Fri May 23 17:55:39 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9c5d2136
media-libs/dumb: update EAPI 7 -> 8, fix build w/ cmake-4 Bug: https://bugs.gentoo.org/949101 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> media-libs/dumb/dumb-2.0.3-r1.ebuild | 40 +++++++++++++++++++++++++++ media-libs/dumb/files/dumb-2.0.3-cmake4.patch | 21 ++++++++++++++ 2 files changed, 61 insertions(+) diff --git a/media-libs/dumb/dumb-2.0.3-r1.ebuild b/media-libs/dumb/dumb-2.0.3-r1.ebuild new file mode 100644 index 000000000000..ce7ebf9742f7 --- /dev/null +++ b/media-libs/dumb/dumb-2.0.3-r1.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake-multilib + +DESCRIPTION="Module/tracker based music format parser and player library" +HOMEPAGE="https://github.com/kode54/dumb" +SRC_URI="https://github.com/kode54/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="DUMB-0.9.3" +SLOT="0/2" +KEYWORDS="~alpha amd64 ~arm64 ~loong ppc ppc64 ~riscv sparc x86" +IUSE="allegro cpu_flags_x86_sse examples" + +RDEPEND=" + allegro? ( media-libs/allegro:0[${MULTILIB_USEDEP}] ) + examples? ( + >=dev-libs/argtable-2 + media-libs/libsdl2[sound] + ) +" +DEPEND="${RDEPEND}" + +PATCHES=( + "${FILESDIR}"/${P}-pkg-config.patch + "${FILESDIR}"/${P}-cmake4.patch +) + +DOCS=( {CHANGELOG,DUMBFILE_SYSTEM,README,UPDATING_YOUR_PROJECTS}.md ) + +multilib_src_configure() { + local mycmakeargs=( + -DBUILD_ALLEGRO4=$(usex allegro) + -DBUILD_EXAMPLES=$(multilib_native_usex examples) + -DUSE_SSE=$(usex cpu_flags_x86_sse) + ) + cmake_src_configure +} diff --git a/media-libs/dumb/files/dumb-2.0.3-cmake4.patch b/media-libs/dumb/files/dumb-2.0.3-cmake4.patch new file mode 100644 index 000000000000..9c73a45f2062 --- /dev/null +++ b/media-libs/dumb/files/dumb-2.0.3-cmake4.patch @@ -0,0 +1,21 @@ +From 5282442e48c90492f847d6afa4968c50119846bd Mon Sep 17 00:00:00 2001 +From: Pierre Wendling <[email protected]> +Date: Mon, 10 Apr 2023 11:59:39 -0400 +Subject: [PATCH] CMake: Modernise + +asturm 2025-05-23: Just raise cmake_minimum_required for CMake 4. + +--- + CMakeLists.txt | 1 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index bd89fa1..783250e 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 3.1) ++cmake_minimum_required(VERSION 3.10) + project(libdumb C) + include(GNUInstallDirs) + include(CheckCCompilerFlag)
