diff options
author | Yehoshua Pesach Wallach <yehoshuapw@gmail.com> | 2021-11-24 15:26:16 +0200 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-11-24 14:43:03 +0000 |
commit | c54acff8e9f994aa321e26da3d24120166553ba2 (patch) | |
tree | 495e22141074a738dc81536a8ff019f3b5808535 /sci-electronics | |
parent | toolchain.eclass: switch snapshot prefix _alpha → _p (diff) | |
download | gentoo-c54acff8e9f994aa321e26da3d24120166553ba2.tar.gz gentoo-c54acff8e9f994aa321e26da3d24120166553ba2.tar.bz2 gentoo-c54acff8e9f994aa321e26da3d24120166553ba2.zip |
sci-electronics/kicad: fix cmake flags for occ
Closes: https://bugs.gentoo.org/827102
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Yehoshua Pesach Wallach <yehoshuapw@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/23067
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sci-electronics')
-rw-r--r-- | sci-electronics/kicad/kicad-6.0.0_rc1.ebuild | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sci-electronics/kicad/kicad-6.0.0_rc1.ebuild b/sci-electronics/kicad/kicad-6.0.0_rc1.ebuild index 5286a402f8bc..eeaa25c07338 100644 --- a/sci-electronics/kicad/kicad-6.0.0_rc1.ebuild +++ b/sci-electronics/kicad/kicad-6.0.0_rc1.ebuild @@ -109,10 +109,10 @@ 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} |