[94305] trunk/dports/kde/kdevelop
nicos at macports.org
nicos at macports.org
Thu Jun 14 09:13:07 PDT 2012
Revision: 94305
https://trac.macports.org/changeset/94305
Author: nicos at macports.org
Date: 2012-06-14 09:13:07 -0700 (Thu, 14 Jun 2012)
Log Message:
-----------
kdevelop: enabling clang also on 10.6 (ticket #34859)
Modified Paths:
--------------
trunk/dports/kde/kdevelop/Portfile
Added Paths:
-----------
trunk/dports/kde/kdevelop/files/patch-parser.diff
Modified: trunk/dports/kde/kdevelop/Portfile
===================================================================
--- trunk/dports/kde/kdevelop/Portfile 2012-06-14 16:09:56 UTC (rev 94304)
+++ trunk/dports/kde/kdevelop/Portfile 2012-06-14 16:13:07 UTC (rev 94305)
@@ -33,8 +33,17 @@
port:kate \
port:oxygen-icons
+platform darwin 10 {
+ #Adjusting flags for clang on SL and
+ #patching <unordered_map> (ticket #34859)
+ if {${configure.compiler} == "clang"} {
+ patchfiles-append patch-parser.diff
+ configure.args-append -DCMAKE_CXX_FLAGS="-Wno-reserved-user-defined-literal"
+ }
+}
+
#Adjusting configure flags for Clang on Lion (ticket #34545)
-if {${configure.compiler} == "clang"} {
+platform darwin 11 {
patchfiles-append patch-declarationbuilder.diff patch-context.diff
configure.args-append -DCMAKE_CXX_FLAGS="-Wno-reserved-user-defined-literal -stdlib=libc++"
}
Added: trunk/dports/kde/kdevelop/files/patch-parser.diff
===================================================================
--- trunk/dports/kde/kdevelop/files/patch-parser.diff (rev 0)
+++ trunk/dports/kde/kdevelop/files/patch-parser.diff 2012-06-14 16:13:07 UTC (rev 94305)
@@ -0,0 +1,23 @@
+--- languages/cpp/parser/parser.h.orig 2012-04-14 04:54:26.000000000 +0900
++++ languages/cpp/parser/parser.h 2012-06-08 11:17:38.000000000 +0900
+@@ -34,14 +34,15 @@
+ #include <hash_map>
+ using namespace stdext;
+
+-#elif defined GXX_LT_4_3
++//#elif defined GXX_LT_4_3
++#else
+ #include <ext/hash_map>
+ using namespace __gnu_cxx;
+
+-#else // CXX-0
+-#include <unordered_map>
+-template <class Key, class Data>
+-class hash_map : public std::unordered_map<Key, Data> { };
++//#else // CXX-0
++//#include <unordered_map>
++//template <class Key, class Data>
++//class hash_map : public std::unordered_map<Key, Data> { };
+ #endif
+
+ class TokenStream;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120614/d33f47de/attachment.html>
More information about the macports-changes
mailing list