diff --git a/media-sound/scream/files/scream-4.0-cmake.patch b/media-sound/scream/files/scream-4.0-cmake.patch new file mode 100644 index 000000000000..e07f7514f2e3 --- /dev/null +++ b/media-sound/scream/files/scream-4.0-cmake.patch @@ -0,0 +1,11 @@ +https://github.com/duncanthrax/scream/pull/234 +https://bugs.gentoo.org/964612 + +--- a/Receivers/unix/CMakeLists.txt ++++ b/Receivers/unix/CMakeLists.txt +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 3.7) ++cmake_minimum_required(VERSION 3.7...4.0) + + project(scream LANGUAGES C) + diff --git a/media-sound/scream/files/scream-4.0-gcc15.patch b/media-sound/scream/files/scream-4.0-gcc15.patch index fc1b852be61d..d151b349d4e7 100644 --- a/media-sound/scream/files/scream-4.0-gcc15.patch +++ b/media-sound/scream/files/scream-4.0-gcc15.patch @@ -1,5 +1,5 @@ ---- a/jack.c -+++ b/jack.c +--- a/Receivers/unix/jack.c ++++ b/Receivers/unix/jack.c @@ -107,7 +107,7 @@ jo_data; static int init_resampler(); static int init_channels(); diff --git a/media-sound/scream/scream-4.0-r1.ebuild b/media-sound/scream/scream-4.0-r2.ebuild similarity index 93% rename from media-sound/scream/scream-4.0-r1.ebuild rename to media-sound/scream/scream-4.0-r2.ebuild index b2addd13fd39..c93e9b3d39d2 100644 --- a/media-sound/scream/scream-4.0-r1.ebuild +++ b/media-sound/scream/scream-4.0-r2.ebuild @@ -7,7 +7,7 @@ inherit cmake DESCRIPTION="Plays sound received from network or from a QEMU Windows VM" HOMEPAGE="https://github.com/duncanthrax/scream" -S="${WORKDIR}/${P}/Receivers/unix" +CMAKE_USE_DIR="${S}/Receivers/unix" if [[ ${PV} == *9999 ]]; then inherit git-r3 @@ -34,6 +34,7 @@ BDEPEND="virtual/pkgconfig" PATCHES=( "${FILESDIR}/${P}-gcc15.patch" + "${FILESDIR}/${P}-cmake.patch" ) src_configure() { diff --git a/media-sound/scream/scream-9999.ebuild b/media-sound/scream/scream-9999.ebuild index 75ab1107c4f1..bc4d9e308dea 100644 --- a/media-sound/scream/scream-9999.ebuild +++ b/media-sound/scream/scream-9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 2020-2023 Gentoo Authors +# Copyright 2020-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -7,7 +7,7 @@ inherit cmake DESCRIPTION="Plays sound received from network or from a QEMU Windows VM" HOMEPAGE="https://github.com/duncanthrax/scream" -S="${WORKDIR}/${P}/Receivers/unix" +CMAKE_USE_DIR="${S}/Receivers/unix" if [[ ${PV} == *9999 ]]; then inherit git-r3