git: c58e37da7c08 - main - math/topologic: New port: Library for topological representations of architectural spaces

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sun, 30 Jan 2022 23:23:50 UTC
The branch main has been updated by yuri:

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

commit c58e37da7c086c3451b853b3e2ba77f89c382121
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-01-30 23:21:19 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-01-30 23:23:47 +0000

    math/topologic: New port: Library for topological representations of architectural spaces
---
 math/Makefile                                      |  1 +
 math/topologic/Makefile                            | 26 ++++++++++
 math/topologic/distinfo                            |  3 ++
 .../files/patch-TopologicCore_CMakeLists.txt       | 18 +++++++
 math/topologic/pkg-descr                           |  5 ++
 math/topologic/pkg-plist                           | 57 ++++++++++++++++++++++
 6 files changed, 110 insertions(+)

diff --git a/math/Makefile b/math/Makefile
index 522c63fbf140..e96e08300c18 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -1056,6 +1056,7 @@
     SUBDIR += tomsfastmath
     SUBDIR += topaz
     SUBDIR += topcom
+    SUBDIR += topologic
     SUBDIR += triangle
     SUBDIR += trlan
     SUBDIR += trlib
diff --git a/math/topologic/Makefile b/math/topologic/Makefile
new file mode 100644
index 000000000000..1f91856aebda
--- /dev/null
+++ b/math/topologic/Makefile
@@ -0,0 +1,26 @@
+PORTNAME=	topologic
+DISTVERSIONPREFIX=	v
+DISTVERSION=	0.5.0-21
+DISTVERSIONSUFFIX=	-gae5ad5d
+CATEGORIES=	math
+PKGNAMESUFFIX=	-space-modeling-library
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Library for topological representations of architectural spaces
+
+LICENSE=	AGPLv3
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+LIB_DEPENDS=	libTKernel.so:cad/opencascade \
+		libuuid.so:misc/e2fsprogs-libuuid
+
+USES=		cmake localbase:ldflags
+USE_LDCONFIG=	yes
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	wassimj
+GH_PROJECT=	Topologic
+
+CMAKE_ARGS=	-DOCC_INCLUDE_DIR=${LOCALBASE}/include/OpenCASCADE
+
+.include <bsd.port.mk>
diff --git a/math/topologic/distinfo b/math/topologic/distinfo
new file mode 100644
index 000000000000..c08d12fe35f8
--- /dev/null
+++ b/math/topologic/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1643537818
+SHA256 (wassimj-Topologic-v0.5.0-21-gae5ad5d_GH0.tar.gz) = 00df6ecdcef44d632d7eedbcfb02d4388f93d8679f7000bf821ce9675dd4a19e
+SIZE (wassimj-Topologic-v0.5.0-21-gae5ad5d_GH0.tar.gz) = 335006
diff --git a/math/topologic/files/patch-TopologicCore_CMakeLists.txt b/math/topologic/files/patch-TopologicCore_CMakeLists.txt
new file mode 100644
index 000000000000..5f694111c83a
--- /dev/null
+++ b/math/topologic/files/patch-TopologicCore_CMakeLists.txt
@@ -0,0 +1,18 @@
+--- TopologicCore/CMakeLists.txt.orig	2022-01-30 22:24:17 UTC
++++ TopologicCore/CMakeLists.txt
+@@ -378,6 +378,7 @@ endif()
+ ################################################################################
+ # Post build events
+ ################################################################################
++if (FALSE)
+ if("${CMAKE_VS_PLATFORM_NAME}" STREQUAL "Any CPU")
+     add_custom_command_if(
+         TARGET ${PROJECT_NAME}
+@@ -414,6 +415,7 @@ elseif("${CMAKE_VS_PLATFORM_NAME}" STREQUAL "x86")
+         COMMANDS
+         COMMAND $<CONFIG:Release> copy "$<SHELL_PATH:${CMAKE_SOURCE_DIR}/>references\\opencascade-7.4.0\\win32\\vc14\\bin\\*.dll" "$<SHELL_PATH:${CMAKE_SOURCE_DIR}/>output\\${CMAKE_VS_PLATFORM_NAME}\\$<CONFIG>"
+     )
++endif()
+ endif()
+ 
+ ################################################################################
diff --git a/math/topologic/pkg-descr b/math/topologic/pkg-descr
new file mode 100644
index 000000000000..533d401bc722
--- /dev/null
+++ b/math/topologic/pkg-descr
@@ -0,0 +1,5 @@
+Topologic is a software modelling library enabling hierarchical and
+topological representations of architectural spaces, buildings and
+artefacts through non-manifold topology.
+
+WWW: https://topologic.app/
diff --git a/math/topologic/pkg-plist b/math/topologic/pkg-plist
new file mode 100644
index 000000000000..dbdec39b1e79
--- /dev/null
+++ b/math/topologic/pkg-plist
@@ -0,0 +1,57 @@
+include/TopologicCore/About.h
+include/TopologicCore/Aperture.h
+include/TopologicCore/ApertureFactory.h
+include/TopologicCore/Attribute.h
+include/TopologicCore/AttributeManager.h
+include/TopologicCore/Bitwise.h
+include/TopologicCore/Cell.h
+include/TopologicCore/CellComplex.h
+include/TopologicCore/CellComplexFactory.h
+include/TopologicCore/CellFactory.h
+include/TopologicCore/Cluster.h
+include/TopologicCore/ClusterFactory.h
+include/TopologicCore/ContentManager.h
+include/TopologicCore/Context.h
+include/TopologicCore/ContextManager.h
+include/TopologicCore/Dictionary.h
+include/TopologicCore/DoubleAttribute.h
+include/TopologicCore/Edge.h
+include/TopologicCore/EdgeFactory.h
+include/TopologicCore/Face.h
+include/TopologicCore/FaceFactory.h
+include/TopologicCore/Geometry.h
+include/TopologicCore/GlobalCluster.h
+include/TopologicCore/Graph.h
+include/TopologicCore/InstanceGUIDManager.h
+include/TopologicCore/IntAttribute.h
+include/TopologicCore/Line.h
+include/TopologicCore/ListAttribute.h
+include/TopologicCore/NurbsCurve.h
+include/TopologicCore/NurbsSurface.h
+include/TopologicCore/PlanarSurface.h
+include/TopologicCore/Shell.h
+include/TopologicCore/ShellFactory.h
+include/TopologicCore/StringAttribute.h
+include/TopologicCore/Surface.h
+include/TopologicCore/TopologicalQuery.h
+include/TopologicCore/Topology.h
+include/TopologicCore/TopologyFactory.h
+include/TopologicCore/TopologyFactoryManager.h
+include/TopologicCore/Utilities.h
+include/TopologicCore/Utilities/CellUtility.h
+include/TopologicCore/Utilities/Direction.h
+include/TopologicCore/Utilities/EdgeUtility.h
+include/TopologicCore/Utilities/FaceUtility.h
+include/TopologicCore/Utilities/ShellUtility.h
+include/TopologicCore/Utilities/TopologyUtility.h
+include/TopologicCore/Utilities/TransformationMatrix2D.h
+include/TopologicCore/Utilities/Vector.h
+include/TopologicCore/Utilities/VertexUtility.h
+include/TopologicCore/Utilities/WireUtility.h
+include/TopologicCore/Vertex.h
+include/TopologicCore/VertexFactory.h
+include/TopologicCore/Wire.h
+include/TopologicCore/WireFactory.h
+lib/libTopologicCore.so
+lib/libTopologicCore.so.0
+lib/libTopologicCore.so.0.0.0