dev-libs/libgcrypt: support cross-compile + multilib
authorAlon Bar-Lev <alonbl@gentoo.org>
Mon, 29 Oct 2018 08:46:36 +0000 (10:46 +0200)
committerAlon Bar-Lev <alonbl@gentoo.org>
Mon, 29 Oct 2018 08:50:23 +0000 (10:50 +0200)
Signed-off-by: Alon Bar-Lev <alonbl@gentoo.org>
Package-Manager: Portage-2.3.49, Repoman-2.3.11

dev-libs/libgcrypt/libgcrypt-1.8.3-r1.ebuild

index 02488a6c3c145cf510f2d6d1a1dffbb82ba3b60c..ffd3b99f24b0ba48082d551a1da94e1559082778 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -57,7 +57,7 @@ multilib_src_configure() {
                GPG_ERROR_CONFIG="${EROOT}/usr/bin/${CHOST}-gpg-error-config"
        )
        ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" \
-               $("${S}/configure" --help | grep -- --with-.*-prefix | sed -e 's/prefix.*/prefix/' -e "s#\$#=${EROOT}/usr#")
+               $("${S}/configure" --help | grep -- '--without-.*-prefix' | sed -e 's/^ *\([^ ]*\) .*/\1/g')
 }
 
 multilib_src_compile() {