net-wireless/hackrf-tools: Fix build with cmake4

Closes: https://bugs.gentoo.org/957447
Signed-off-by: Thomas Beierlein <tomjbe@gentoo.org>
This commit is contained in:
Thomas Beierlein
2025-07-02 09:12:34 +02:00
parent 604a13c051
commit f46780c186
2 changed files with 16 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2024 Gentoo Authors
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -26,6 +26,13 @@ DEPEND="~net-libs/libhackrf-${PV}:=
sci-libs/fftw:3.0="
RDEPEND="${DEPEND}"
# Fix build with cmake4 i
# (see https://github.com/greatscottgadgets/hackrf/pull/1514)
src_prepare() {
sed -i -e "s/2.8.12/3.8/" CMakeLists.txt || die
cmake_src_prepare
}
src_install() {
cmake_src_install
newsbin "${FILESDIR}/hackrf_easy_flash-r1" hackrf_easy_flash

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2024 Gentoo Authors
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -26,6 +26,13 @@ DEPEND="~net-libs/libhackrf-${PV}:=
sci-libs/fftw:3.0="
RDEPEND="${DEPEND}"
# Fix build with cmake4 i
# (see https://github.com/greatscottgadgets/hackrf/pull/1514)
src_prepare() {
sed -i -e "s/2.8.12/3.8/" CMakeLists.txt || die
cmake_src_prepare
}
src_install() {
cmake_src_install
newsbin "${FILESDIR}/hackrf_easy_flash-r1" hackrf_easy_flash