git: 8e7be7293a75 - main - cad/libgdsii: New port: C++ library and command-line utility for reading GDSII geometry files

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sun, 20 Nov 2022 06:22:45 UTC
The branch main has been updated by yuri:

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

commit 8e7be7293a75482272f879c8fec824ab689fac39
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-11-20 05:53:03 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-11-20 06:22:40 +0000

    cad/libgdsii: New port: C++ library and command-line utility for reading GDSII geometry files
---
 cad/Makefile           |  1 +
 cad/libgdsii/Makefile  | 26 ++++++++++++++++++++++++++
 cad/libgdsii/distinfo  |  3 +++
 cad/libgdsii/pkg-descr |  3 +++
 4 files changed, 33 insertions(+)

diff --git a/cad/Makefile b/cad/Makefile
index 0305f495969e..c618a23996d1 100644
--- a/cad/Makefile
+++ b/cad/Makefile
@@ -71,6 +71,7 @@
     SUBDIR += ldview
     SUBDIR += leocad
     SUBDIR += lepton-eda
+    SUBDIR += libgdsii
     SUBDIR += libopencad
     SUBDIR += librecad
     SUBDIR += libredwg
diff --git a/cad/libgdsii/Makefile b/cad/libgdsii/Makefile
new file mode 100644
index 000000000000..aee60b1704a8
--- /dev/null
+++ b/cad/libgdsii/Makefile
@@ -0,0 +1,26 @@
+PORTNAME=	libgdsii
+DISTVERSION=	0.21
+CATEGORIES=	cad
+MASTER_SITES=	https://github.com/HomerReid/libGDSII/releases/download/v${DISTVERSION}/
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	C++ library and command-line utility for reading GDSII geometry files
+WWW=		https://github.com/HomerReid/libGDSII
+
+LICENSE=	GPLv3
+LICENSE_FILE=	${WRKSRC}/COPYING
+
+USES=		autoreconf gmake libtool
+USE_LDCONFIG=	yes
+
+GNU_CONFIGURE=	yes
+
+PLIST_FILES=	bin/GDSIIConvert \
+		include/libGDSII.h \
+		lib/libGDSII.a \
+		lib/libGDSII.so \
+		lib/libGDSII.so.0 \
+		lib/libGDSII.so.0.0.0 \
+		share/libGDSII/examples/bend-flux/bend-flux.gds
+
+.include <bsd.port.mk>
diff --git a/cad/libgdsii/distinfo b/cad/libgdsii/distinfo
new file mode 100644
index 000000000000..f028cdb63d16
--- /dev/null
+++ b/cad/libgdsii/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1668922879
+SHA256 (libgdsii-0.21.tar.gz) = 31c90a4fb699746d051c0c597ef0543889c9f17b2a711fed398756ac4f1b1f4c
+SIZE (libgdsii-0.21.tar.gz) = 410747
diff --git a/cad/libgdsii/pkg-descr b/cad/libgdsii/pkg-descr
new file mode 100644
index 000000000000..6866136cf6c9
--- /dev/null
+++ b/cad/libgdsii/pkg-descr
@@ -0,0 +1,3 @@
+libGDSII is a C++ library for working with GDSII binary data files, intended
+primarily for use with the computational electromagnetism codes scuff-em and
+meep but sufficiently general-purpose to allow other uses as well.