sci-electronics/kicad: fix oce USE flag
authorVirgil Dupras <vdupras@gentoo.org>
Sun, 9 Sep 2018 01:25:58 +0000 (21:25 -0400)
committerVirgil Dupras <vdupras@gentoo.org>
Sun, 9 Sep 2018 01:25:58 +0000 (21:25 -0400)
OCE build flag, being ON by default, was not disabled on "-oce". Also,
it was behind an irrelevant "amd64" condition.

Bug: https://bugs.gentoo.org/665500
Package-Manager: Portage-2.3.49, Repoman-2.3.10

sci-electronics/kicad/kicad-5.0.0.ebuild

index d1a689a120a4e627624a956e51ff5e2dde27a81e..db6476d4b9628da8c5ede4be27c7d71235e725a7 100644 (file)
@@ -69,6 +69,7 @@ src_configure() {
                -DKICAD_SCRIPTING_WXPYTHON="$(usex python)"
                -DKICAD_SPICE="$(usex ngspice)"
                -DKICAD_USE_OCC=OFF
+               -DKICAD_USE_OCE="$(usex oce)"
                -DKICAD_INSTALL_DEMOS="$(usex examples)"
        )
        use python && mycmakeargs+=(
@@ -77,9 +78,6 @@ src_configure() {
                -DPYTHON_INCLUDE_DIR="$(python_get_includedir)"
                -DPYTHON_LIBRARY="$(python_get_library_path)"
        )
-       use amd64 && use oce && mycmakeargs+=(
-               -DKICAD_USE_OCE=ON
-       )
        cmake-utils_src_configure
 }