commit:     3bbd0b2caa74d7957701b6c1d9b50c0b137d2e2a
Author:     Thomas Beierlein <tomjbe <AT> gentoo <DOT> org>
AuthorDate: Fri Apr 25 11:35:42 2025 +0000
Commit:     Thomas Beierlein <tomjbe <AT> gentoo <DOT> org>
CommitDate: Fri Apr 25 11:36:05 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3bbd0b2c

net-wireless/soapyrtlsdr: Fix build with cmake4

Closes: https://bugs.gentoo.org/954120
Signed-off-by: Thomas Beierlein <tomjbe <AT> gentoo.org>

 .../files/soapyrtlsdr-0.3.3-cmake4.patch           | 13 ++++++++++
 .../soapyrtlsdr/soapyrtlsdr-0.3.3-r1.ebuild        | 28 ++++++++++++++++++++++
 2 files changed, 41 insertions(+)

diff --git a/net-wireless/soapyrtlsdr/files/soapyrtlsdr-0.3.3-cmake4.patch 
b/net-wireless/soapyrtlsdr/files/soapyrtlsdr-0.3.3-cmake4.patch
new file mode 100644
index 000000000000..30a16f87d358
--- /dev/null
+++ b/net-wireless/soapyrtlsdr/files/soapyrtlsdr-0.3.3-cmake4.patch
@@ -0,0 +1,13 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 4763d75..48d0913 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -1,7 +1,7 @@
+ ########################################################################
+ # Build Soapy SDR support module for RTL-SDR Devices
+ ########################################################################
+-cmake_minimum_required(VERSION 2.8.7)
++cmake_minimum_required(VERSION 3.10.0)
+ project(SoapyRTLSDR CXX)
+ 
+ find_package(SoapySDR "0.4.0" NO_MODULE REQUIRED)

diff --git a/net-wireless/soapyrtlsdr/soapyrtlsdr-0.3.3-r1.ebuild 
b/net-wireless/soapyrtlsdr/soapyrtlsdr-0.3.3-r1.ebuild
new file mode 100644
index 000000000000..b7906b8fe279
--- /dev/null
+++ b/net-wireless/soapyrtlsdr/soapyrtlsdr-0.3.3-r1.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="SoapySDR RTL-SDR Support Module"
+HOMEPAGE="https://github.com/pothosware/SoapyRTLSDR";
+
+if [ "${PV}" = "9999" ]; then
+       EGIT_REPO_URI="https://github.com/pothosware/SoapyRTLSDR.git";
+       inherit git-r3
+else
+       KEYWORDS="~amd64 ~arm ~riscv ~x86"
+       
SRC_URI="https://github.com/pothosware/SoapyRTLSDR/archive/soapy-rtl-sdr-${PV}.tar.gz
 -> ${P}.tar.gz"
+       S="${WORKDIR}"/SoapyRTLSDR-soapy-rtl-sdr-"${PV}"
+fi
+
+LICENSE="MIT"
+SLOT="0"
+
+RDEPEND="net-wireless/soapysdr:=
+               net-wireless/rtl-sdr"
+DEPEND="${RDEPEND}"
+BDEPEND=""
+
+PATCHES=( "${FILESDIR}"/${PN}-0.3.3-cmake4.patch )

Reply via email to