From ba6a4803480fcaa3d87da4bdf84b1233cd438dc4 Mon Sep 17 00:00:00 2001 From: adridg Date: Sun, 1 Oct 2017 16:34:22 +0000 Subject: Resurrect KGraphviewer, now in a KF5 version. Upstream there is a new maintainer and regular releases. Approved by: tcberner (mentor) Differential Revision: https://reviews.freebsd.org/D12530 --- MOVED | 1 - graphics/Makefile | 1 + graphics/kgraphviewer/Makefile | 25 ++++ graphics/kgraphviewer/distinfo | 3 + .../files/patch-cmake_FindGraphviz.cmake | 58 ++++++++ .../files/patch-src_part_CMakeLists.txt | 12 ++ graphics/kgraphviewer/pkg-descr | 3 + graphics/kgraphviewer/pkg-plist | 148 +++++++++++++++++++++ 8 files changed, 250 insertions(+), 1 deletion(-) create mode 100644 graphics/kgraphviewer/Makefile create mode 100644 graphics/kgraphviewer/distinfo create mode 100644 graphics/kgraphviewer/files/patch-cmake_FindGraphviz.cmake create mode 100644 graphics/kgraphviewer/files/patch-src_part_CMakeLists.txt create mode 100644 graphics/kgraphviewer/pkg-descr create mode 100644 graphics/kgraphviewer/pkg-plist diff --git a/MOVED b/MOVED index 150c045a45f4..b1aecc49ece6 100644 --- a/MOVED +++ b/MOVED @@ -5456,7 +5456,6 @@ sysutils/slmon||2014-02-27|Has expired: Broken for more than 6 months www/trac-revtree||2014-02-27|Has expired: Broken for more than 6 months security/crack||2014-02-27|Has expired: Broken for more than 6 months sysutils/graphicboot||2014-02-27|Has expired: Broken for more than 6 months, upstream disappeared -graphics/kgraphviewer||2014-02-27|Has expired: Broken for more than 6 months sysutils/ckl||2014-02-27|Has expired: Broken for more than 6 months japanese/trac||2014-02-27|Has expired: Broken for more than 6 months lang/opa||2014-02-27|Has expired: Broken for more than 6 months diff --git a/graphics/Makefile b/graphics/Makefile index c3a9ac061fba..15c1753f2129 100644 --- a/graphics/Makefile +++ b/graphics/Makefile @@ -413,6 +413,7 @@ SUBDIR += kf5-kimageformats SUBDIR += kf5-kplotting SUBDIR += kf5-prison + SUBDIR += kgraphviewer SUBDIR += kiconedit SUBDIR += kipi-plugin-acquireimages SUBDIR += kipi-plugin-advancedslideshow diff --git a/graphics/kgraphviewer/Makefile b/graphics/kgraphviewer/Makefile new file mode 100644 index 000000000000..d26bd2a50bfb --- /dev/null +++ b/graphics/kgraphviewer/Makefile @@ -0,0 +1,25 @@ +# $FreeBSD$ + +PORTNAME= kgraphviewer +DISTVERSION= 2.4.2 +CATEGORIES= graphics kde +MASTER_SITES= KDE/stable/${PORTNAME}/${PORTVERSION}/ +DIST_SUBDIR= KDE/${PORTNAME} + +MAINTAINER= kde@FreeBSD.org +COMMENT= Graphs-viewer for GraphViz files + +LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/COPYING + +LIB_DEPENDS= libgvc.so:graphics/graphviz + +USES= cmake:outsource desktop-file-utils kde:5 tar:xz pkgconfig +USE_KDE= auth codecs completion config configwidgets \ + coreaddons i18n iconthemes jobwidgets kio parts service \ + sonnet textwidgets widgetsaddons xmlgui \ + ecm_build +USE_QT5= core dbus gui network printsupport svg widgets xml \ + buildtools_build qmake_build + +.include diff --git a/graphics/kgraphviewer/distinfo b/graphics/kgraphviewer/distinfo new file mode 100644 index 000000000000..8e603bdb8986 --- /dev/null +++ b/graphics/kgraphviewer/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1506604380 +SHA256 (KDE/kgraphviewer/kgraphviewer-2.4.2.tar.xz) = 49438b4e6cca69d2e658de50059f045ede42cfe78ee97cece35959e29ffb85c9 +SIZE (KDE/kgraphviewer/kgraphviewer-2.4.2.tar.xz) = 1565692 diff --git a/graphics/kgraphviewer/files/patch-cmake_FindGraphviz.cmake b/graphics/kgraphviewer/files/patch-cmake_FindGraphviz.cmake new file mode 100644 index 000000000000..054b0112b971 --- /dev/null +++ b/graphics/kgraphviewer/files/patch-cmake_FindGraphviz.cmake @@ -0,0 +1,58 @@ +Don't name-collide the variables from pkg-config with the ones this +CMake find-module is supposed to set. Follow the hints that pkg-config +provides to find the actual libraries. +--- cmake/FindGraphviz.cmake.orig 2017-09-27 13:15:56 UTC ++++ cmake/FindGraphviz.cmake +@@ -29,10 +29,8 @@ + if ( NOT WIN32 ) + + find_package(PkgConfig) +- pkg_check_modules( graphviz ${REQUIRED} libgvc libcdt libcgraph libpathplan ) +- if ( graphviz_FOUND ) +- set ( graphviz_INCLUDE_DIRECTORIES ${graphviz_INCLUDE_DIRS} ) +- endif ( graphviz_FOUND ) ++ # Don't name-collide with the find_library() calls below, use pc_ prefix ++ pkg_check_modules( pc_graphviz ${REQUIRED} libgvc libcdt libcgraph libpathplan ) + + endif ( NOT WIN32 ) + +@@ -43,6 +41,7 @@ find_path( graphviz_INCLUDE_DIRECTORIES + /usr/local/include + /usr/include + PATH_SUFFIXES graphviz ++ HINTS ${pc_graphviz_INCLUDE_DIRECTORIES} + ) + + find_library( graphviz_GVC_LIBRARY +@@ -53,6 +52,7 @@ find_library( graphviz_GVC_LIBRARY + /usr/lib64 + /usr/local/lib + /usr/lib ++ HINTS ${pc_graphviz_LIBRARY_DIRS} + ) + + find_library( graphviz_CDT_LIBRARY +@@ -63,6 +63,7 @@ find_library( graphviz_CDT_LIBRARY + /usr/lib64 + /usr/local/lib + /usr/lib ++ HINTS ${pc_graphviz_LIBRARY_DIRS} + ) + + find_library( graphviz_GRAPH_LIBRARY +@@ -73,6 +74,7 @@ find_library( graphviz_GRAPH_LIBRARY + /usr/lib64 + /usr/local/lib + /usr/lib ++ HINTS ${pc_graphviz_LIBRARY_DIRS} + ) + + find_library( graphviz_PATHPLAN_LIBRARY +@@ -83,6 +85,7 @@ find_library( graphviz_PATHPLAN_LIBRARY + /usr/lib64 + /usr/local/lib + /usr/lib ++ HINTS ${pc_graphviz_LIBRARY_DIRS} + ) + + if ( graphviz_INCLUDE_DIRECTORIES AND diff --git a/graphics/kgraphviewer/files/patch-src_part_CMakeLists.txt b/graphics/kgraphviewer/files/patch-src_part_CMakeLists.txt new file mode 100644 index 000000000000..f5c0ad517b9b --- /dev/null +++ b/graphics/kgraphviewer/files/patch-src_part_CMakeLists.txt @@ -0,0 +1,12 @@ +The gvc, cgraph, .. libraries are already linked to kgraphviewerlib. +--- src/part/CMakeLists.txt.orig 2017-09-27 13:15:56 UTC ++++ src/part/CMakeLists.txt +@@ -79,7 +79,7 @@ set( kgraphviewerpart_PART_SRCS kgraphvi + add_library(kgraphviewerpart MODULE ${kgraphviewerpart_PART_SRCS}) + generate_export_header(kgraphviewerpart BASE_NAME kgraphviewer) + +-target_link_libraries(kgraphviewerpart Qt5::Core KF5::Parts gvc cgraph pathplan cdt kgraphviewerlib) ++target_link_libraries(kgraphviewerpart Qt5::Core KF5::Parts kgraphviewerlib) + + install( TARGETS kgraphviewerpart DESTINATION ${KDE_INSTALL_PLUGINDIR}) + diff --git a/graphics/kgraphviewer/pkg-descr b/graphics/kgraphviewer/pkg-descr new file mode 100644 index 000000000000..e107e5a4765b --- /dev/null +++ b/graphics/kgraphviewer/pkg-descr @@ -0,0 +1,3 @@ +KGraphViewer is a Graphviz DOT graph file viewer. + +WWW: https://extragear.kde.org/apps/kgraphviewer/ diff --git a/graphics/kgraphviewer/pkg-plist b/graphics/kgraphviewer/pkg-plist new file mode 100644 index 000000000000..05416fd8e740 --- /dev/null +++ b/graphics/kgraphviewer/pkg-plist @@ -0,0 +1,148 @@ +bin/kgraphviewer +etc/xdg/kgraphviewer.categories +include/kgraphviewer/kgraphviewer_interface.h +lib/cmake/KGraphViewerPart/KGraphViewerPartConfig.cmake +lib/cmake/KGraphViewerPart/KGraphViewerPartConfigVersion.cmake +lib/libkgraphviewer.so +lib/libkgraphviewer.so.2.4.2 +lib/libkgraphviewer.so.3 +%%QT_PLUGINDIR%%/kgraphviewerpart.so +share/applications/org.kde.kgraphviewer.desktop +share/config.kcfg/kgraphviewer_partsettings.kcfg +share/config.kcfg/kgraphviewersettings.kcfg +share/doc/HTML/de/kgraphviewer/index.cache.bz2 +share/doc/HTML/de/kgraphviewer/index.docbook +share/doc/HTML/de/kgraphviewer/kgraphviewer-snap-ask2.png +share/doc/HTML/de/kgraphviewer/kgraphviewer-snap-ask3.png +share/doc/HTML/de/kgraphviewer/kgraphviewer-snap-config1.png +share/doc/HTML/de/kgraphviewer/kgraphviewer-snap-config2.png +share/doc/HTML/de/kgraphviewer/kgraphviewer-snap-config3.png +share/doc/HTML/de/kgraphviewer/kgraphviewer-snap-init.png +share/doc/HTML/de/kgraphviewer/kgraphviewer-snap-main.png +share/doc/HTML/de/kgraphviewer/kgraphviewer-snap-pagesmarges.png +share/doc/HTML/de/kgraphviewer/kgraphviewer-snap-ppview1.png +share/doc/HTML/de/kgraphviewer/kgraphviewer-snap-ppview2.png +share/doc/HTML/de/kgraphviewer/kgraphviewer-snap-ppview3.png +share/doc/HTML/de/kgraphviewer/kgraphviewer-snap-psetup1.png +share/doc/HTML/de/kgraphviewer/kgraphviewer-snap-zmax.png +share/doc/HTML/de/kgraphviewer/kgraphviewer-snap-zmin.png +share/doc/HTML/en/kgraphviewer/index.cache.bz2 +share/doc/HTML/en/kgraphviewer/index.docbook +share/doc/HTML/en/kgraphviewer/kgraphviewer-but-layout.png +share/doc/HTML/en/kgraphviewer/kgraphviewer-but-open.png +share/doc/HTML/en/kgraphviewer/kgraphviewer-but-prev.png +share/doc/HTML/en/kgraphviewer/kgraphviewer-but-preview.png +share/doc/HTML/en/kgraphviewer/kgraphviewer-but-print.png +share/doc/HTML/en/kgraphviewer/kgraphviewer-but-psetup.png +share/doc/HTML/en/kgraphviewer/kgraphviewer-but-reload.png +share/doc/HTML/en/kgraphviewer/kgraphviewer-but-whatsthis.png +share/doc/HTML/en/kgraphviewer/kgraphviewer-but-zoomin.png +share/doc/HTML/en/kgraphviewer/kgraphviewer-but-zoomout.png +share/doc/HTML/en/kgraphviewer/kgraphviewer-snap-ask1.png +share/doc/HTML/en/kgraphviewer/kgraphviewer-snap-ask2.png +share/doc/HTML/en/kgraphviewer/kgraphviewer-snap-ask3.png +share/doc/HTML/en/kgraphviewer/kgraphviewer-snap-config1.png +share/doc/HTML/en/kgraphviewer/kgraphviewer-snap-config2.png +share/doc/HTML/en/kgraphviewer/kgraphviewer-snap-config3.png +share/doc/HTML/en/kgraphviewer/kgraphviewer-snap-init.png +share/doc/HTML/en/kgraphviewer/kgraphviewer-snap-main.png +share/doc/HTML/en/kgraphviewer/kgraphviewer-snap-pagesmarges.png +share/doc/HTML/en/kgraphviewer/kgraphviewer-snap-ppview1.png +share/doc/HTML/en/kgraphviewer/kgraphviewer-snap-ppview2.png +share/doc/HTML/en/kgraphviewer/kgraphviewer-snap-ppview3.png +share/doc/HTML/en/kgraphviewer/kgraphviewer-snap-psetup1.png +share/doc/HTML/en/kgraphviewer/kgraphviewer-snap-zmax.png +share/doc/HTML/en/kgraphviewer/kgraphviewer-snap-zmin.png +share/doc/HTML/et/kgraphviewer/index.cache.bz2 +share/doc/HTML/et/kgraphviewer/index.docbook +share/doc/HTML/it/kgraphviewer/index.cache.bz2 +share/doc/HTML/it/kgraphviewer/index.docbook +share/doc/HTML/nl/kgraphviewer/index.cache.bz2 +share/doc/HTML/nl/kgraphviewer/index.docbook +share/doc/HTML/pt/kgraphviewer/index.cache.bz2 +share/doc/HTML/pt/kgraphviewer/index.docbook +share/doc/HTML/pt_BR/kgraphviewer/index.cache.bz2 +share/doc/HTML/pt_BR/kgraphviewer/index.docbook +share/doc/HTML/sv/kgraphviewer/index.cache.bz2 +share/doc/HTML/sv/kgraphviewer/index.docbook +share/doc/HTML/sv/kgraphviewer/kgraphviewer-snap-ask1.png +share/doc/HTML/sv/kgraphviewer/kgraphviewer-snap-ask2.png +share/doc/HTML/sv/kgraphviewer/kgraphviewer-snap-ask3.png +share/doc/HTML/sv/kgraphviewer/kgraphviewer-snap-config1.png +share/doc/HTML/sv/kgraphviewer/kgraphviewer-snap-config2.png +share/doc/HTML/sv/kgraphviewer/kgraphviewer-snap-config3.png +share/doc/HTML/sv/kgraphviewer/kgraphviewer-snap-init.png +share/doc/HTML/sv/kgraphviewer/kgraphviewer-snap-main.png +share/doc/HTML/sv/kgraphviewer/kgraphviewer-snap-pagesmarges.png +share/doc/HTML/sv/kgraphviewer/kgraphviewer-snap-ppview1.png +share/doc/HTML/sv/kgraphviewer/kgraphviewer-snap-ppview2.png +share/doc/HTML/sv/kgraphviewer/kgraphviewer-snap-ppview3.png +share/doc/HTML/sv/kgraphviewer/kgraphviewer-snap-psetup1.png +share/doc/HTML/sv/kgraphviewer/kgraphviewer-snap-zmax.png +share/doc/HTML/sv/kgraphviewer/kgraphviewer-snap-zmin.png +share/doc/HTML/uk/kgraphviewer/index.cache.bz2 +share/doc/HTML/uk/kgraphviewer/index.docbook +share/icons/hicolor/16x16/apps/kgraphviewer.png +share/icons/hicolor/32x32/apps/kgraphviewer.png +share/kgraphviewerpart/pics/chain-broken.png +share/kgraphviewerpart/pics/chain.png +share/kgraphviewerpart/pics/kgraphviewer-bev.png +share/kgraphviewerpart/pics/kgraphviewer-newedge.png +share/kgraphviewerpart/pics/kgraphviewer-newnode.png +share/kservices5/kgraphviewer_part.desktop +share/kxmlgui5/kgraphviewer/kgraphviewer_part.rc +share/kxmlgui5/kgraphviewer/kgraphviewerui.rc +share/locale/ar/LC_MESSAGES/kgraphviewer.mo +share/locale/ast/LC_MESSAGES/kgraphviewer.mo +share/locale/be/LC_MESSAGES/kgraphviewer.mo +share/locale/bg/LC_MESSAGES/kgraphviewer.mo +share/locale/bs/LC_MESSAGES/kgraphviewer.mo +share/locale/ca/LC_MESSAGES/kgraphviewer.mo +share/locale/ca@valencia/LC_MESSAGES/kgraphviewer.mo +share/locale/cs/LC_MESSAGES/kgraphviewer.mo +share/locale/da/LC_MESSAGES/kgraphviewer.mo +share/locale/de/LC_MESSAGES/kgraphviewer.mo +share/locale/el/LC_MESSAGES/kgraphviewer.mo +share/locale/en_GB/LC_MESSAGES/kgraphviewer.mo +share/locale/eo/LC_MESSAGES/kgraphviewer.mo +share/locale/es/LC_MESSAGES/kgraphviewer.mo +share/locale/et/LC_MESSAGES/kgraphviewer.mo +share/locale/eu/LC_MESSAGES/kgraphviewer.mo +share/locale/fi/LC_MESSAGES/kgraphviewer.mo +share/locale/fr/LC_MESSAGES/kgraphviewer.mo +share/locale/ga/LC_MESSAGES/kgraphviewer.mo +share/locale/gl/LC_MESSAGES/kgraphviewer.mo +share/locale/hi/LC_MESSAGES/kgraphviewer.mo +share/locale/hne/LC_MESSAGES/kgraphviewer.mo +share/locale/hr/LC_MESSAGES/kgraphviewer.mo +share/locale/hu/LC_MESSAGES/kgraphviewer.mo +share/locale/is/LC_MESSAGES/kgraphviewer.mo +share/locale/it/LC_MESSAGES/kgraphviewer.mo +share/locale/ja/LC_MESSAGES/kgraphviewer.mo +share/locale/km/LC_MESSAGES/kgraphviewer.mo +share/locale/ku/LC_MESSAGES/kgraphviewer.mo +share/locale/lt/LC_MESSAGES/kgraphviewer.mo +share/locale/mai/LC_MESSAGES/kgraphviewer.mo +share/locale/mr/LC_MESSAGES/kgraphviewer.mo +share/locale/nb/LC_MESSAGES/kgraphviewer.mo +share/locale/nds/LC_MESSAGES/kgraphviewer.mo +share/locale/nl/LC_MESSAGES/kgraphviewer.mo +share/locale/nn/LC_MESSAGES/kgraphviewer.mo +share/locale/pa/LC_MESSAGES/kgraphviewer.mo +share/locale/pl/LC_MESSAGES/kgraphviewer.mo +share/locale/pt/LC_MESSAGES/kgraphviewer.mo +share/locale/pt_BR/LC_MESSAGES/kgraphviewer.mo +share/locale/ro/LC_MESSAGES/kgraphviewer.mo +share/locale/ru/LC_MESSAGES/kgraphviewer.mo +share/locale/se/LC_MESSAGES/kgraphviewer.mo +share/locale/sk/LC_MESSAGES/kgraphviewer.mo +share/locale/sv/LC_MESSAGES/kgraphviewer.mo +share/locale/th/LC_MESSAGES/kgraphviewer.mo +share/locale/tr/LC_MESSAGES/kgraphviewer.mo +share/locale/ug/LC_MESSAGES/kgraphviewer.mo +share/locale/uk/LC_MESSAGES/kgraphviewer.mo +share/locale/vi/LC_MESSAGES/kgraphviewer.mo +share/locale/zh_CN/LC_MESSAGES/kgraphviewer.mo +share/locale/zh_TW/LC_MESSAGES/kgraphviewer.mo +share/metainfo/org.kde.kgraphviewer.appdata.xml +share/metainfo/org.kde.libkgraphviewer.metainfo.xml -- cgit