Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/libssh2/
Date: Sun, 29 Aug 2021 21:50:26
Message-Id: 1630273744.85e2d4f804565db912462b845284e997148d2885.mgorny@gentoo
1 commit: 85e2d4f804565db912462b845284e997148d2885
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun Aug 29 21:37:15 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun Aug 29 21:49:04 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=85e2d4f8
7
8 net-libs/libssh2: Bump to 1.10.0
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 net-libs/libssh2/Manifest | 1 +
13 net-libs/libssh2/libssh2-1.10.0.ebuild | 53 ++++++++++++++++++++++++++++++++++
14 2 files changed, 54 insertions(+)
15
16 diff --git a/net-libs/libssh2/Manifest b/net-libs/libssh2/Manifest
17 index 72c8716d2b8..e3b31020b5f 100644
18 --- a/net-libs/libssh2/Manifest
19 +++ b/net-libs/libssh2/Manifest
20 @@ -1 +1,2 @@
21 +DIST libssh2-1.10.0.tar.gz 965044 BLAKE2B 0e6f571cc723e0050bf7ba7492f361ef222547dcbc311019cb6762f01405b4906e0418207a7d484c5170bee5e6f666827a7ea0d0cf233f684f999f896ce0b415 SHA512 e064ee1089eb8e6cd5fa2617f4fd8ff56c2721c5476775a98bdb68c6c4ee4d05c706c3bb0eb479a27a8ec0b17a8a5ef43e1d028ad3f134519aa582d3981a3a30
22 DIST libssh2-1.9.0_p20200614.tar.gz 482698 BLAKE2B a93c3e61ecba564263e5aa1c10769bd07b5d16def9e6948262e5bbe32d86ae39784b63c608ad4d8a4aa0fcb14c8b55742f90cd2856e043bea5b3d052a31dc871 SHA512 fa34c598149d28b12f5cefbee4816f30a807a1bde89faa3be469f690057cf2ea7dd1a83191b2a2cae3794e307d676efebd7a31d70d9587e42e0926f82a1ae73d
23
24 diff --git a/net-libs/libssh2/libssh2-1.10.0.ebuild b/net-libs/libssh2/libssh2-1.10.0.ebuild
25 new file mode 100644
26 index 00000000000..309a9aac840
27 --- /dev/null
28 +++ b/net-libs/libssh2/libssh2-1.10.0.ebuild
29 @@ -0,0 +1,53 @@
30 +# Copyright 1999-2021 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=7
34 +CMAKE_ECLASS=cmake
35 +inherit cmake-multilib
36 +
37 +DESCRIPTION="Library implementing the SSH2 protocol"
38 +HOMEPAGE="https://www.libssh2.org"
39 +SRC_URI="https://www.libssh2.org/download/${P}.tar.gz"
40 +
41 +LICENSE="BSD"
42 +SLOT="0"
43 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-solaris"
44 +IUSE="gcrypt mbedtls zlib"
45 +REQUIRED_USE="?? ( gcrypt mbedtls )"
46 +# Tests try to set containers up using docker (and fail for some reason).
47 +RESTRICT="test"
48 +
49 +RDEPEND="
50 + gcrypt? ( >=dev-libs/libgcrypt-1.5.3:0[${MULTILIB_USEDEP}] )
51 + !gcrypt? (
52 + mbedtls? ( net-libs/mbedtls:0=[${MULTILIB_USEDEP}] )
53 + !mbedtls? (
54 + >=dev-libs/openssl-1.0.1h-r2:0=[${MULTILIB_USEDEP}]
55 + )
56 + )
57 + zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] )
58 +"
59 +DEPEND="
60 + ${RDEPEND}
61 +"
62 +
63 +multilib_src_configure() {
64 + local crypto_backend=OpenSSL
65 + if use gcrypt; then
66 + crypto_backend=Libgcrypt
67 + elif use mbedtls; then
68 + crypto_backend=mbedTLS
69 + fi
70 +
71 + local mycmakeargs=(
72 + -DBUILD_SHARED_LIBS=ON
73 + -DCRYPTO_BACKEND=${crypto_backend}
74 + -DENABLE_ZLIB_COMPRESSION=$(usex zlib)
75 + )
76 + cmake_src_configure
77 +}
78 +
79 +multilib_src_install_all() {
80 + einstalldocs
81 + find "${ED}" -name '*.la' -delete || die
82 +}