summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2016-05-07 10:06:40 +0000
committerjoerg <joerg@pkgsrc.org>2016-05-07 10:06:40 +0000
commit2f84d5d9e86cef9c0552bb94e7fec29204008aa4 (patch)
tree4c6f8b23780721b75e018210d2ddac6f3f46a4c9
parent905dd2455bee1dd54ac217eed2c345fc911ef03d (diff)
downloadpkgsrc-2f84d5d9e86cef9c0552bb94e7fec29204008aa4.tar.gz
With newer Boost, this now must be built as C++11. Unrestrict make_pair
to help GCC 4.8 figure out the right template of make_pair.
-rw-r--r--misc/rocs/Makefile7
-rw-r--r--misc/rocs/distinfo3
-rw-r--r--misc/rocs/patches/patch-RocsCore_DataStructures_Graph_GraphStructure.cpp25
3 files changed, 33 insertions, 2 deletions
diff --git a/misc/rocs/Makefile b/misc/rocs/Makefile
index 857275619d5..160b5ab0788 100644
--- a/misc/rocs/Makefile
+++ b/misc/rocs/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.39 2016/03/05 11:28:58 jperkin Exp $
+# $NetBSD: Makefile,v 1.40 2016/05/07 10:06:40 joerg Exp $
DISTNAME= rocs-${_KDE_VERSION}
PKGREVISION= 5
@@ -9,6 +9,11 @@ COMMENT= KDE graph theory IDE
CMAKE_ARGS+= -DKDE4_BUILD_TESTS:BOOL=OFF
+.include "../../mk/compiler.mk"
+.if !empty(PKGSRC_COMPILER:Mclang) || !empty(PKGSRC_COMPILER:Mgcc)
+CXXFLAGS+= -std=c++11
+.endif
+
.include "../../meta-pkgs/kde4/kde4.mk"
.include "../../devel/boost-libs/buildlink3.mk"
diff --git a/misc/rocs/distinfo b/misc/rocs/distinfo
index dfdec9a2288..962003a92fd 100644
--- a/misc/rocs/distinfo
+++ b/misc/rocs/distinfo
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.11 2015/11/03 23:49:48 agc Exp $
+$NetBSD: distinfo,v 1.12 2016/05/07 10:06:40 joerg Exp $
SHA1 (rocs-4.14.3.tar.xz) = a6fac0cee375f8bdb8c9241bde4bf9dda0f38704
RMD160 (rocs-4.14.3.tar.xz) = c148e7720239043b21d112ac32bfa47ca88accd0
SHA512 (rocs-4.14.3.tar.xz) = f0c1d35fcd17473459a3f63ce731c3cf27da51d64b53383f1c4ff280e8df256b80c2797e0c9012cad92601e2155f3e79118a8b8af20af2b3ce10c7ab40ca9d53
Size (rocs-4.14.3.tar.xz) = 1146328 bytes
+SHA1 (patch-RocsCore_DataStructures_Graph_GraphStructure.cpp) = 21b7e84ba223e120e01fd8eebf2393db28d23152
SHA1 (patch-RocsCore_LoadSave_Plugins_CMakeLists.txt) = ae4d15f9aa8fc2f19715db544a15ddbc2f0d98fb
diff --git a/misc/rocs/patches/patch-RocsCore_DataStructures_Graph_GraphStructure.cpp b/misc/rocs/patches/patch-RocsCore_DataStructures_Graph_GraphStructure.cpp
new file mode 100644
index 00000000000..f9e191c0135
--- /dev/null
+++ b/misc/rocs/patches/patch-RocsCore_DataStructures_Graph_GraphStructure.cpp
@@ -0,0 +1,25 @@
+$NetBSD: patch-RocsCore_DataStructures_Graph_GraphStructure.cpp,v 1.1 2016/05/07 10:06:40 joerg Exp $
+
+Don't force the argument types for std::make_pair, GCC 4.8 has problems
+figuring out the correct invocation.
+
+--- RocsCore/DataStructures/Graph/GraphStructure.cpp.orig 2016-05-06 17:05:52.000000000 +0000
++++ RocsCore/DataStructures/Graph/GraphStructure.cpp
+@@ -323,7 +323,7 @@ QMap<DataPtr,PointerList> Rocs::GraphStr
+ counter = 0;
+ foreach(PointerPtr p, pointerListAll) {
+ edges[counter] = Edge(node_mapping[p->from()->identifier()], node_mapping[p->to()->identifier()]);
+- edge_mapping[std::make_pair < int, int > (node_mapping[p->from()->identifier()], node_mapping[p->to()->identifier()])] = p;
++ edge_mapping[std::make_pair(node_mapping[p->from()->identifier()], node_mapping[p->to()->identifier()])] = p;
+ if (!p->property("value").toString().isEmpty()) {
+ weights[counter] = p->property("value").toDouble();
+ } else {
+@@ -333,7 +333,7 @@ QMap<DataPtr,PointerList> Rocs::GraphStr
+ // if graph is directed, also add back-edges
+ if (p->direction() == PointerType::Bidirectional) {
+ edges[counter] = Edge(node_mapping[p->to()->identifier()], node_mapping[p->from()->identifier()]);
+- edge_mapping[std::make_pair< int, int >(node_mapping[p->to()->identifier()], node_mapping[p->from()->identifier()])] = p;
++ edge_mapping[std::make_pair(node_mapping[p->to()->identifier()], node_mapping[p->from()->identifier()])] = p;
+ if (!p->property("value").toString().isEmpty()) {
+ weights[counter] = p->property("value").toDouble();
+ } else {