dev-libs/libgpg-error: support cross-compile + multilib
authorAlon Bar-Lev <alonbl@gentoo.org>
Mon, 29 Oct 2018 08:45:50 +0000 (10:45 +0200)
committerAlon Bar-Lev <alonbl@gentoo.org>
Mon, 29 Oct 2018 08:50:23 +0000 (10:50 +0200)
Closes: https://bugs.gentoo.org/show_bug.cgi?id=669906
Signed-off-by: Alon Bar-Lev <alonbl@gentoo.org>
Package-Manager: Portage-2.3.49, Repoman-2.3.11

dev-libs/libgpg-error/libgpg-error-1.32-r1.ebuild

index 92257a968e2a2f44642e071c901f2cda6a3c5146..f436920298547d9e70e2d1b805a53ea396a91ad6 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
@@ -39,7 +39,7 @@ multilib_src_configure() {
                $(use_enable static-libs static) \
                --enable-threads \
                CC_FOR_BUILD="$(tc-getBUILD_CC)" \
-               $("${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_install_all() {