git: 7cae27782845 - main - cad/qucsator: New port: Circuit simulator of the Qucs project

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sat, 09 Jul 2022 18:52:26 UTC
The branch main has been updated by yuri:

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

commit 7cae27782845a564810334dbbe8274f8fa445d33
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-07-09 18:51:46 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-07-09 18:52:24 +0000

    cad/qucsator: New port: Circuit simulator of the Qucs project
---
 cad/Makefile                            |  1 +
 cad/qucsator/Makefile                   | 22 +++++++++++++++++
 cad/qucsator/distinfo                   |  3 +++
 cad/qucsator/files/patch-CMakeLists.txt | 13 ++++++++++
 cad/qucsator/pkg-descr                  |  6 +++++
 cad/qucsator/pkg-plist                  | 42 +++++++++++++++++++++++++++++++++
 6 files changed, 87 insertions(+)

diff --git a/cad/Makefile b/cad/Makefile
index fba2694b47f4..0305f495969e 100644
--- a/cad/Makefile
+++ b/cad/Makefile
@@ -118,6 +118,7 @@
     SUBDIR += qmls
     SUBDIR += qrouter
     SUBDIR += qucs-s
+    SUBDIR += qucsator
     SUBDIR += repsnapper
     SUBDIR += rubygem-gdsii
     SUBDIR += scotch
diff --git a/cad/qucsator/Makefile b/cad/qucsator/Makefile
new file mode 100644
index 000000000000..ecb0002ca004
--- /dev/null
+++ b/cad/qucsator/Makefile
@@ -0,0 +1,22 @@
+PORTNAME=	qucsator
+DISTVERSION=	0.0.20-4
+DISTVERSIONSUFFIX=	-g22126bb9
+CATEGORIES=	cad
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Circuit simulator of the Qucs project
+
+LICENSE=	GPLv2
+LICENSE_FILE=	${WRKSRC}/COPYING
+
+BUILD_DEPENDS=	admsXml:cad/adms \
+		gperf:devel/gperf
+
+USES=		bison cmake compiler:c++11-lang
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	Qucs
+
+CXXFLAGS+=	-fPIC # workaround for https://github.com/Qucs/qucsator/issues/35
+
+.include <bsd.port.mk>
diff --git a/cad/qucsator/distinfo b/cad/qucsator/distinfo
new file mode 100644
index 000000000000..dd0f423cfb59
--- /dev/null
+++ b/cad/qucsator/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1657388798
+SHA256 (Qucs-qucsator-0.0.20-4-g22126bb9_GH0.tar.gz) = 7b58d1ed4094b4bdd7565f21e03420967e040fcd1dfdd2d405673363effa4351
+SIZE (Qucs-qucsator-0.0.20-4-g22126bb9_GH0.tar.gz) = 633272
diff --git a/cad/qucsator/files/patch-CMakeLists.txt b/cad/qucsator/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..6d37f60c7d63
--- /dev/null
+++ b/cad/qucsator/files/patch-CMakeLists.txt
@@ -0,0 +1,13 @@
+- pass compilation flags
+
+--- CMakeLists.txt.orig	2022-07-09 18:30:09 UTC
++++ CMakeLists.txt
+@@ -248,7 +248,7 @@ endif()
+ if(WIN32)
+   set(CMAKE_CXX_FLAGS "-Wall -std=c++0x -fpermissive -U__STRICT_ANSI__")
+ else()
+-  set(CMAKE_CXX_FLAGS "-Wall -std=c++11")
++  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -std=c++11")
+ endif()
+ 
+ # indiscriminate copy/paste from:
diff --git a/cad/qucsator/pkg-descr b/cad/qucsator/pkg-descr
new file mode 100644
index 000000000000..ba3473791943
--- /dev/null
+++ b/cad/qucsator/pkg-descr
@@ -0,0 +1,6 @@
+Qucsator is a command line driven circuit simulator. It takes a
+network list in a certain format as input and outputs a Qucs dataset.
+It has been programmed for usage in the Qucs project but can also be
+used by other applications.
+
+WWW: https://github.com/Qucs/qucsator
diff --git a/cad/qucsator/pkg-plist b/cad/qucsator/pkg-plist
new file mode 100644
index 000000000000..34a0caa513c9
--- /dev/null
+++ b/cad/qucsator/pkg-plist
@@ -0,0 +1,42 @@
+bin/qucsator
+bin/qucsconv
+include/qucs-core/analogfunction.xml
+include/qucs-core/characteristic.h
+include/qucs-core/circuit.h
+include/qucs-core/compat.h
+include/qucs-core/complex.h
+include/qucs-core/component.h
+include/qucs-core/component_id.h
+include/qucs-core/components.h
+include/qucs-core/config.h
+include/qucs-core/constants.h
+include/qucs-core/consts.h
+include/qucs-core/cpp2lib.makefile
+include/qucs-core/device.h
+include/qucs-core/integrator.h
+include/qucs-core/logging.h
+include/qucs-core/matrix.h
+include/qucs-core/net.h
+include/qucs-core/netdefs.h
+include/qucs-core/node.h
+include/qucs-core/object.h
+include/qucs-core/operatingpoint.h
+include/qucs-core/pair.h
+include/qucs-core/precision.h
+include/qucs-core/property.h
+include/qucs-core/ptrlist.h
+include/qucs-core/qucsMODULEcore.xml
+include/qucs-core/qucsMODULEdefs.xml
+include/qucs-core/qucsMODULEgui.xml
+include/qucs-core/qucsMODULEguiJSONsymbol.xml
+include/qucs-core/qucsVersion.xml
+include/qucs-core/qucs_interface.h
+include/qucs-core/qucs_typedefs.h
+include/qucs-core/real.h
+include/qucs-core/states.h
+include/qucs-core/va2cpp.makefile
+include/qucs-core/valuelist.h
+include/qucs-core/vector.h
+lib/libqucsator.so
+share/man/man1/qucsator.1.gz
+share/man/man1/qucsconv.1.gz