git: 3f197bbce4da - main - cad/opencascade: fix location of cmake files

From: Thierry Thomas <thierry_at_FreeBSD.org>
Date: Sun, 05 Nov 2023 13:10:15 UTC
The branch main has been updated by thierry:

URL: https://cgit.FreeBSD.org/ports/commit/?id=3f197bbce4da6ec6f860448653f4a2d2e9b25a11

commit 3f197bbce4da6ec6f860448653f4a2d2e9b25a11
Author:     Thierry Thomas <thierry@FreeBSD.org>
AuthorDate: 2023-11-05 13:07:18 +0000
Commit:     Thierry Thomas <thierry@FreeBSD.org>
CommitDate: 2023-11-05 13:07:18 +0000

    cad/opencascade: fix location of cmake files
    
    PR:             274834
    Reported by:    yuri
---
 cad/opencascade/Makefile  |  7 ++++++-
 cad/opencascade/pkg-plist | 34 +++++++++++++++++-----------------
 2 files changed, 23 insertions(+), 18 deletions(-)

diff --git a/cad/opencascade/Makefile b/cad/opencascade/Makefile
index 31c6a86d9bd9..347d5cfbe0d6 100644
--- a/cad/opencascade/Makefile
+++ b/cad/opencascade/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	opencascade
 DISTVERSION=	7.7.0
-PORTREVISION=	7
+PORTREVISION=	8
 CATEGORIES=	cad science
 MASTER_SITES=	LOCAL/thierry
 
@@ -164,6 +164,11 @@ pre-configure:
 post-build-DOXYGEN-on:
 	(cd ${WRKSRC} && ./gendoc -overview)
 
+post-stage:
+	${MKDIR} ${STAGEDIR}${PREFIX}/lib/cmake/OpenCASCADE
+	${MV} ${STAGEDIR}${PREFIX}/lib/cmake/*.cmake	\
+		${STAGEDIR}${PREFIX}/lib/cmake/OpenCASCADE
+
 post-install:
 	${MV} ${STAGEDIR}${OCCROOT}/bin/DRAWEXE-${DISTVERSION:C/-beta//} ${STAGEDIR}${PREFIX}/bin/DRAWEXE
 	${RLN} ${STAGEDIR}${PREFIX}/bin/DRAWEXE ${STAGEDIR}${OCCROOT}/bin
diff --git a/cad/opencascade/pkg-plist b/cad/opencascade/pkg-plist
index 35d15c39d3e1..cbc4af492a96 100644
--- a/cad/opencascade/pkg-plist
+++ b/cad/opencascade/pkg-plist
@@ -27620,23 +27620,23 @@ include/OpenCASCADE/math_Uzawa.lxx
 include/OpenCASCADE/math_ValueAndWeight.hxx
 include/OpenCASCADE/math_Vector.hxx
 include/OpenCASCADE/step.tab.hxx
-lib/cmake/OpenCASCADEApplicationFrameworkTargets-%%CMAKE_BUILD_TYPE%%.cmake
-lib/cmake/OpenCASCADEApplicationFrameworkTargets.cmake
-lib/cmake/OpenCASCADECompileDefinitionsAndFlags-%%CMAKE_BUILD_TYPE%%.cmake
-lib/cmake/OpenCASCADEConfig.cmake
-lib/cmake/OpenCASCADEConfigVersion.cmake
-lib/cmake/OpenCASCADEDataExchangeTargets-%%CMAKE_BUILD_TYPE%%.cmake
-lib/cmake/OpenCASCADEDataExchangeTargets.cmake
-lib/cmake/OpenCASCADEDrawTargets-%%CMAKE_BUILD_TYPE%%.cmake
-lib/cmake/OpenCASCADEDrawTargets.cmake
-lib/cmake/OpenCASCADEFoundationClassesTargets-%%CMAKE_BUILD_TYPE%%.cmake
-lib/cmake/OpenCASCADEFoundationClassesTargets.cmake
-lib/cmake/OpenCASCADEModelingAlgorithmsTargets-%%CMAKE_BUILD_TYPE%%.cmake
-lib/cmake/OpenCASCADEModelingAlgorithmsTargets.cmake
-lib/cmake/OpenCASCADEModelingDataTargets-%%CMAKE_BUILD_TYPE%%.cmake
-lib/cmake/OpenCASCADEModelingDataTargets.cmake
-lib/cmake/OpenCASCADEVisualizationTargets-%%CMAKE_BUILD_TYPE%%.cmake
-lib/cmake/OpenCASCADEVisualizationTargets.cmake
+lib/cmake/OpenCASCADE/OpenCASCADEApplicationFrameworkTargets-%%CMAKE_BUILD_TYPE%%.cmake
+lib/cmake/OpenCASCADE/OpenCASCADEApplicationFrameworkTargets.cmake
+lib/cmake/OpenCASCADE/OpenCASCADECompileDefinitionsAndFlags-%%CMAKE_BUILD_TYPE%%.cmake
+lib/cmake/OpenCASCADE/OpenCASCADEConfig.cmake
+lib/cmake/OpenCASCADE/OpenCASCADEConfigVersion.cmake
+lib/cmake/OpenCASCADE/OpenCASCADEDataExchangeTargets-%%CMAKE_BUILD_TYPE%%.cmake
+lib/cmake/OpenCASCADE/OpenCASCADEDataExchangeTargets.cmake
+lib/cmake/OpenCASCADE/OpenCASCADEDrawTargets-%%CMAKE_BUILD_TYPE%%.cmake
+lib/cmake/OpenCASCADE/OpenCASCADEDrawTargets.cmake
+lib/cmake/OpenCASCADE/OpenCASCADEFoundationClassesTargets-%%CMAKE_BUILD_TYPE%%.cmake
+lib/cmake/OpenCASCADE/OpenCASCADEFoundationClassesTargets.cmake
+lib/cmake/OpenCASCADE/OpenCASCADEModelingAlgorithmsTargets-%%CMAKE_BUILD_TYPE%%.cmake
+lib/cmake/OpenCASCADE/OpenCASCADEModelingAlgorithmsTargets.cmake
+lib/cmake/OpenCASCADE/OpenCASCADEModelingDataTargets-%%CMAKE_BUILD_TYPE%%.cmake
+lib/cmake/OpenCASCADE/OpenCASCADEModelingDataTargets.cmake
+lib/cmake/OpenCASCADE/OpenCASCADEVisualizationTargets-%%CMAKE_BUILD_TYPE%%.cmake
+lib/cmake/OpenCASCADE/OpenCASCADEVisualizationTargets.cmake
 lib/libTKBO.so
 lib/libTKBO.so.%%VE%%
 lib/libTKBO.so.%%VER%%