commit:     9ec11c72ad79142c7b70862ffc87f8e65c9c40e0
Author:     Guilherme Amadio <amadio <AT> gentoo <DOT> org>
AuthorDate: Thu Aug 23 07:36:42 2018 +0000
Commit:     Guilherme Amadio <amadio <AT> gentoo <DOT> org>
CommitDate: Thu Aug 23 07:36:51 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9ec11c72

app-crypt/gnupg: fix bug #649598, USE=usb on prefix

Closes: https://bugs.gentoo.org/649598
Suggested-by: Fabian Groffen <grobian <AT> gentoo.org>
Package-Manager: Portage-2.3.47, Repoman-2.3.10

 app-crypt/gnupg/gnupg-2.2.9.ebuild | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/app-crypt/gnupg/gnupg-2.2.9.ebuild 
b/app-crypt/gnupg/gnupg-2.2.9.ebuild
index d53de1b7125..2345009acbc 100644
--- a/app-crypt/gnupg/gnupg-2.2.9.ebuild
+++ b/app-crypt/gnupg/gnupg-2.2.9.ebuild
@@ -3,7 +3,7 @@
 
 EAPI="6"
 
-inherit systemd toolchain-funcs
+inherit flag-o-matic systemd toolchain-funcs
 
 MY_P="${P/_/-}"
 
@@ -65,6 +65,10 @@ src_configure() {
                        --enable-scdaemon
                        $(use_enable usb ccid-driver)
                )
+               if use prefix && use usb ; then
+                       # bug #649598
+                       append-cppflags -I"${EPREFIX}/usr/include/libusb-1.0"
+               fi
        else
                myconf+=( --disable-scdaemon )
        fi

Reply via email to