net-libs/libssh2: Drop upstream patch (bug #599716 by Tomáš Mózes). Fix various issues.
authorJeroen Roovers <jer@gentoo.org>
Mon, 14 Nov 2016 19:56:31 +0000 (20:56 +0100)
committerJeroen Roovers <jer@gentoo.org>
Mon, 14 Nov 2016 19:56:31 +0000 (20:56 +0100)
Package-Manager: portage-2.3.2

net-libs/libssh2/libssh2-9999.ebuild

index 29287af83239b00470251c2d3c69d2cf15a4d7d4..2ea9ae87d0b6548b3c6d69b2c9fd1706691389fe 100644 (file)
@@ -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}
 }