commit:     4ecdcc89132e0612d3b639606baf67bc7eb995cb
Author:     Gilles Dartiguelongue <eva <AT> gentoo <DOT> org>
AuthorDate: Sat Apr 18 14:58:24 2020 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun May 31 09:44:09 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4ecdcc89

app-misc/hivex: fix build with USE=-python

Package-Manager: Portage-2.3.99, Repoman-2.3.22
Closes: https://bugs.gentoo.org/715374
Signed-off-by: Gilles Dartiguelongue <eva <AT> gentoo.org>
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 app-misc/hivex/hivex-1.3.18.ebuild | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/app-misc/hivex/hivex-1.3.18.ebuild 
b/app-misc/hivex/hivex-1.3.18.ebuild
index d50454845f2..da2e2b6fae0 100644
--- a/app-misc/hivex/hivex-1.3.18.ebuild
+++ b/app-misc/hivex/hivex-1.3.18.ebuild
@@ -96,7 +96,9 @@ src_install() {
        strip-linguas -i po
 
        emake install DESTDIR="${ED}" "LINGUAS=""${LINGUAS}"""
-       python_optimize
+       if use python; then
+               python_optimize
+       fi
 
        ruby-ng_src_install
 

Reply via email to