app-crypt/pinentry: support cross-compile + multilib
authorAlon Bar-Lev <alonbl@gentoo.org>
Mon, 29 Oct 2018 08:48:17 +0000 (10:48 +0200)
committerAlon Bar-Lev <alonbl@gentoo.org>
Mon, 29 Oct 2018 08:50:24 +0000 (10:50 +0200)
Signed-off-by: Alon Bar-Lev <alonbl@gentoo.org>
Package-Manager: Portage-2.3.49, Repoman-2.3.11

app-crypt/pinentry/pinentry-1.1.0-r3.ebuild

index 82e3443aa1b38eacfa0093bb1c16b8e7b6fffa77..ea2b5bdf4d6dcaee266367674cd1f44fcae358fa 100644 (file)
@@ -75,7 +75,9 @@ src_configure() {
                --enable-pinentry-tty \
                FLTK_CONFIG="${EROOT}/usr/bin/fltk-config" \
                MOC="$(qt5_get_bindir)"/moc \
-               $(./configure --help | grep -- --with-.*-prefix | sed -e 's/prefix.*/prefix/' -e "s#\$#=${EROOT}/usr#")
+               GPG_ERROR_CONFIG="${EROOT}/usr/bin/${CHOST}-gpg-error-config" \
+               LIBASSUAN_CONFIG="${EROOT}/usr/bin/libassuan-config" \
+               $("${S}/configure" --help | grep -- '--without-.*-prefix' | sed -e 's/^ *\([^ ]*\) .*/\1/g')
 }
 
 src_install() {