diff --git a/net-wireless/hackrf-tools/hackrf-tools-2024.02.1.ebuild b/net-wireless/hackrf-tools/hackrf-tools-2024.02.1-r1.ebuild similarity index 89% rename from net-wireless/hackrf-tools/hackrf-tools-2024.02.1.ebuild rename to net-wireless/hackrf-tools/hackrf-tools-2024.02.1-r1.ebuild index 8438e9697bb7a..06f96b90fb90f 100644 --- a/net-wireless/hackrf-tools/hackrf-tools-2024.02.1.ebuild +++ b/net-wireless/hackrf-tools/hackrf-tools-2024.02.1-r1.ebuild @@ -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 diff --git a/net-wireless/hackrf-tools/hackrf-tools-9999.ebuild b/net-wireless/hackrf-tools/hackrf-tools-9999.ebuild index 8438e9697bb7a..06f96b90fb90f 100644 --- a/net-wireless/hackrf-tools/hackrf-tools-9999.ebuild +++ b/net-wireless/hackrf-tools/hackrf-tools-9999.ebuild @@ -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