git: 7678c45899ea - main - cad/py-ocp: Remove expired port

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Mon, 11 Sep 2023 06:17:21 UTC
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=7678c45899ea7f40ddc2e0c09bb5695bfa18169c

commit 7678c45899ea7f40ddc2e0c09bb5695bfa18169c
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-09-05 05:23:07 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-09-11 06:17:01 +0000

    cad/py-ocp: Remove expired port
    
    2023-03-21 cad/py-ocp: Broken since 2021
---
 MOVED                                        |  1 +
 cad/Makefile                                 |  1 -
 cad/py-ocp/Makefile                          | 45 ----------------------------
 cad/py-ocp/distinfo                          |  3 --
 cad/py-ocp/files/patch-FindOpenCascade.cmake | 12 --------
 cad/py-ocp/files/patch-Standard.cpp          | 17 -----------
 cad/py-ocp/pkg-descr                         |  2 --
 7 files changed, 1 insertion(+), 80 deletions(-)

diff --git a/MOVED b/MOVED
index a3aa5d5bcb43..629da3f2295b 100644
--- a/MOVED
+++ b/MOVED
@@ -7852,3 +7852,4 @@ net-p2p/transmission-qt|net-p2p/transmission|2023-09-10|Moved to a flavored vers
 net-p2p/transmission-utils|net-p2p/transmission|2023-09-10|Moved to a flavored version
 www/transmission-web|net-p2p/transmission|2023-09-10|Moved to the daemon flavor
 devel/rubygem-cucumber-tag-expressions4|devel/rubygem-cucumber-tag-expressions|2023-09-11|Remove obsoleted port. Use devel/rubygem-cucumber-tag-expressions instead
+cad/py-ocp||2023-09-05|Has expired: Broken since 2021
diff --git a/cad/Makefile b/cad/Makefile
index a6137d695fca..2d54cd764cde 100644
--- a/cad/Makefile
+++ b/cad/Makefile
@@ -112,7 +112,6 @@
     SUBDIR += py-gdstk
     SUBDIR += py-gmsh
     SUBDIR += py-lcapy
-    SUBDIR += py-ocp
     SUBDIR += py-phidl
     SUBDIR += py-pyfda
     SUBDIR += py-pygmsh
diff --git a/cad/py-ocp/Makefile b/cad/py-ocp/Makefile
deleted file mode 100644
index 82531538af01..000000000000
--- a/cad/py-ocp/Makefile
+++ /dev/null
@@ -1,45 +0,0 @@
-PORTNAME=	ocp
-DISTVERSION=	7.4-RC2
-PORTREVISION=	6
-CATEGORIES=	cad
-# Direct access to github is needed because the release added an extra archive which
-# we need to build from, rather than the initial release.
-MASTER_SITES=	https://github.com/CadQuery/OCP/releases/download/${DISTVERSION}/
-PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
-DISTNAME=	OCP_src_Linux
-
-MAINTAINER=	ports@nicandneal.net
-COMMENT=	Python wrapper for OCCT generated using pywrap
-WWW=		https://github.com/CadQuery/OCP
-
-BROKEN=		Mismatch between OpenCascase (7.5) and py-ocp (7.4)
-DEPRECATED=	Broken since 2021
-EXPIRATION_DATE=	2023-03-21
-
-LICENSE=	APACHE20
-
-PATCH_DEPENDS=	${LOCALBASE}/include/OpenCASCADE/OpenGl_HaltonSampler.hxx:cad/opencascade
-LIB_DEPENDS=	libTKernel.so:cad/opencascade
-BUILD_DEPENDS=	${LOCALBASE}/share/cmake/pybind11/pybind11Config.cmake:devel/pybind11 \
-		${PYTHON_SITELIBDIR}/pybind11:devel/py-pybind11@${PY_FLAVOR}
-
-USES=		cmake compiler:c++11-lang gl python zip
-USE_GL=		gl glu glut
-
-WRKSRC=		${WRKDIR}/OCP_src_Ubuntu-16.04
-
-OCCT=		${LOCALBASE}/include/OpenCASCADE
-OCCT_LOCAL=	${WRKSRC}/OCCT
-
-CMAKE_ARGS=	-DOPENCASCADE_INCLUDE_DIR=${OCCT} \
-		-DPYTHON_EXECUTABLE=${PYTHON_CMD}
-
-USE_PYTHON=	flavors
-
-PLIST_FILES=	${PYTHON_SITELIBDIR}/OCP.so
-
-do-install:
-	@${MKDIR} ${STAGEDIR}${PYTHON_SITELIBDIR}/
-	${INSTALL_LIB} ${BUILD_WRKSRC}/OCP.so ${STAGEDIR}${PYTHON_SITELIBDIR}
-
-.include <bsd.port.mk>
diff --git a/cad/py-ocp/distinfo b/cad/py-ocp/distinfo
deleted file mode 100644
index 01fc842b7de9..000000000000
--- a/cad/py-ocp/distinfo
+++ /dev/null
@@ -1,3 +0,0 @@
-TIMESTAMP = 1595488164
-SHA256 (OCP_src_Linux.zip) = 126953106d7e52d3ec6c606ff3a34ecde5c6598899ab0c31279e185771304192
-SIZE (OCP_src_Linux.zip) = 50341316
diff --git a/cad/py-ocp/files/patch-FindOpenCascade.cmake b/cad/py-ocp/files/patch-FindOpenCascade.cmake
deleted file mode 100644
index 4010ac534ad6..000000000000
--- a/cad/py-ocp/files/patch-FindOpenCascade.cmake
+++ /dev/null
@@ -1,12 +0,0 @@
---- FindOpenCascade.cmake.orig	2020-06-12 09:48:04 UTC
-+++ FindOpenCascade.cmake
-@@ -69,6 +69,6 @@ foreach( MOD ${OCCT_MODULES})
- 
- endforeach()
- 
--target_include_directories( OPENCASCADE INTERFACE ${OPENCASCADE_INCLUDE_DIR})
-+target_include_directories( OPENCASCADE INTERFACE OCCT ${OPENCASCADE_INCLUDE_DIR})
- 
--find_package_handle_standard_args( OPENCASCADE DEFAULT_MSG OPENCASCADE_LIBRARIES OPENCASCADE_INCLUDE_DIR )
-\ No newline at end of file
-+find_package_handle_standard_args( OPENCASCADE DEFAULT_MSG OPENCASCADE_LIBRARIES OPENCASCADE_INCLUDE_DIR )
diff --git a/cad/py-ocp/files/patch-Standard.cpp b/cad/py-ocp/files/patch-Standard.cpp
deleted file mode 100644
index 1d228622f44b..000000000000
--- a/cad/py-ocp/files/patch-Standard.cpp
+++ /dev/null
@@ -1,17 +0,0 @@
---- Standard.cpp.orig	2020-05-29 13:26:32 UTC
-+++ Standard.cpp
-@@ -902,10 +902,10 @@ py::module m = static_cast<py::module>(main_module.att
-           R"#(None)#"  , py::arg("theOne"),  py::arg("theTwo")
-           );
- // ./opencascade/Standard_Time.hxx
--    m.def("IsEqual",
--          (Standard_Boolean (*)( const Standard_Time ,  const Standard_Time  ))  static_cast<Standard_Boolean (*)( const Standard_Time ,  const Standard_Time  )>(&IsEqual),
--          R"#(None)#"  , py::arg("theOne"),  py::arg("theTwo")
--          );
-+//    m.def("IsEqual",
-+//          (Standard_Boolean (*)( const Standard_Time ,  const Standard_Time  ))  static_cast<Standard_Boolean (*)( const Standard_Time ,  const Standard_Time  )>(&IsEqual),
-+//          R"#(None)#"  , py::arg("theOne"),  py::arg("theTwo")
-+//          );
- // ./opencascade/Standard_NullValue.hxx
- // ./opencascade/Standard_DefineHandle.hxx
- // ./opencascade/Standard_Mutex.hxx
diff --git a/cad/py-ocp/pkg-descr b/cad/py-ocp/pkg-descr
deleted file mode 100644
index 8ab66bbd8d9e..000000000000
--- a/cad/py-ocp/pkg-descr
+++ /dev/null
@@ -1,2 +0,0 @@
-OCP is a Python wrapper for OCCT (OpenCascade) generated using pywrap
-primarily used by CadQuery.