commit:     b86ad1515c4c724db22532f00c73ea0d4e8cf0a6
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Oct 16 12:14:32 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Oct 16 12:14:32 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b86ad151

net-libs/libssh2: Bump to 1.11.1

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 net-libs/libssh2/Manifest              |  1 +
 net-libs/libssh2/libssh2-1.11.1.ebuild | 66 ++++++++++++++++++++++++++++++++++
 2 files changed, 67 insertions(+)

diff --git a/net-libs/libssh2/Manifest b/net-libs/libssh2/Manifest
index d161b27f79f4..b98335296533 100644
--- a/net-libs/libssh2/Manifest
+++ b/net-libs/libssh2/Manifest
@@ -1 +1,2 @@
 DIST libssh2-1.11.0.tar.xz 686796 BLAKE2B 
36903798c72f7261d9e997254169c10a4e69166017445276de8b0066fff15cd4dae4119a8d6cbbab8859d765b2d7f34f2911bbaf83c8d6ac5d1feead6b5de64e
 SHA512 
6d50c71b778ca0f769fcc9d2cc257ab669cd0b6c35e8b0e047b6b38aea10638974cc591ba27c25bb7dd523020b4a8a62e2c1ae368287d9dc254d5e24d4a7cee7
+DIST libssh2-1.11.1.tar.xz 721700 BLAKE2B 
8ab227556f8e7f094b2b8dc77e311d6935580690dd7d46f8766654a30078fb0be4182f43136896a04b5a2d15175397fab76607472d5f3cd31c8837a86e0c3c83
 SHA512 
8322b54a522b0cbbb07916d29ec045c08f8ed94bd8abb5e524038640e90a317667a25be46d95b62b101ed726ade0a51a90fb246cf34c045c38f927f4e439e431

diff --git a/net-libs/libssh2/libssh2-1.11.1.ebuild 
b/net-libs/libssh2/libssh2-1.11.1.ebuild
new file mode 100644
index 000000000000..3a57cca02b96
--- /dev/null
+++ b/net-libs/libssh2/libssh2-1.11.1.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake-multilib
+
+DESCRIPTION="Library implementing the SSH2 protocol"
+HOMEPAGE="https://libssh2.org";
+SRC_URI="https://libssh2.org/download/${P}.tar.xz";
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv 
~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
+IUSE="gcrypt mbedtls test zlib"
+REQUIRED_USE="?? ( gcrypt mbedtls )"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+       gcrypt? ( >=dev-libs/libgcrypt-1.5.3:0[${MULTILIB_USEDEP}] )
+       !gcrypt? (
+               mbedtls? ( net-libs/mbedtls:0=[${MULTILIB_USEDEP}] )
+               !mbedtls? (
+                       >=dev-libs/openssl-1.0.1h-r2:0=[${MULTILIB_USEDEP}]
+               )
+       )
+       zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] )
+"
+DEPEND="
+       ${RDEPEND}
+"
+
+PATCHES=(
+       "${FILESDIR}"/${PN}-1.11.0-mansyntax_sh.patch
+)
+
+multilib_src_configure() {
+       local crypto_backend=OpenSSL
+       if use gcrypt; then
+               crypto_backend=Libgcrypt
+       elif use mbedtls; then
+               crypto_backend=mbedTLS
+       fi
+
+       local mycmakeargs=(
+               -DBUILD_SHARED_LIBS=ON
+               -DBUILD_STATIC_LIBS=OFF
+               -DBUILD_TESTING=$(usex test)
+               -DCRYPTO_BACKEND=${crypto_backend}
+               -DENABLE_ZLIB_COMPRESSION=$(usex zlib)
+       )
+
+       if use test ; then
+               # Pass separately to avoid unused var warnings w/ USE=-test
+               mycmakeargs+=(
+                       -DRUN_SSHD_TESTS=OFF
+                       -DRUN_DOCKER_TESTS=OFF
+               )
+       fi
+
+       cmake_src_configure
+}
+
+multilib_src_install_all() {
+       einstalldocs
+}

Reply via email to