git: e7e2d494e8e8 - main - devel/libheinz: New port: C++ base library of Heinz Maier-Leibnitz Zentrum

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Tue, 24 Jan 2023 08:34:08 UTC
The branch main has been updated by yuri:

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

commit e7e2d494e8e89c8b1299437d0acbafec6fb4b65e
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-01-24 08:31:01 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-01-24 08:33:50 +0000

    devel/libheinz: New port: C++ base library of Heinz Maier-Leibnitz Zentrum
---
 devel/Makefile                            |  1 +
 devel/libheinz/Makefile                   | 26 ++++++++++++++++++++++++++
 devel/libheinz/distinfo                   |  3 +++
 devel/libheinz/files/patch-CMakeLists.txt | 12 ++++++++++++
 devel/libheinz/pkg-descr                  |  2 ++
 5 files changed, 44 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 8d1d7197a1da..a177c74e25b4 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -1255,6 +1255,7 @@
     SUBDIR += libgudev
     SUBDIR += libgusb
     SUBDIR += libgutenfetch
+    SUBDIR += libheinz
     SUBDIR += libhoard
     SUBDIR += libhtp
     SUBDIR += libhyve-remote
diff --git a/devel/libheinz/Makefile b/devel/libheinz/Makefile
new file mode 100644
index 000000000000..f65687d54d72
--- /dev/null
+++ b/devel/libheinz/Makefile
@@ -0,0 +1,26 @@
+PORTNAME=	libheinz
+DISTVERSION=	0.2.0
+CATEGORIES=	devel
+MASTER_SITES=	https://jugit.fz-juelich.de/mlz/${PORTNAME}/-/archive/v${DISTVERSION}/
+DISTNAME=	${PORTNAME}-v${DISTVERSION}
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	C++ base library of Heinz Maier-Leibnitz Zentrum
+WWW=		https://jugit.fz-juelich.de/mlz/libheinz
+
+LICENSE=	MIT
+
+USES=		cmake:testing
+
+CMAKE_OFF=	BUILD_TESTING
+CMAKE_TESTING_ON=	BUILD_TESTING
+
+NO_ARCH=	yes
+
+PLIST_FILES=	cmake/LibHeinzConfig.cmake \
+		cmake/LibHeinzConfigVersion.cmake \
+		include/heinz/Complex.h \
+		include/heinz/Rotations3D.h \
+		include/heinz/Vectors3D.h
+
+.include <bsd.port.mk>
diff --git a/devel/libheinz/distinfo b/devel/libheinz/distinfo
new file mode 100644
index 000000000000..2c496f70b2cd
--- /dev/null
+++ b/devel/libheinz/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1674545526
+SHA256 (libheinz-v0.2.0.tar.gz) = 895b55c98ee5fbe14e3b990c5393f98c6789ee6b57d35d72f6c75b9d5911e7e0
+SIZE (libheinz-v0.2.0.tar.gz) = 464422
diff --git a/devel/libheinz/files/patch-CMakeLists.txt b/devel/libheinz/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..84a8e57010c1
--- /dev/null
+++ b/devel/libheinz/files/patch-CMakeLists.txt
@@ -0,0 +1,12 @@
+--- CMakeLists.txt.orig	2023-01-24 07:32:58 UTC
++++ CMakeLists.txt
+@@ -35,7 +35,9 @@ endif()
+ include(CTest)
+ 
+ add_subdirectory(inc)
++if (BUILD_TESTING)
+ add_subdirectory(test)
++endif()
+ 
+ ## CPack settings.
+ 
diff --git a/devel/libheinz/pkg-descr b/devel/libheinz/pkg-descr
new file mode 100644
index 000000000000..03d7fd0551ee
--- /dev/null
+++ b/devel/libheinz/pkg-descr
@@ -0,0 +1,2 @@
+libheinz is a C++ base library used in software developed at
+Heinz Maier-Leibnitz Zentrum.