media-sound/scream: update cmake compatibility

Closes: https://bugs.gentoo.org/964612
Signed-off-by: Alexey Sokolov <alexey+gentoo@asokolov.org>
Part-of: https://github.com/gentoo/gentoo/pull/44747
Closes: https://github.com/gentoo/gentoo/pull/44747
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Alexey Sokolov 2025-11-23 21:06:17 +00:00 committed by Sam James
parent d4af550a33
commit cd0b8120c0
No known key found for this signature in database
GPG Key ID: 738409F520DF9190
4 changed files with 17 additions and 5 deletions

View File

@ -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)

View File

@ -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();

View File

@ -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() {

View File

@ -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