app-crypt/pinentry: support cross-compile
authorAlon Bar-Lev <alonbl@gentoo.org>
Fri, 5 Oct 2018 23:46:59 +0000 (02:46 +0300)
committerAlon Bar-Lev <alonbl@gentoo.org>
Sat, 6 Oct 2018 00:32:19 +0000 (03:32 +0300)
Signed-off-by: Alon Bar-Lev <alonbl@gentoo.org>
Package-Manager: Portage-2.3.49, Repoman-2.3.10

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

index 4a322c8d5b45c5c5f6d277dee52cabe4a2cff231..0628c073c110d6b27eecc23fcbfafb417191eebf 100644 (file)
@@ -73,7 +73,8 @@ src_configure() {
                $(use_enable qt5 pinentry-qt) \
                $(use_with caps libcap) \
                --enable-pinentry-tty \
-               MOC="$(qt5_get_bindir)"/moc
+               MOC="$(qt5_get_bindir)"/moc \
+               $(./configure --help | grep -- --with-.*-prefix | sed -e 's/prefix.*/prefix/' -e "s#\$#=${EROOT}/usr#")
 }
 
 src_install() {