commit:     0bc6ad0cd7387b7d49b3df5c65a1c336069d9d2b
Author:     John Helmert III <ajak <AT> gentoo <DOT> org>
AuthorDate: Wed Mar 26 04:40:22 2025 +0000
Commit:     John Helmert III <ajak <AT> gentoo <DOT> org>
CommitDate: Wed Mar 26 04:42:34 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0bc6ad0c

net-analyzer/sshping: fixup cmake minimum version

Signed-off-by: John Helmert III <ajak <AT> gentoo.org>

 .../sshping-0.1.4-cmake-minimum-version.patch      | 30 ++++++++++++++++++++
 net-analyzer/sshping/sshping-0.1.4-r1.ebuild       | 33 ++++++++++++++++++++++
 2 files changed, 63 insertions(+)

diff --git 
a/net-analyzer/sshping/files/sshping-0.1.4-cmake-minimum-version.patch 
b/net-analyzer/sshping/files/sshping-0.1.4-cmake-minimum-version.patch
new file mode 100644
index 000000000000..888e5cdbf5b5
--- /dev/null
+++ b/net-analyzer/sshping/files/sshping-0.1.4-cmake-minimum-version.patch
@@ -0,0 +1,30 @@
+https://github.com/spook/sshping/pull/50
+From: John Helmert III <[email protected]>
+Date: Tue, 25 Mar 2025 21:20:43 -0700
+Subject: [PATCH] cmake: set cmake_minimum_required to 3.10
+
+cmake-4 removes support for the minimum version being lower than 3.5,
+and older than 3.10 is deprecated with 3.31.
+
+Closes: #49
+Gentoo-Bug: https://bugs.gentoo.org/951814
+Signed-off-by: John Helmert III <[email protected]>
+---
+ CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index e8a7d0b..046bc72 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -1,6 +1,6 @@
+ # See https://github.com/spook/sshping
++cmake_minimum_required(VERSION 3.10)
+ project(sshping)
+-cmake_minimum_required(VERSION 2.8)
+ 
+ #find_package(libssh)
+ 
+-- 
+2.48.1
+

diff --git a/net-analyzer/sshping/sshping-0.1.4-r1.ebuild 
b/net-analyzer/sshping/sshping-0.1.4-r1.ebuild
new file mode 100644
index 000000000000..853943b6e8ce
--- /dev/null
+++ b/net-analyzer/sshping/sshping-0.1.4-r1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 2020-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="ssh-based ping: measure character echo latency and bandwidth"
+HOMEPAGE="https://github.com/spook/sshping";
+SRC_URI="https://github.com/spook/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+BDEPEND="dev-lang/perl"
+DEPEND="net-libs/libssh:="
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+       "${FILESDIR}/${P}-fix-man-dir.patch"
+       "${FILESDIR}/${P}-respect-cxxflags.patch"
+       "${FILESDIR}/${P}-cmake-minimum-version.patch"
+)
+
+src_configure() {
+       local mycmakeargs=(
+               -DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr"
+               -DCMAKE_CXX_FLAGS="${CXXFLAGS}"
+       )
+
+       cmake_src_configure
+}

Reply via email to