summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang E. Sanyer <ezzieyguywuf@gmail.com>2021-05-17 15:36:44 -0400
committerJoonas Niilola <juippis@gentoo.org>2021-06-04 10:38:36 +0300
commit947d701c21889771f1f6839f2b46d96789fcee59 (patch)
tree33aa695e06dd7112c33025ef87d52e8fa66ada26 /sci-libs
parentnet-analyzer/testssl: version bump 3.0.5 (diff)
downloadgentoo-947d701c21889771f1f6839f2b46d96789fcee59.tar.gz
gentoo-947d701c21889771f1f6839f2b46d96789fcee59.tar.bz2
gentoo-947d701c21889771f1f6839f2b46d96789fcee59.zip
sci-libs/opencascade: patch cmake config so that find_package works
Signed-off-by: Wolfgang E. Sanyer <ezzieyguywuf@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/20856 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'sci-libs')
-rw-r--r--sci-libs/opencascade/opencascade-7.5.1-r1.ebuild (renamed from sci-libs/opencascade/opencascade-7.5.1.ebuild)7
1 files changed, 7 insertions, 0 deletions
diff --git a/sci-libs/opencascade/opencascade-7.5.1.ebuild b/sci-libs/opencascade/opencascade-7.5.1-r1.ebuild
index 474b381f5561..88f0fd458886 100644
--- a/sci-libs/opencascade/opencascade-7.5.1.ebuild
+++ b/sci-libs/opencascade/opencascade-7.5.1-r1.ebuild
@@ -80,6 +80,13 @@ src_prepare() {
sed -e 's/\/lib\$/\/'$(get_libdir)'\$/' \
-i adm/templates/OpenCASCADEConfig.cmake.in || die
+
+ # There is an OCCT_UPDATE_TARGET_FILE cmake macro that fails due to some
+ # assumptions it makes about installation paths. Rather than fixing it, just
+ # get rid of the mechanism altogether - its purpose is to allow a
+ # side-by-side installation of release and debug libraries.
+ sed -e 's|\\${OCCT_INSTALL_BIN_LETTER}||' \
+ -i "adm/cmake/occt_toolkit.cmake"
}
src_configure() {