source: trunk/dports/devel/re2/Portfile

Last change on this file was 117681, checked in by hum@…, 4 years ago

re2: update to 20140304.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1# -*- 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
2# $Id: Portfile 117681 2014-03-08 00:01:06Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                re2
7version             20140304
8categories          devel textproc
9maintainers         hum openmaintainer
10
11description         an efficient, principled regular expression library
12
13long_description    RE2 is a fast, safe, thread-friendly alternative to \
14                    backtracking regular expression engines like those \
15                    used in PCRE, Perl, and Python. It is a C++ library.
16
17homepage            http://code.google.com/p/re2/
18platforms           darwin
19license             BSD
20
21master_sites        googlecode
22checksums           rmd160  33f49bba5e7f25076f2531af8ce3cc4a0e3916b8 \
23                    sha256  0bffd1a57de2f4b218ca0f77d8850bfd59c82944a98256c6edba25260e0196a7
24
25platform darwin {
26    if {${os.major} <= 10} {
27        version     20131024
28        checksums   rmd160  a96947ba23872a197ce279e33eeb45e955ac0bf6 \
29                    sha256  4cbf7a98e79ba0c3f83b865049bcf3c6d60593b1a7accb60e8e10745a97cd62b
30    } elseif {${os.major} < 13} {
31        version     20130622
32        checksums   rmd160  4327e5f8c84c92b04de59a05fa4f4adb0fc7f8cb \
33                    sha256  eee28bac36d47df9b0b62cf0959cb919fc23389431e26d5ee44b42c35e36fb0d
34    }
35}
36
37extract.suffix      .tgz
38
39worksrcdir          ${name}
40
41patchfiles          patch-Makefile.diff
42
43post-patch {
44    reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/Makefile
45}
46
47use_configure       no
48
49variant universal   {}
50
51build.args          CXX="${configure.cxx}" \
52                    CXXFLAGS="${configure.cxxflags} [get_canonical_archflags cxx]" \
53                    LDFLAGS="${configure.ldflags} [get_canonical_archflags cxx]"
54
55post-destroot {
56    set libpath ${prefix}/lib/libre2.0.dylib
57    system "install_name_tool -id ${libpath} ${destroot}${libpath}"
58    # install additional documents.
59    set docdir ${prefix}/share/doc/re2
60    xinstall -d ${destroot}${docdir}
61    xinstall -m 644 -W ${worksrcpath} \
62        AUTHORS CONTRIBUTORS LICENSE README doc/syntax.html doc/syntax.txt \
63        ${destroot}${docdir}
64}
Note: See TracBrowser for help on using the repository browser.