summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Ammerlaan <andrewammerlaan@gentoo.org>2021-06-05 16:13:57 +0200
committerAndrew Ammerlaan <andrewammerlaan@gentoo.org>2021-06-05 16:13:57 +0200
commit04dd713b4dbf8c7eb62a6598b1c826ed5e8e34f8 (patch)
tree6b4ef54aba21102443e09052d0f559c9b52c975b /media-gfx/freecad
parentdev-python/pulsectl: drop 21.5.14 (diff)
downloadgentoo-04dd713b4dbf8c7eb62a6598b1c826ed5e8e34f8.tar.gz
gentoo-04dd713b4dbf8c7eb62a6598b1c826ed5e8e34f8.tar.bz2
gentoo-04dd713b4dbf8c7eb62a6598b1c826ed5e8e34f8.zip
media-gfx/freecad: strip revision number from OCC version string
Otherwise it doesn't compile because it fails to find the dir Package-Manager: Portage-3.0.19, Repoman-3.0.3 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
Diffstat (limited to 'media-gfx/freecad')
-rw-r--r--media-gfx/freecad/freecad-0.19.2.ebuild1
-rw-r--r--media-gfx/freecad/freecad-9999.ebuild1
2 files changed, 2 insertions, 0 deletions
diff --git a/media-gfx/freecad/freecad-0.19.2.ebuild b/media-gfx/freecad/freecad-0.19.2.ebuild
index 99e81bfeeed4..dcceebb859a0 100644
--- a/media-gfx/freecad/freecad-0.19.2.ebuild
+++ b/media-gfx/freecad/freecad-0.19.2.ebuild
@@ -241,6 +241,7 @@ src_configure() {
# bug https://bugs.gentoo.org/788274
local OCC_P=$(best_version sci-libs/opencascade[vtk])
OCC_P=${OCC_P#sci-libs/}
+ OCC_P=${OCC_P%-r*}
mycmakeargs+=(
-DOCC_INCLUDE_DIR="${CASROOT}"/include/${OCC_P}
-DOCC_LIBRARY_DIR="${CASROOT}"/$(get_libdir)/${OCC_P}
diff --git a/media-gfx/freecad/freecad-9999.ebuild b/media-gfx/freecad/freecad-9999.ebuild
index 26f5cab4f42b..490b29d07939 100644
--- a/media-gfx/freecad/freecad-9999.ebuild
+++ b/media-gfx/freecad/freecad-9999.ebuild
@@ -239,6 +239,7 @@ src_configure() {
# bug https://bugs.gentoo.org/788274
local OCC_P=$(best_version sci-libs/opencascade[vtk])
OCC_P=${OCC_P#sci-libs/}
+ OCC_P=${OCC_P%-r*}
mycmakeargs+=(
-DOCC_INCLUDE_DIR="${CASROOT}"/include/${OCC_P}
-DOCC_LIBRARY_DIR="${CASROOT}"/$(get_libdir)/${OCC_P}