git: 685fabbfb53b - main - devel/qschematic: New port: Qt/C++ library providing widgets for drawing diagrams

From: Nuno Teixeira <eduardo_at_FreeBSD.org>
Date: Wed, 27 Jul 2022 15:31:30 UTC
The branch main has been updated by eduardo:

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

commit 685fabbfb53b3f7cea47193e83a4fd9b8fdeec0f
Author:     Joel Bodenmann <jbo@insane.engineer>
AuthorDate: 2022-07-27 15:26:37 +0000
Commit:     Nuno Teixeira <eduardo@FreeBSD.org>
CommitDate: 2022-07-27 15:31:04 +0000

    devel/qschematic: New port: Qt/C++ library providing widgets for drawing diagrams
    
     - submitter becomes maintainer
    
    QSchematic is a C++ library providing Qt widgets to easily draw diagrams and
    schematics in a Qt application. It uses Qt's graphics view framework.
    
    The library interface allows for easy customization of existing items and adding
    new custom items such as wires, nodes, connectors and similar.
    
    Drawn diagrams/schematics can be easily serialized to and from XML. A built-in
    netlist generator is provided to build a netlist form a drawn diagram/schematic.
    
    WWW: https://github.com/simulton/qschematic
    
    PR:             265449
---
 devel/Makefile             |  1 +
 devel/qschematic/Makefile  | 23 +++++++++++++++++++++++
 devel/qschematic/distinfo  |  3 +++
 devel/qschematic/pkg-descr | 10 ++++++++++
 devel/qschematic/pkg-plist | 44 ++++++++++++++++++++++++++++++++++++++++++++
 5 files changed, 81 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 1598f4f1b638..2d508fac64bd 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -5558,6 +5558,7 @@
     SUBDIR += qgit
     SUBDIR += qjson
     SUBDIR += qmake
+    SUBDIR += qschematic
     SUBDIR += qscintilla2-designerplugin-qt5
     SUBDIR += qscintilla2-qt5
     SUBDIR += qt-maybe
diff --git a/devel/qschematic/Makefile b/devel/qschematic/Makefile
new file mode 100644
index 000000000000..eaa0ffd7c2d4
--- /dev/null
+++ b/devel/qschematic/Makefile
@@ -0,0 +1,23 @@
+PORTNAME=	qschematic
+PORTVERSION=	1.3.1
+CATEGORIES=	devel
+
+MAINTAINER=	jbo@insane.engineer
+COMMENT=	Qt/C++ library providing widgets for drawing diagrams
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/license.txt
+
+LIB_DEPENDS=	libgpds.so:devel/gpds
+
+USES=		cmake compiler:c++17-lang qt:5
+USE_QT=		buildtools_build core gui qmake_build widgets
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	simulton
+GH_PROJECT=	QSchematic
+
+CMAKE_OFF=	QSCHEMATIC_BUILD_DEMO QSCHEMATIC_DEPENDENCY_GPDS_DOWNLOAD
+CMAKE_ARGS=	-DQSCHEMATIC_DEPENDENCY_GPDS_TARGET:STRING="gpds::gpds-shared"
+
+.include <bsd.port.mk>
diff --git a/devel/qschematic/distinfo b/devel/qschematic/distinfo
new file mode 100644
index 000000000000..a9daf5a3e35b
--- /dev/null
+++ b/devel/qschematic/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1658683102
+SHA256 (simulton-QSchematic-1.3.1_GH0.tar.gz) = bc907f7484e4aba12ccbe3ac81d7b2e217092ccdb0b21679485587289c9bbec9
+SIZE (simulton-QSchematic-1.3.1_GH0.tar.gz) = 1452657
diff --git a/devel/qschematic/pkg-descr b/devel/qschematic/pkg-descr
new file mode 100644
index 000000000000..56f628d89631
--- /dev/null
+++ b/devel/qschematic/pkg-descr
@@ -0,0 +1,10 @@
+QSchematic is a C++ library providing Qt widgets to easily draw diagrams and
+schematics in a Qt application. It uses Qt's graphics view framework.
+
+The library interface allows for easy customization of existing items and adding
+new custom items such as wires, nodes, connectors and similar.
+
+Drawn diagrams/schematics can be easily serialized to and from XML. A built-in
+netlist generator is provided to build a netlist form a drawn diagram/schematic.
+
+WWW: https://github.com/simulton/qschematic
diff --git a/devel/qschematic/pkg-plist b/devel/qschematic/pkg-plist
new file mode 100644
index 000000000000..37016a96037a
--- /dev/null
+++ b/devel/qschematic/pkg-plist
@@ -0,0 +1,44 @@
+include/qschematic/commands/commandbase.h
+include/qschematic/commands/commanditemadd.h
+include/qschematic/commands/commanditemmove.h
+include/qschematic/commands/commanditemremove.h
+include/qschematic/commands/commanditemvisibility.h
+include/qschematic/commands/commandlabelrename.h
+include/qschematic/commands/commandnoderesize.h
+include/qschematic/commands/commandnoderotate.h
+include/qschematic/commands/commands.h
+include/qschematic/commands/commandwirenetrename.h
+include/qschematic/commands/commandwirepointmove.h
+include/qschematic/items/connector.h
+include/qschematic/items/item.h
+include/qschematic/items/itemfactory.h
+include/qschematic/items/itemfunctions.h
+include/qschematic/items/itemmimedata.h
+include/qschematic/items/label.h
+include/qschematic/items/node.h
+include/qschematic/items/splinewire.h
+include/qschematic/items/wire.h
+include/qschematic/items/wirenet.h
+include/qschematic/items/wireroundedcorners.h
+include/qschematic/netlist.h
+include/qschematic/netlistgenerator.h
+include/qschematic/scene.h
+include/qschematic/settings.h
+include/qschematic/types.h
+include/qschematic/utils.h
+include/qschematic/utils/itemscontainerutils.h
+include/qschematic/utils/itemscustodian.h
+include/qschematic/view.h
+include/qschematic/wire_system/connectable.h
+include/qschematic/wire_system/line.h
+include/qschematic/wire_system/manager.h
+include/qschematic/wire_system/net.h
+include/qschematic/wire_system/point.h
+include/qschematic/wire_system/wire.h
+lib/cmake/qschematic/qschematic-config-version.cmake
+lib/cmake/qschematic/qschematic-config.cmake
+lib/cmake/qschematic/qschematic-targets-%%CMAKE_BUILD_TYPE%%.cmake
+lib/cmake/qschematic/qschematic-targets.cmake
+lib/libqschematic.a
+lib/libqschematic.so
+lib/libqschematic.so.1.3.1