Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/libssh/
Date: Sat, 26 Oct 2019 10:52:42
Message-Id: 1572087140.92988303c06117b57c28b979571f2488069f7605.asturm@gentoo
1 commit: 92988303c06117b57c28b979571f2488069f7605
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 26 10:48:56 2019 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 26 10:52:20 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=92988303
7
8 net-libs/libssh: 0.9.1 version bump
9
10 Package-Manager: Portage-2.3.78, Repoman-2.3.17
11 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
12
13 net-libs/libssh/Manifest | 1 +
14 net-libs/libssh/libssh-0.9.1.ebuild | 112 ++++++++++++++++++++++++++++++++++++
15 2 files changed, 113 insertions(+)
16
17 diff --git a/net-libs/libssh/Manifest b/net-libs/libssh/Manifest
18 index 9d1285b15bf..36083c78cc7 100644
19 --- a/net-libs/libssh/Manifest
20 +++ b/net-libs/libssh/Manifest
21 @@ -1 +1,2 @@
22 DIST libssh-0.9.0.tar.xz 487628 BLAKE2B 43c9c889160089f8ab4ce9d486e1892ef9fb7941d7473baf2c27e3fe05da0299bd8a7fa5c4392f24411ec0970f61fc302fbe18b8c807efe07d65f6fc326467e3 SHA512 8c91b31e49652d93c295ca62c2ff1ae30f26c263195a8bc2390e44f6e688959507f609125d342ee8180fc03cec2d73258ac72f864696281b53ba9ad244060865
23 +DIST libssh-0.9.1.tar.xz 1246696 BLAKE2B 3be87c3020930ddfb67b6eb2ded91e805fd17ec5493e443064ec1e7cb23797fc5128c4e39ff9c3067c3026ae370eebbdcc7706bd886a2a644b34b66cb494b6c4 SHA512 7776db347acb2d2d2ef3c19bc8ac61a4b18a4e61c1d7c2814fe44d3b7716e36d5440cdf170fb151af6c2bd9491921911b7f84732d781992c064667ea2ac3cab2
24
25 diff --git a/net-libs/libssh/libssh-0.9.1.ebuild b/net-libs/libssh/libssh-0.9.1.ebuild
26 new file mode 100644
27 index 00000000000..7731aab2388
28 --- /dev/null
29 +++ b/net-libs/libssh/libssh-0.9.1.ebuild
30 @@ -0,0 +1,112 @@
31 +# Copyright 1999-2019 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +inherit cmake-multilib
37 +
38 +DESCRIPTION="Access a working SSH implementation by means of a library"
39 +HOMEPAGE="https://www.libssh.org/"
40 +
41 +if [[ "${PV}" == *9999 ]] ; then
42 + inherit git-r3
43 + EGIT_REPO_URI="https://git.libssh.org/projects/libssh.git"
44 +else
45 + SRC_URI="https://www.libssh.org/files/$(ver_cut 1-2)/${P}.tar.xz"
46 + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
47 +fi
48 +
49 +LICENSE="LGPL-2.1"
50 +SLOT="0/4" # subslot = soname major version
51 +IUSE="debug doc examples gcrypt gssapi libressl mbedtls pcap server +sftp static-libs test zlib"
52 +# Maintainer: check IUSE-defaults at DefineOptions.cmake
53 +
54 +REQUIRED_USE="?? ( gcrypt mbedtls ) test? ( static-libs )"
55 +
56 +RDEPEND="
57 + !gcrypt? (
58 + !mbedtls? (
59 + !libressl? ( >=dev-libs/openssl-1.0.1h-r2:0=[${MULTILIB_USEDEP}] )
60 + libressl? ( dev-libs/libressl:=[${MULTILIB_USEDEP}] )
61 + )
62 + )
63 + gcrypt? ( >=dev-libs/libgcrypt-1.5.3:0[${MULTILIB_USEDEP}] )
64 + gssapi? ( >=virtual/krb5-0-r1[${MULTILIB_USEDEP}] )
65 + mbedtls? ( net-libs/mbedtls[${MULTILIB_USEDEP}] )
66 + zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] )
67 +"
68 +DEPEND="${RDEPEND}
69 + doc? ( app-doc/doxygen[dot] )
70 + test? ( >=dev-util/cmocka-0.3.1[${MULTILIB_USEDEP}] )
71 +"
72 +
73 +DOCS=( AUTHORS README ChangeLog )
74 +
75 +PATCHES=( "${FILESDIR}/${PN}-0.8.0-tests.patch" )
76 +
77 +src_prepare() {
78 + cmake-utils_src_prepare
79 +
80 + # just install the examples, do not compile them
81 + cmake_comment_add_subdirectory examples
82 +
83 + # keyfile torture test is currently broken
84 + sed -e "/torture_keyfiles/d" \
85 + -i tests/unittests/CMakeLists.txt || die
86 +
87 + # disable tests that take too long (bug #677006)
88 + if use sparc; then
89 + sed -e "/torture_threads_pki_rsa/d" -e "/torture_pki_dsa/d" \
90 + -i tests/unittests/CMakeLists.txt || die
91 + fi
92 +
93 + sed -e "/^check_include_file.*HAVE_VALGRIND_VALGRIND_H/s/^/#DONT /" \
94 + -i ConfigureChecks.cmake || die
95 +}
96 +
97 +multilib_src_configure() {
98 + local mycmakeargs=(
99 + -DWITH_NACL=OFF
100 + -DWITH_STACK_PROTECTOR=OFF
101 + -DWITH_STACK_PROTECTOR_STRONG=OFF
102 + -DWITH_DEBUG_CALLTRACE="$(usex debug)"
103 + -DWITH_DEBUG_CRYPTO="$(usex debug)"
104 + -DWITH_GCRYPT="$(usex gcrypt)"
105 + -DWITH_GSSAPI="$(usex gssapi)"
106 + -DWITH_MBEDTLS="$(usex mbedtls)"
107 + -DWITH_PCAP="$(usex pcap)"
108 + -DWITH_SERVER="$(usex server)"
109 + -DWITH_SFTP="$(usex sftp)"
110 + -DWITH_STATIC_LIB="$(usex static-libs)"
111 + -DUNIT_TESTING="$(usex test)"
112 + -DWITH_ZLIB="$(usex zlib)"
113 + )
114 +
115 + multilib_is_native_abi || mycmakeargs+=( -DCMAKE_DISABLE_FIND_PACKAGE_Doxygen=ON )
116 +
117 + cmake-utils_src_configure
118 +}
119 +
120 +multilib_src_compile() {
121 + cmake-utils_src_compile
122 + multilib_is_native_abi && use doc && cmake-utils_src_compile docs
123 +}
124 +
125 +multilib_src_install() {
126 + cmake-utils_src_install
127 + multilib_is_native_abi && use doc && HTML_DOCS=( "${BUILD_DIR}"/doc/html/. )
128 +
129 + # compatibility symlink until all consumers have been updated
130 + # to no longer use libssh_threads.so
131 + dosym libssh.so /usr/$(get_libdir)/libssh_threads.so
132 +}
133 +
134 +multilib_src_install_all() {
135 + use mbedtls && DOCS+=( README.mbedtls )
136 + einstalldocs
137 +
138 + if use examples; then
139 + docinto examples
140 + dodoc examples/*.{c,h,cpp}
141 + fi
142 +}