Skip to content
Permalink
Browse files

py-re2: update to 1.07, add py37

- install files in post-destroot
- enable tests
  • Loading branch information
reneeotten committed Apr 6, 2019
1 parent 9affed2 commit 1cdd493236f55de6cb59afe1e24ae977109e2379
Showing with 24 additions and 6 deletions.
  1. +24 −6 python/py-re2/Portfile
@@ -5,7 +5,8 @@ PortGroup cxx11 1.1
PortGroup python 1.0
PortGroup github 1.0

github.setup facebook pyre2 1.0.6 v
github.setup facebook pyre2 1.0.7 v
revision 0
name py-re2
categories-append devel
license BSD
@@ -17,14 +18,31 @@ long_description pyre2 is a Python extension that wraps Google's RE2 regular
expression library. It implements many of the features of \
Python's built-in re module with compatible interfaces.

checksums rmd160 89241df1d53076189327e53d0e99efa62091956d \
sha256 b332f9fb53318fc8410e047e29b0a0c6952fd1c1eebf8ee06f72e2f637c909dc \
size 11291
checksums rmd160 8d370f3855fd0daacb35880e26db284acc64fc77 \
sha256 236ed6f80d9db39888d5cc2abde5ca62d89e13a0f7ebdee24e371b4ddb29cc12 \
size 11685

python.versions 27
python.versions 27 37

if {${name} ne ${subport}} {
depends_lib-append port:re2
depends_build-append \
port:py${python.version}-setuptools

depends_lib-append \
port:re2

post-destroot {
set docdir ${prefix}/share/doc/${subport}
xinstall -d ${destroot}${docdir}
xinstall -m 0644 -W ${worksrcpath} README.rst LICENSE \
CONTRIBUTING.md CODE_OF_CONDUCT.md ${destroot}${docdir}
}

pre-test {
test.env PYTHONPATH=[glob -nocomplain ${worksrcpath}/build/lib*]
}
test.run yes
test.cmd ${python.bin} setup.py

livecheck.type none
}

0 comments on commit 1cdd493

Please sign in to comment.
You can’t perform that action at this time.