git: 9959a6a4cd35 - main - science/zx: New port: MQT ZX: A library for working with ZX-diagrams

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Wed, 02 Nov 2022 16:23:00 UTC
The branch main has been updated by yuri:

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

commit 9959a6a4cd35207f775e3f91efcef1e93008a495
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-11-02 04:29:13 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-11-02 16:22:57 +0000

    science/zx: New port: MQT ZX: A library for working with ZX-diagrams
---
 science/Makefile     |  1 +
 science/zx/Makefile  | 31 +++++++++++++++++++++++++++++++
 science/zx/distinfo  |  9 +++++++++
 science/zx/pkg-descr |  3 +++
 science/zx/pkg-plist |  8 ++++++++
 5 files changed, 52 insertions(+)

diff --git a/science/Makefile b/science/Makefile
index 832f4b446b50..cbfb80cbcf9d 100644
--- a/science/Makefile
+++ b/science/Makefile
@@ -473,5 +473,6 @@
     SUBDIR += xtb
     SUBDIR += yoda
     SUBDIR += zotero
+    SUBDIR += zx
 
 .include <bsd.port.subdir.mk>
diff --git a/science/zx/Makefile b/science/zx/Makefile
new file mode 100644
index 000000000000..0061dee5a10e
--- /dev/null
+++ b/science/zx/Makefile
@@ -0,0 +1,31 @@
+PORTNAME=	zx
+PORTVERSION=	g20221101
+CATEGORIES=	science # quantum-computing
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	MQT ZX: A library for working with ZX-diagrams
+WWW=		https://www.cda.cit.tum.de/research/quantum/
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+LIB_DEPENDS=	libgmp.so:math/gmp
+
+USES=		cmake:testing compiler:c++17-lang python:test
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	cda-tum
+GH_TAGNAME=	b01ba5e
+GH_TUPLE=	boostorg:config:2543ff1:boostorg_config/extern/boost/config \
+		boostorg:multiprecision:be4b8e8:boostorg_multiprecision/extern/boost/multiprecision \
+		google:googletest:3026483:googletest/extern/googletest
+
+CMAKE_ON=	BUILD_SHARED_LIBS
+CMAKE_OFF=	BUILD_ZX_TESTS
+CMAKE_TESTING_ON=	BUILD_ZX_TESTS
+
+do-install: # workaround for https://github.com/cda-tum/dd_package/issues/115
+	cd ${WRKSRC}/include && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/include
+	${INSTALL_LIB} ${BUILD_WRKSRC}/src/libzx.so ${STAGEDIR}${PREFIX}/lib
+
+.include <bsd.port.mk>
diff --git a/science/zx/distinfo b/science/zx/distinfo
new file mode 100644
index 000000000000..21d52858dc74
--- /dev/null
+++ b/science/zx/distinfo
@@ -0,0 +1,9 @@
+TIMESTAMP = 1667348044
+SHA256 (cda-tum-zx-g20221101-b01ba5e_GH0.tar.gz) = 4f106f5bb3f8651e91e25fd15c353f7d08c77bb34b5bb61c138a11cca3a7a50f
+SIZE (cda-tum-zx-g20221101-b01ba5e_GH0.tar.gz) = 26179
+SHA256 (boostorg-config-2543ff1_GH0.tar.gz) = aed1996926016faee81de7219a74f9fd41c9c3a4bb292f8936b54245b57ad3c2
+SIZE (boostorg-config-2543ff1_GH0.tar.gz) = 379371
+SHA256 (boostorg-multiprecision-be4b8e8_GH0.tar.gz) = 78b681530deb9c911f485f70d438099b9a7f7e63f61dba572ed68f32306e35c2
+SIZE (boostorg-multiprecision-be4b8e8_GH0.tar.gz) = 4144005
+SHA256 (google-googletest-3026483_GH0.tar.gz) = 1790cf41d6b9b023e1751888155b4fe1a20cd5b9842c3aa67633aac4b2610ba2
+SIZE (google-googletest-3026483_GH0.tar.gz) = 859168
diff --git a/science/zx/pkg-descr b/science/zx/pkg-descr
new file mode 100644
index 000000000000..51d87020ae3a
--- /dev/null
+++ b/science/zx/pkg-descr
@@ -0,0 +1,3 @@
+zx is a library for working with ZX-diagrams developed by the Chair for Design
+Automation at the Technical University of Munich as part of the Munich Quantum
+Toolkit (MQT).
diff --git a/science/zx/pkg-plist b/science/zx/pkg-plist
new file mode 100644
index 000000000000..e8e6b0491112
--- /dev/null
+++ b/science/zx/pkg-plist
@@ -0,0 +1,8 @@
+include/Definitions.hpp
+include/Expression.hpp
+include/Rational.hpp
+include/Rules.hpp
+include/Simplify.hpp
+include/Utils.hpp
+include/ZXDiagram.hpp
+lib/libzx.so