From 4e8593b96bccbd718fa152ca4999aafa34db70a9 Mon Sep 17 00:00:00 2001 From: Jeroen Roovers Date: Mon, 14 Nov 2016 20:56:31 +0100 Subject: [PATCH] =?utf8?q?net-libs/libssh2:=20Drop=20upstream=20patch=20(b?= =?utf8?q?ug=20#599716=20by=20Tom=C3=A1=C5=A1=20M=C3=B3zes).=20Fix=20vario?= =?utf8?q?us=20issues.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Package-Manager: portage-2.3.2 --- net-libs/libssh2/libssh2-9999.ebuild | 29 +++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/net-libs/libssh2/libssh2-9999.ebuild b/net-libs/libssh2/libssh2-9999.ebuild index 29287af83239..2ea9ae87d0b6 100644 --- a/net-libs/libssh2/libssh2-9999.ebuild +++ b/net-libs/libssh2/libssh2-9999.ebuild @@ -2,12 +2,10 @@ # Distributed under the terms of the GNU General Public License v2 # $Id$ -EAPI=5 +EAPI=6 +inherit autotools git-r3 multilib-minimal -AUTOTOOLS_AUTORECONF=true EGIT_REPO_URI="https://github.com/libssh2/libssh2" -inherit autotools-multilib git-r3 - DESCRIPTION="Library implementing the SSH2 protocol" HOMEPAGE="http://www.libssh2.org/" SRC_URI="" @@ -23,26 +21,31 @@ DEPEND=" libressl? ( dev-libs/libressl[${MULTILIB_USEDEP}] ) ) gcrypt? ( >=dev-libs/libgcrypt-1.5.3:0[${MULTILIB_USEDEP}] ) - zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] )" + zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] ) +" RDEPEND="${DEPEND}" DOCS=( README ) -PATCHES=( "${FILESDIR}"/${PN}-1.8.0-libgcrypt-prefix.patch ) - src_prepare() { + default + sed -i -e 's|mansyntax.sh||g' tests/Makefile.am || die ln -s ../src/libssh2_config.h.in example/libssh2_config.h.in || die - autotools-multilib_src_prepare + + eautoreconf } multilib_src_configure() { # Disable tests that require extra permissions (bug #333319) use test && local -x ac_cv_path_SSHD= - local myeconfargs=( - $(use_with zlib libz) - $(usex gcrypt --with-libgcrypt --with-openssl) - ) - autotools-utils_src_configure + local crypto + if use gcrypt; then + crypto=libgcrypt + else + crypto=openssl + fi + + ECONF_SOURCE="${S}" econf --with-crypto=${crypto} } -- 2.26.2