[120065] trunk/dports/graphics/asymptote

mojca at macports.org mojca at macports.org
Wed May 14 15:12:51 PDT 2014


Revision: 120065
          https://trac.macports.org/changeset/120065
Author:   mojca at macports.org
Date:     2014-05-14 15:12:51 -0700 (Wed, 14 May 2014)
Log Message:
-----------
asymptote: upstream patch for libc++ (#40979)

Modified Paths:
--------------
    trunk/dports/graphics/asymptote/Portfile

Added Paths:
-----------
    trunk/dports/graphics/asymptote/files/
    trunk/dports/graphics/asymptote/files/patch-prc-writePRC.h.diff

Modified: trunk/dports/graphics/asymptote/Portfile
===================================================================
--- trunk/dports/graphics/asymptote/Portfile	2014-05-14 22:09:19 UTC (rev 120064)
+++ trunk/dports/graphics/asymptote/Portfile	2014-05-14 22:12:51 UTC (rev 120065)
@@ -50,6 +50,8 @@
     }
 }
 
+patchfiles          patch-prc-writePRC.h.diff
+
 post-activate {
   # run `mktexlsr` to make sure the asymptote files are found:
   system "mktexlsr"

Added: trunk/dports/graphics/asymptote/files/patch-prc-writePRC.h.diff
===================================================================
--- trunk/dports/graphics/asymptote/files/patch-prc-writePRC.h.diff	                        (rev 0)
+++ trunk/dports/graphics/asymptote/files/patch-prc-writePRC.h.diff	2014-05-14 22:12:51 UTC (rev 120065)
@@ -0,0 +1,35 @@
+# https://sourceforge.net/p/asymptote/code/5634/
+#
+--- prc/writePRC.h.orig
++++ prc/writePRC.h
+@@ -25,9 +25,15 @@
+ #include <vector>
+ #include <deque>
+ #include <list>
++
+ #ifdef __GNUC__
++#if __cplusplus >= 201103L
++#include <forward_list>
++#else
+ #include <ext/slist>
+ #endif
++#endif
++
+ #include <map>
+ #include <iostream>
+ #include "PRCbitStream.h"
+@@ -225,7 +231,13 @@
+   std::deque<PRCSingleAttribute> attribute_keys;
+ };
+ #ifdef __GNUC__
++
++#if __cplusplus >= 201103L
++typedef forward_list<PRCAttribute> PRCAttributeList;
++#else
+ typedef __gnu_cxx::slist<PRCAttribute> PRCAttributeList;
++#endif
++
+ #else
+ typedef std::list<PRCAttribute> PRCAttributeList;
+ #endif
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140514/af11f746/attachment-0001.html>


More information about the macports-changes mailing list