diff options
author | Sam James <sam@gentoo.org> | 2021-11-24 14:43:51 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-11-24 14:43:51 +0000 |
commit | cdfcab5d246095245d15a509494e5cc0073bd2c2 (patch) | |
tree | 1673dcb459deec80ee0563629b9a369c62520208 /sci-electronics | |
parent | sci-electronics/kicad: fix cmake flags for occ (diff) | |
download | gentoo-cdfcab5d246095245d15a509494e5cc0073bd2c2.tar.gz gentoo-cdfcab5d246095245d15a509494e5cc0073bd2c2.tar.bz2 gentoo-cdfcab5d246095245d15a509494e5cc0073bd2c2.zip |
sci-electronics/kicad: fix oce logic for live too
Bug: https://bugs.gentoo.org/827102
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sci-electronics')
-rw-r--r-- | sci-electronics/kicad/kicad-9999.ebuild | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sci-electronics/kicad/kicad-9999.ebuild b/sci-electronics/kicad/kicad-9999.ebuild index 5286a402f8bc..966cb9420562 100644 --- a/sci-electronics/kicad/kicad-9999.ebuild +++ b/sci-electronics/kicad/kicad-9999.ebuild @@ -109,10 +109,12 @@ src_configure() { -DPYTHON_INCLUDE_DIR="$(python_get_includedir)" -DPYTHON_LIBRARY="$(python_get_library_path)" ) + + local OCC_P=$(best_version sci-libs/opencascade) + OCC_P=${OCC_P#sci-libs/} + OCC_P=${OCC_P%-r*} + use occ && mycmakeargs+=( - local OCC_P=$(best_version sci-libs/opencascade) - OCC_P=${OCC_P#sci-libs/} - OCC_P=${OCC_P%-r*} -DOCC_INCLUDE_DIR="${CASROOT}"/include/${OCC_P} -DOCC_LIBRARY_DIR="${CASROOT}"/$(get_libdir)/${OCC_P} |