# -*- 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 20140304 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 33f49bba5e7f25076f2531af8ce3cc4a0e3916b8 \ sha256 0bffd1a57de2f4b218ca0f77d8850bfd59c82944a98256c6edba25260e0196a7 platform darwin { if {${os.major} <= 10} { version 20131024 checksums rmd160 a96947ba23872a197ce279e33eeb45e955ac0bf6 \ sha256 4cbf7a98e79ba0c3f83b865049bcf3c6d60593b1a7accb60e8e10745a97cd62b } elseif {${os.major} < 13} { version 20130622 checksums rmd160 4327e5f8c84c92b04de59a05fa4f4adb0fc7f8cb \ sha256 eee28bac36d47df9b0b62cf0959cb919fc23389431e26d5ee44b42c35e36fb0d } } 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} }