net-wireless/soapyrtlsdr: Fix build with cmake4

Closes: https://bugs.gentoo.org/954120
Signed-off-by: Thomas Beierlein <tomjbe@gentoo.org>
This commit is contained in:
Thomas Beierlein
2025-04-25 13:35:42 +02:00
parent 62a5e64761
commit 3bbd0b2caa
2 changed files with 41 additions and 0 deletions

View File

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

View File

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