svn commit: r540562 - in head/graphics: . qvge qvge/files
Alexey Dokuchaev
danfe at FreeBSD.org
Sat Jun 27 07:11:53 UTC 2020
Author: danfe
Date: Sat Jun 27 07:11:51 2020
New Revision: 540562
URL: https://svnweb.freebsd.org/changeset/ports/540562
Log:
qvge is a multi-platform graph editor written in C++/Qt. Its main goal
is to make possible visually edit two-dimensional graphs in a simple and
intuitive way.
WWW: https://github.com/ArsMasiuk/qvge
Added:
head/graphics/qvge/
head/graphics/qvge/Makefile (contents, props changed)
head/graphics/qvge/distinfo (contents, props changed)
head/graphics/qvge/files/
head/graphics/qvge/files/patch-app.pri (contents, props changed)
head/graphics/qvge/files/patch-commonui_ogdf_COGDFLayout.cpp (contents, props changed)
head/graphics/qvge/files/patch-qvge_CNodeEditorScene.cpp (contents, props changed)
head/graphics/qvge/pkg-descr (contents, props changed)
Modified:
head/graphics/Makefile
Modified: head/graphics/Makefile
==============================================================================
--- head/graphics/Makefile Sat Jun 27 07:09:26 2020 (r540561)
+++ head/graphics/Makefile Sat Jun 27 07:11:51 2020 (r540562)
@@ -908,6 +908,7 @@
SUBDIR += quat-gui
SUBDIR += quesa
SUBDIR += quesoglc
+ SUBDIR += qvge
SUBDIR += radiance
SUBDIR += radius-engine
SUBDIR += rapid-photo-downloader
Added: head/graphics/qvge/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/graphics/qvge/Makefile Sat Jun 27 07:11:51 2020 (r540562)
@@ -0,0 +1,45 @@
+# Created by: Alexey Dokuchaev <danfe at FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= qvge
+PORTVERSION= 0.5.5
+CATEGORIES= graphics
+
+MAINTAINER= danfe at FreeBSD.org
+COMMENT= Qt Visual Graph Editor
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/../LICENSE
+
+LIB_DEPENDS= libOGDF.so:math/ogdf
+
+USE_GITHUB= yes
+GH_ACCOUNT= ArsMasiuk
+
+USES= compiler:c++11-lang qt:5 xorg
+USE_QT= buildtools_build qmake_build core gui network opengl \
+ printsupport widgets x11extras xml
+USE_XORG= x11
+
+MAKE_ARGS= INSTALL_ROOT=${STAGEDIR}
+WRKSRC_SUBDIR= src
+
+PLIST_FILES= bin/qvgeapp
+PORTDOCS= CHANGES README.md
+
+OPTIONS_DEFINE= DOCS
+
+post-patch:
+ @${RM} -r ${BUILD_WRKSRC}/3rdParty/ogdf
+ @${REINPLACE_CMD} -e '/CONFIG += c++/s,14,11,' ${WRKSRC}/config.pri
+ @${REINPLACE_CMD} -e '/^USE_OGDF{/,+4d' ${WRKSRC}/qvgeapp.pro
+ @${REINPLACE_CMD} -e '/#include/s,math\.h,cmath,' ${WRKSRC}/qvge/CUtils.cpp
+
+do-configure:
+ cd ${CONFIGURE_WRKSRC} && ${QMAKE_ENV} ${QMAKE} ${QMAKE_ARGS}
+
+post-install-DOCS-on:
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/../,} ${STAGEDIR}${DOCSDIR}
+
+.include <bsd.port.mk>
Added: head/graphics/qvge/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/graphics/qvge/distinfo Sat Jun 27 07:11:51 2020 (r540562)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1592825045
+SHA256 (ArsMasiuk-qvge-0.5.5_GH0.tar.gz) = f4a8155f03653bde37c8c83c1ff1b7325b1dec7e1d4b2589cb38558211bf1f5a
+SIZE (ArsMasiuk-qvge-0.5.5_GH0.tar.gz) = 4225872
Added: head/graphics/qvge/files/patch-app.pri
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/graphics/qvge/files/patch-app.pri Sat Jun 27 07:11:51 2020 (r540562)
@@ -0,0 +1,21 @@
+--- app.pri.orig 2020-06-22 11:24:05 UTC
++++ app.pri
+@@ -15,7 +15,7 @@ else{
+ LIBS += -lcommonui -lqvge -lqvgeio -lqtpropertybrowser -lqsint-widgets
+
+ USE_OGDF{
+- LIBS += -logdf
++ LIBS += -lOGDF
+ }
+
+ win32{
+@@ -24,7 +24,8 @@ win32{
+
+ unix{
+ !haiku{
+- LIBS += -lQt5X11Extras -lX11
++ QT += x11extras
++ LIBS += -lX11
+ }
+ }
+
Added: head/graphics/qvge/files/patch-commonui_ogdf_COGDFLayout.cpp
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/graphics/qvge/files/patch-commonui_ogdf_COGDFLayout.cpp Sat Jun 27 07:11:51 2020 (r540562)
@@ -0,0 +1,31 @@
+--- commonui/ogdf/COGDFLayout.cpp.orig 2020-06-22 11:24:05 UTC
++++ commonui/ogdf/COGDFLayout.cpp
+@@ -6,7 +6,7 @@
+
+ #include <ogdf/basic/Graph.h>
+ #include <ogdf/basic/GraphAttributes.h>
+-#include <ogdf/module/LayoutModule.h>
++#include <ogdf/basic/LayoutModule.h>
+ #include <ogdf/fileformats/GraphIO.h>
+
+ #include <ogdf/misclayout/BalloonLayout.h>
+@@ -246,16 +246,17 @@ bool COGDFLayout::loadGraph(const QString &filename, C
+ {
+ ogdf::Graph G;
+ ogdf::GraphAttributes GA(G, 0xffffff); // all attrs
++ std::ifstream is(filename.toStdString());
+
+ QString format = QFileInfo(filename).suffix().toLower();
+
+ bool ok = false;
+ if (format == "gml")
+- ok = ogdf::GraphIO::readGML(GA, G, filename.toStdString());
++ ok = ogdf::GraphIO::readGML(GA, G, is);
+ else
+ if (format == "dot" || format == "gv")
+ {
+- ok = ogdf::GraphIO::readDOT(GA, G, filename.toStdString());
++ ok = ogdf::GraphIO::readDOT(GA, G, is);
+
+ // normalize node positions
+ if (ok && GA.has(GA.nodeGraphics))
Added: head/graphics/qvge/files/patch-qvge_CNodeEditorScene.cpp
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/graphics/qvge/files/patch-qvge_CNodeEditorScene.cpp Sat Jun 27 07:11:51 2020 (r540562)
@@ -0,0 +1,14 @@
+--- qvge/CNodeEditorScene.cpp.orig 2020-06-22 11:24:05 UTC
++++ qvge/CNodeEditorScene.cpp
+@@ -189,7 +189,10 @@ bool CNodeEditorScene::toGraph(Graph& g)
+
+
+ // visibility
+- static AttrInfo _vis_({ attr_labels_visIds , "Visible Labels", QVariant::StringList});
++ static AttrInfo _vis_;
++ _vis_.id = attr_labels_visIds;
++ _vis_.name = "Visible Labels";
++ _vis_.defaultValue = QVariant::StringList;
+
+ auto nodeVis = getVisibleClassAttributes("node", false);
+ if (nodeVis.size())
Added: head/graphics/qvge/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/graphics/qvge/pkg-descr Sat Jun 27 07:11:51 2020 (r540562)
@@ -0,0 +1,5 @@
+qvge is a multi-platform graph editor written in C++/Qt. Its main goal
+is to make possible visually edit two-dimensional graphs in a simple and
+intuitive way.
+
+WWW: https://github.com/ArsMasiuk/qvge
More information about the svn-ports-all
mailing list