# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 # $Id$ PortSystem 1.0 name re2 version 20130802 categories devel textproc maintainers hum openmaintainer 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 038184ac01eb2417455d9c9c3fbf751a2247629e \ sha256 17f26acb64745e2bc26dbb9c0fb6d32f0f68965d1c1ce2ad3cd50766b55cdd8b extract.suffix .tgz worksrcdir ${name} patchfiles patch-Makefile.diff post-patch { reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/Makefile } use_configure no variant universal {} build.args CXX="${configure.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} }