sci-libs/xdmf2: Call 'python_optimize' only when USE=python
authorDavid Seifert <soap@gentoo.org>
Sun, 4 Sep 2016 14:01:41 +0000 (16:01 +0200)
committerDavid Seifert <soap@gentoo.org>
Sun, 4 Sep 2016 14:02:08 +0000 (16:02 +0200)
Gentoo-bug: 592848

Package-Manager: portage-2.3.0

sci-libs/xdmf2/xdmf2-1.0_p141226-r2.ebuild

index b1b0bbb9fb443855f6f3ad2f191a49b844a40bcd..56bdc804edc714a303b0190c3f1332cbfd0a838b 100644 (file)
@@ -70,5 +70,5 @@ src_install() {
 
        # need to byte-compile 'XdmfCore.py' and 'Xdmf.py'
        # as the CMake build system does not compile them itself
-       python_optimize "${D%/}$(python_get_sitedir)"
+       use python && python_optimize "${D%/}$(python_get_sitedir)"
 }