[99553] trunk/dports/devel/re2/Portfile

hum at macports.org hum at macports.org
Fri Nov 9 14:19:22 PST 2012


Revision: 99553
          http://trac.macports.org//changeset/99553
Author:   hum at macports.org
Date:     2012-11-09 14:19:21 -0800 (Fri, 09 Nov 2012)
Log Message:
-----------
re2: update to 20121029; fetch tarball and enable livecheck; install additional documents; fix LDFLAGS for universal build; see #36894.

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

Modified: trunk/dports/devel/re2/Portfile
===================================================================
--- trunk/dports/devel/re2/Portfile	2012-11-09 22:03:57 UTC (rev 99552)
+++ trunk/dports/devel/re2/Portfile	2012-11-09 22:19:21 UTC (rev 99553)
@@ -4,21 +4,28 @@
 PortSystem          1.0
 
 name                re2
-fetch.type          hg
-hg.url              https://code.google.com/p/re2/
-hg.tag              d49d9934b9aa
-version             20111209-${hg.tag}
+version             20121029
 categories          devel textproc
-platforms           darwin
 maintainers         hum openmaintainer
-license             BSD
 
-homepage            http://code.google.com/p/re2/
 description         an efficient, principled regular expression library
+
 long_description    RE2 is a fast, safe, thread-friendly alternative to \
                     backtracking regular expression engines like those \
                     used in PCRE, Perl, and Python. It is a C++ library.
 
+homepage            http://code.google.com/p/re2/
+platforms           darwin
+license             BSD
+
+master_sites        googlecode
+checksums           rmd160  9054fcaed53356212f27afc53f49489184356bdf \
+                    sha256  197f3169e23f18367a8b9148c5d622faf19b72d844b2df2c9ec4475e68492882
+
+extract.suffix      .tgz
+
+worksrcdir          ${name}
+
 patchfiles          patch-Makefile.diff
 
 post-patch {
@@ -30,11 +37,16 @@
 variant universal   {}
 
 build.args          CXX="${configure.cxx}" \
-                    CXXFLAGS="${configure.cxxflags} [get_canonical_archflags cxx]"
+                    CXXFLAGS="${configure.cxxflags} [get_canonical_archflags cxx]" \
+                    LDFLAGS="${configure.ldflags} [get_canonical_archflags cxx]"
 
 post-destroot {
     set libpath ${prefix}/lib/libre2.0.dylib
     system "install_name_tool -id ${libpath} ${destroot}${libpath}"
+    # install additional documents.
+    set docdir ${prefix}/share/doc/re2
+    xinstall -d ${destroot}${docdir}
+    xinstall -m 644 -W ${worksrcpath} \
+        AUTHORS CONTRIBUTORS LICENSE README doc/syntax.html doc/syntax.txt \
+        ${destroot}${docdir}
 }
-
-livecheck.type      none
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121109/014e1ca7/attachment.html>


More information about the macports-changes mailing list