commit: 227dc5442b6f04bd5a38b802078200466d76a088 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> AuthorDate: Mon May 19 15:59:51 2025 +0000 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> CommitDate: Tue May 20 21:20:06 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=227dc544
media-libs/munt-mt32emu: Fix build w/ cmake-4 Closes: https://bugs.gentoo.org/951838 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> .../munt-mt32emu/files/munt-mt32emu-2.7.0-cmake4.patch | 17 +++++++++++++++++ media-libs/munt-mt32emu/munt-mt32emu-2.7.0.ebuild | 9 +++++---- 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/media-libs/munt-mt32emu/files/munt-mt32emu-2.7.0-cmake4.patch b/media-libs/munt-mt32emu/files/munt-mt32emu-2.7.0-cmake4.patch new file mode 100644 index 000000000000..ecde11d6ac3f --- /dev/null +++ b/media-libs/munt-mt32emu/files/munt-mt32emu-2.7.0-cmake4.patch @@ -0,0 +1,17 @@ +From e6af0c7e5d63680716ab350467207c938054a0df Mon Sep 17 00:00:00 2001 +From: sergm <[email protected]> +Date: Sat, 30 Sep 2023 14:11:26 +0200 +Subject: [PATCH] Updated CMake scripts for compatibility with CMake 3.27+ + +--- + mt32emu/CMakeLists.txt | 2 +- + +index 0443ee7a..93838a81 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 2.8.12) ++cmake_minimum_required(VERSION 2.8.12...3.27) + + list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake") + diff --git a/media-libs/munt-mt32emu/munt-mt32emu-2.7.0.ebuild b/media-libs/munt-mt32emu/munt-mt32emu-2.7.0.ebuild index a0d63213fbc7..e9d6dd634d1f 100644 --- a/media-libs/munt-mt32emu/munt-mt32emu-2.7.0.ebuild +++ b/media-libs/munt-mt32emu/munt-mt32emu-2.7.0.ebuild @@ -1,22 +1,23 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 +MY_P="libmt32emu_${PV//./_}" inherit cmake -MY_P="libmt32emu_${PV//./_}" DESCRIPTION="Library for emulating the Roland MT-32, CM-32L, CM-64 and LAPC-I" HOMEPAGE="https://github.com/munt/munt" SRC_URI="https://github.com/munt/munt/archive/${MY_P}.tar.gz" +S="${WORKDIR}/munt-${MY_P}/mt32emu" + LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" -S="${WORKDIR}/munt-${MY_P}/mt32emu" - PATCHES=( "${FILESDIR}"/${PN}-2.6.1-docs.patch + "${FILESDIR}"/${P}-cmake4.patch # bug 951838 ) src_configure() {
