[63310] trunk/dports/devel/boost/Portfile

nox at macports.org nox at macports.org
Mon Feb 1 08:24:18 PST 2010


Revision: 63310
          http://trac.macports.org/changeset/63310
Author:   nox at macports.org
Date:     2010-02-01 08:24:18 -0800 (Mon, 01 Feb 2010)
Log Message:
-----------
Create new variant `regex_match_extra` in boost (#23503)

Modified Paths:
--------------
    trunk/dports/devel/boost/Portfile

Modified: trunk/dports/devel/boost/Portfile
===================================================================
--- trunk/dports/devel/boost/Portfile	2010-02-01 16:24:06 UTC (rev 63309)
+++ trunk/dports/devel/boost/Portfile	2010-02-01 16:24:18 UTC (rev 63310)
@@ -5,6 +5,7 @@
 
 name            boost
 version         1.41.0
+license         Boost-1.0
 revision        2
 categories      devel
 platforms       darwin
@@ -180,6 +181,19 @@
     }
 }
 
+variant regex_match_extra description \
+        "Enable access to extended capture information of submatches in Boost.Regex" {
+    notes \
+        You enabled +regex_match_extra variant, see the following page for an \
+        exhaustive list of the consequences of this feature:\n\t \
+        http://www.boost.org/doc/libs/1_41_0/libs/regex/doc/html/boost_regex/ref/sub_match.html
+
+    post-patch {
+        reinplace {/#define BOOST_REGEX_MATCH_EXTRA/s:^// ::} \
+            ${worksrcpath}/boost/regex/user.hpp
+    }
+}
+
 variant universal {
     build.args-append   pch=off
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100201/a6e10f95/attachment-0001.html>


More information about the macports-changes mailing list