From d8e72a84aebb1ac6094257935e5c5a589da1870c Mon Sep 17 00:00:00 2001 From: Bernd Waibel Date: Thu, 6 May 2021 23:37:40 +0200 Subject: media-gfx/freecad: find opencascade-7.5 Correctly find sci-libs/opencascade-7.5.1 header and library locations. Closes: https://bugs.gentoo.org/788274 Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Bernd Waibel Closes: https://github.com/gentoo/gentoo/pull/20708 Signed-off-by: Sam James --- media-gfx/freecad/freecad-0.19.2.ebuild | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'media-gfx') diff --git a/media-gfx/freecad/freecad-0.19.2.ebuild b/media-gfx/freecad/freecad-0.19.2.ebuild index f2d55fb7b13a..f7125e38c85b 100644 --- a/media-gfx/freecad/freecad-0.19.2.ebuild +++ b/media-gfx/freecad/freecad-0.19.2.ebuild @@ -222,11 +222,22 @@ src_configure() { # sub-packages will still be installed inside /usr/lib64/freecad -DINSTALL_TO_SITEPACKAGES=ON - -DOCC_INCLUDE_DIR="${CASROOT}"/include/opencascade - -DOCC_LIBRARY_DIR="${CASROOT}"/$(get_libdir) -DOCCT_CMAKE_FALLBACK=ON # don't use occt-config which isn't included in opencascade for Gentoo ) + if has_version ">=sci-libs/opencascade-7.5"; then + mycmakeargs+=( + -DOCC_INCLUDE_DIR="${CASROOT}"/include/opencascade-7.5.1 + -DOCC_LIBRARY_DIR="${CASROOT}"/$(get_libdir)/opencascade-7.5.1 + ) + else + #