dev-libs/libksba: support cross-compile + multilib
authorAlon Bar-Lev <alonbl@gentoo.org>
Mon, 29 Oct 2018 08:47:12 +0000 (10:47 +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/libksba/libksba-1.3.5-r2.ebuild

index ef29c486e9a71c19498ebe207278b025e47b4a23..e184aa1c79804c5e5071f5418faa6f926b68e428 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
@@ -18,7 +18,9 @@ DEPEND="${RDEPEND}"
 src_configure() {
        econf \
                $(use_enable static-libs static) \
-               $(./configure --help | grep -- --with-.*-prefix | sed -e 's/prefix.*/prefix/' -e "s#\$#=${EROOT}/usr#")
+               GPG_ERROR_CONFIG="${EROOT}/usr/bin/${CHOST}-gpg-error-config" \
+               LIBGCRYPT_CONFIG="${EROOT}/usr/bin/${CHOST}-libgcrypt-config" \
+               $("${S}/configure" --help | grep -- '--without-.*-prefix' | sed -e 's/^ *\([^ ]*\) .*/\1/g')
 }
 
 src_install() {