Rocs aims to be a Graph Theory IDE for helping professors to show

the results of a graph algorithm and also helping students to do
the algorithms. Rocs has a scripting module, done in Qt Script,
that interacts with the drawn graph and every change in the graph
with the script is reflected on the drawn one.
This commit is contained in:
zhuk 2013-04-24 18:44:28 +00:00
parent 9105aeb560
commit 0bb1207f70
6 changed files with 264 additions and 0 deletions

37
x11/kde4/rocs/Makefile Normal file
View File

@ -0,0 +1,37 @@
# $OpenBSD: Makefile,v 1.1.1.1 2013/04/24 18:44:28 zhuk Exp $
COMMENT = graph theory IDE for KDE
DISTNAME = rocs-${MODKDE4_VERSION}
# XXX Crashes sometimes.
#SHARED_LIBS = rocslib 0.0 # 4.7
SHARED_LIBS = rocscore 0.0 # 4.10
SHARED_LIBS += rocsvisualeditor 0.0 # 4.10
WANTLIB = c m pthread stdc++
WANTLIB += lib/qt4/QtDBus lib/qt4/QtGui lib/qt4/QtNetwork
WANTLIB += lib/qt4/QtScript lib/qt4/QtScriptTools lib/qt4/QtSvg
WANTLIB += lib/qt4/QtWebKit lib/qt4/QtXml
WANTLIB += ${KDE4LIB}/kdeui ${KDE4LIB}/kio ${KDE4LIB}/knewstuff3
WANTLIB += ${KDE4LIB}/kparts ${KDE4LIB}/krosscore ${KDE4LIB}/krossui
WANTLIB += ${KDE4LIB}/ktexteditor ${KDE4LIB}/nepomuk
WANTLIB += ${KDE4LIB}/nepomukutils ${KDE4LIB}/plasma
WANTLIB += soprano
BUILD_DEPENDS = devel/boost
RUN_DEPENDS = devel/desktop-file-utils \
x11/gtk+2,-guic
# Requires Boost >= 1.49
CONFIGURE_ARGS = -DBUILD_DotFileFormat:Bool=No
# XXX Ugly hack until CMake or rocs, whatever, could be fixed.
LOST_LIBS = rocs_GraphStructure rocs_ListStructure
post-configure:
.for _l in ${LOST_LIBS}
cd ${WRKBUILD}/lib && ln -s {,lib}${_l}.so
.endfor
.include <bsd.port.mk>

2
x11/kde4/rocs/distinfo Normal file
View File

@ -0,0 +1,2 @@
SHA256 (kde/rocs-4.10.2.tar.xz) = 71gAhON670MUcmhdxD9HWeB0Yw719mUPtbxm5rpZL4w=
SIZE (kde/rocs-4.10.2.tar.xz) = 1142592

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-CMakeLists_txt,v 1.1.1.1 2013/04/24 18:44:28 zhuk Exp $
--- CMakeLists.txt.orig Thu Jan 24 01:55:36 2013
+++ CMakeLists.txt Wed Feb 6 23:43:11 2013
@@ -27,7 +27,7 @@ include(FeatureSummary)
# In CMake >= 2.8.6, FindBoost.cmake tries to find BoostConfig.cmake which is
# not compatible with CMake's FindBoost. Disable this function.
set(Boost_NO_BOOST_CMAKE TRUE)
-find_package(Boost "1.43" REQUIRED)
+find_package(Boost "1.42" REQUIRED)
set_package_info(Boost "Boost C++ Libraries" "http://www.boost.org"
)

View File

@ -0,0 +1,33 @@
$OpenBSD: patch-RocsCore_LoadSave_Plugins_CMakeLists_txt,v 1.1.1.1 2013/04/24 18:44:28 zhuk Exp $
--- RocsCore/LoadSave/Plugins/CMakeLists.txt.orig Wed Feb 13 21:23:01 2013
+++ RocsCore/LoadSave/Plugins/CMakeLists.txt Wed Feb 13 21:29:56 2013
@@ -21,13 +21,26 @@ add_subdirectory(tikzFileFormat)
# require Boost >= 1.49 for DOT file format
if(${Boost_VERSION} VERSION_LESS 104900)
+ set(CAN_BUILD_DotFileFormat No)
+else(${Boost_VERSION} VERSION_LESS 104900)
+ set(CAN_BUILD_DotFileFormat Yes)
+endif(${Boost_VERSION} VERSION_LESS 104900)
+
+option(BUILD_DotFileFormat
+ "Build DOT file format support (needs Boost >= 1.49)"
+ ${CAN_BUILD_DotFileFormat}
+ )
+
+if(BUILD_DotFileFormat)
+ # Allow build ever with Boost < 1.49 if user explicitly
+ # says that he wants to shoot his foot.
+ add_subdirectory(dotFileFormat)
+elseif(NOT CAN_BUILD_DotFileFormat)
add_feature_info(DotFileFormat
OFF
"Building of DOT file format support needs Boost >= 1.49."
)
-else(${Boost_VERSION} VERSION_LESS 104900)
- add_subdirectory(dotFileFormat)
-endif(${Boost_VERSION} VERSION_LESS 104900)
+endif(BUILD_DotFileFormat)
# these plugins are in an unstable state and are not suited for end users
if (ROCS_BUILD_LOADSAVE)

5
x11/kde4/rocs/pkg/DESCR Normal file
View File

@ -0,0 +1,5 @@
Rocs aims to be a Graph Theory IDE for helping professors to show
the results of a graph algorithm and also helping students to do
the algorithms. Rocs has a scripting module, done in Qt Script,
that interacts with the drawn graph and every change in the graph
with the script is reflected on the drawn one.

175
x11/kde4/rocs/pkg/PLIST Normal file
View File

@ -0,0 +1,175 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2013/04/24 18:44:28 zhuk Exp $
@bin bin/rocs
include/kde4/rocs/
include/kde4/rocs/CoreTypes.h
include/kde4/rocs/Data.h
include/kde4/rocs/DataItem.h
include/kde4/rocs/DataStructure.h
include/kde4/rocs/DataStructureBackendManager.h
include/kde4/rocs/DataStructurePluginInterface.h
include/kde4/rocs/Document.h
include/kde4/rocs/GraphFileBackendManager.h
include/kde4/rocs/GraphFilePluginInterface.h
include/kde4/rocs/GraphVisualEditor.h
include/kde4/rocs/Pointer.h
include/kde4/rocs/PointerItem.h
include/kde4/rocs/RocsCoreExport.h
include/kde4/rocs/Topology.h
@lib ${KDE4LIB}/librocscore.so.${LIBrocscore_VERSION}
@lib ${KDE4LIB}/librocsvisualeditor.so.${LIBrocsvisualeditor_VERSION}
lib/kde4/rocs_GraphStructure.so
lib/kde4/rocs_ListStructure.so
lib/kde4/rocs_RootedTreeStructure.so
lib/kde4/rocs_assignvaluesplugin.so
lib/kde4/rocs_generategraphplugin.so
lib/kde4/rocs_gmlfileformat.so
lib/kde4/rocs_kmlfileformat.so
lib/kde4/rocs_tgffileformat.so
lib/kde4/rocs_tikzfileformat.so
lib/kde4/rocs_transformedgesplugin.so
@lib lib/librocscore.so.${LIBrocscore_VERSION}
@lib lib/librocsvisualeditor.so.${LIBrocsvisualeditor_VERSION}
share/applications/kde4/rocs.desktop
share/apps/rocs/
share/apps/rocs/examples/
share/apps/rocs/examples/AdjustProjection.js
share/apps/rocs/examples/NameAndNodes.js
share/apps/rocs/examples/NamesValues.js
share/apps/rocs/examples/arrangeNodes.js
share/apps/rocs/examples/broadWalk.js
share/apps/rocs/examples/coloring.js
share/apps/rocs/iconpacks/
share/apps/rocs/iconpacks/default.svg
share/apps/rocs/icons/
share/apps/rocs/icons/hicolor/
share/apps/rocs/icons/hicolor/16x16/
share/apps/rocs/icons/hicolor/16x16/actions/
share/apps/rocs/icons/hicolor/16x16/actions/rocsaddedge.png
share/apps/rocs/icons/hicolor/16x16/actions/rocsalignbottom.png
share/apps/rocs/icons/hicolor/16x16/actions/rocsaligncircle.png
share/apps/rocs/icons/hicolor/16x16/actions/rocsalignhmiddle.png
share/apps/rocs/icons/hicolor/16x16/actions/rocsalignleft.png
share/apps/rocs/icons/hicolor/16x16/actions/rocsalignright.png
share/apps/rocs/icons/hicolor/16x16/actions/rocsaligntop.png
share/apps/rocs/icons/hicolor/16x16/actions/rocsaligntree.png
share/apps/rocs/icons/hicolor/16x16/actions/rocsalignvmiddle.png
share/apps/rocs/icons/hicolor/16x16/actions/rocsselect.png
share/apps/rocs/icons/hicolor/16x16/actions/rocsselectmove.png
share/apps/rocs/icons/hicolor/16x16/apps/
share/apps/rocs/icons/hicolor/16x16/apps/rocs.png
share/apps/rocs/icons/hicolor/22x22/
share/apps/rocs/icons/hicolor/22x22/actions/
share/apps/rocs/icons/hicolor/22x22/actions/rocsaddedge.png
share/apps/rocs/icons/hicolor/22x22/actions/rocsaddnode.png
share/apps/rocs/icons/hicolor/22x22/actions/rocsalignbottom.png
share/apps/rocs/icons/hicolor/22x22/actions/rocsaligncircle.png
share/apps/rocs/icons/hicolor/22x22/actions/rocsalignhmiddle.png
share/apps/rocs/icons/hicolor/22x22/actions/rocsalignleft.png
share/apps/rocs/icons/hicolor/22x22/actions/rocsalignright.png
share/apps/rocs/icons/hicolor/22x22/actions/rocsaligntop.png
share/apps/rocs/icons/hicolor/22x22/actions/rocsaligntree.png
share/apps/rocs/icons/hicolor/22x22/actions/rocsalignvmiddle.png
share/apps/rocs/icons/hicolor/22x22/actions/rocsselectmove.png
share/apps/rocs/icons/hicolor/32x32/
share/apps/rocs/icons/hicolor/32x32/actions/
share/apps/rocs/icons/hicolor/32x32/actions/rocsaddedge.png
share/apps/rocs/icons/hicolor/32x32/actions/rocsalignbottom.png
share/apps/rocs/icons/hicolor/32x32/actions/rocsaligncircle.png
share/apps/rocs/icons/hicolor/32x32/actions/rocsalignhmiddle.png
share/apps/rocs/icons/hicolor/32x32/actions/rocsalignleft.png
share/apps/rocs/icons/hicolor/32x32/actions/rocsalignright.png
share/apps/rocs/icons/hicolor/32x32/actions/rocsaligntop.png
share/apps/rocs/icons/hicolor/32x32/actions/rocsaligntree.png
share/apps/rocs/icons/hicolor/32x32/actions/rocsalignvmiddle.png
share/apps/rocs/icons/hicolor/32x32/actions/rocsselect.png
share/apps/rocs/icons/hicolor/32x32/actions/rocsselectmove.png
share/apps/rocs/icons/hicolor/32x32/apps/
share/apps/rocs/icons/hicolor/32x32/apps/rocs.png
share/apps/rocs/icons/hicolor/48x48/
share/apps/rocs/icons/hicolor/48x48/actions/
share/apps/rocs/icons/hicolor/48x48/actions/rocsaddedge.png
share/apps/rocs/icons/hicolor/48x48/actions/rocsalignbottom.png
share/apps/rocs/icons/hicolor/48x48/actions/rocsaligncircle.png
share/apps/rocs/icons/hicolor/48x48/actions/rocsalignhmiddle.png
share/apps/rocs/icons/hicolor/48x48/actions/rocsalignleft.png
share/apps/rocs/icons/hicolor/48x48/actions/rocsalignright.png
share/apps/rocs/icons/hicolor/48x48/actions/rocsaligntop.png
share/apps/rocs/icons/hicolor/48x48/actions/rocsaligntree.png
share/apps/rocs/icons/hicolor/48x48/actions/rocsalignvmiddle.png
share/apps/rocs/icons/hicolor/48x48/actions/rocsselectmove.png
share/apps/rocs/icons/hicolor/48x48/apps/
share/apps/rocs/icons/hicolor/48x48/apps/rocs.png
share/apps/rocs/icons/hicolor/64x64/
share/apps/rocs/icons/hicolor/64x64/actions/
share/apps/rocs/icons/hicolor/64x64/actions/rocsaddedge.png
share/apps/rocs/icons/hicolor/64x64/actions/rocsalignbottom.png
share/apps/rocs/icons/hicolor/64x64/actions/rocsaligncircle.png
share/apps/rocs/icons/hicolor/64x64/actions/rocsalignhmiddle.png
share/apps/rocs/icons/hicolor/64x64/actions/rocsalignleft.png
share/apps/rocs/icons/hicolor/64x64/actions/rocsalignright.png
share/apps/rocs/icons/hicolor/64x64/actions/rocsaligntop.png
share/apps/rocs/icons/hicolor/64x64/actions/rocsaligntree.png
share/apps/rocs/icons/hicolor/64x64/actions/rocsalignvmiddle.png
share/apps/rocs/icons/hicolor/64x64/actions/rocsselect.png
share/apps/rocs/icons/hicolor/64x64/actions/rocsselectmove.png
share/apps/rocs/icons/hicolor/scalable/
share/apps/rocs/icons/hicolor/scalable/actions/
share/apps/rocs/icons/hicolor/scalable/actions/rocsadddata.svgz
share/apps/rocs/icons/hicolor/scalable/actions/rocsdelete.svgz
share/apps/rocs/icons/hicolor/scalable/actions/rocsdeletedata.svgz
share/apps/rocs/icons/hicolor/scalable/actions/rocsdeletegrey.svgz
share/apps/rocs/icons/hicolor/scalable/actions/rocseyeblack.svgz
share/apps/rocs/icons/hicolor/scalable/actions/rocsnew.svgz
share/apps/rocs/icons/hicolor/scalable/actions/rocstexticon.svgz
share/apps/rocs/icons/hicolor/scalable/actions/rocsvalueicon.svgz
share/apps/rocs/rocsui.rc
share/apps/rocs_rootedtree/
share/apps/rocs_rootedtree/RootedTreeui.rc
share/config.kcfg/rocs.kcfg
share/config/rocs.knsrc
share/doc/HTML/en/rocs/
share/doc/HTML/en/rocs/common
share/doc/HTML/en/rocs/document-selector.png
share/doc/HTML/en/rocs/hi22-action-rocsadddata.png
share/doc/HTML/en/rocs/hi22-action-rocsaddedge.png
share/doc/HTML/en/rocs/hi22-action-rocsalignbottom.png
share/doc/HTML/en/rocs/hi22-action-rocsaligncircle.png
share/doc/HTML/en/rocs/hi22-action-rocsalignhmiddle.png
share/doc/HTML/en/rocs/hi22-action-rocsalignleft.png
share/doc/HTML/en/rocs/hi22-action-rocsalignright.png
share/doc/HTML/en/rocs/hi22-action-rocsaligntop.png
share/doc/HTML/en/rocs/hi22-action-rocsaligntree.png
share/doc/HTML/en/rocs/hi22-action-rocsalignvmiddle.png
share/doc/HTML/en/rocs/hi22-action-rocsdelete.png
share/doc/HTML/en/rocs/hi22-action-rocsdeletedata.png
share/doc/HTML/en/rocs/hi22-action-rocsnew.png
share/doc/HTML/en/rocs/hi22-action-rocsproperties.png
share/doc/HTML/en/rocs/hi22-action-rocsselectmove.png
share/doc/HTML/en/rocs/hi22-action-rocszoom.png
share/doc/HTML/en/rocs/index.cache.bz2
share/doc/HTML/en/rocs/index.docbook
share/doc/HTML/en/rocs/rocs-control-engine-debug.png
share/doc/HTML/en/rocs/rocs-control-engine-run.png
share/doc/HTML/en/rocs/rocs-control-engine-step.png
share/doc/HTML/en/rocs/rocs-control-engine-stop.png
share/doc/HTML/en/rocs/rocs-interfaces.png
share/doc/HTML/en/rocs/rocs-screenshot.png
share/doc/HTML/en/rocs/rocs-toolbar-alignment.png
share/doc/HTML/en/rocs/rocs-toolbar-main.png
share/kde4/services/rocs_GraphStructure.desktop
share/kde4/services/rocs_ListStructure.desktop
share/kde4/services/rocs_RootedTreeStructure.desktop
share/kde4/services/rocs_assignvaluesplugin.desktop
share/kde4/services/rocs_generategraphplugin.desktop
share/kde4/services/rocs_gmlfileformatplugin.desktop
share/kde4/services/rocs_kmlfileformatplugin.desktop
share/kde4/services/rocs_tgffileformatplugin.desktop
share/kde4/services/rocs_tikzfileformatplugin.desktop
share/kde4/services/rocs_transformedgesplugin.desktop
share/kde4/servicetypes/RocsDataStructurePlugin.desktop
share/kde4/servicetypes/RocsGraphFilePlugin.desktop
share/kde4/servicetypes/RocsToolsPlugin.desktop
@exec %D/bin/update-desktop-database
@unexec-delete %D/bin/update-desktop-database
@exec %D/bin/gtk-update-icon-cache -q -t %D/share/icons/hicolor
@unexec-delete %D/bin/gtk-update-icon-cache -q -t %D/share/icons/hicolor