|
|
@@ -4,33 +4,49 @@ PortSystem 1.0 |
|
|
PortGroup python 1.0 |
|
|
|
|
|
name py-pyicu |
|
|
version 2.1 |
|
|
version 2.3 |
|
|
revision 0 |
|
|
categories-append textproc |
|
|
platforms darwin |
|
|
maintainers nomaintainer |
|
|
license MIT |
|
|
|
|
|
description Python extension wrapping IBM's International \ |
|
|
Components for Unicode C++ library (ICU) |
|
|
|
|
|
description Python extension wrapping the ICU C++ API |
|
|
long_description ${description} |
|
|
|
|
|
homepage https://pypi.python.org/pypi/PyICU/ |
|
|
homepage https://github.com/ovalhub/pyicu |
|
|
master_sites pypi:P/PyICU/ |
|
|
distname PyICU-${version} |
|
|
|
|
|
checksums rmd160 0c76f4f1ebbde3adf8c2ca2e48a5cb25f9d5925f \ |
|
|
sha256 5fdab441c91adf9ceb6373dfdca18fbde3676f906babda45d85cf0fa8e43fd8a \ |
|
|
size 203402 |
|
|
checksums rmd160 c7ddb3a7f61e24ce49f7e80b8c0ddb8722b5d255 \ |
|
|
sha256 419d389b014ee48f31014920f300c842df0770a283ab1fb4de82a6af334cac4d \ |
|
|
size 214710 |
|
|
|
|
|
python.versions 27 34 35 36 37 |
|
|
|
|
|
if {${name} ne ${subport}} { |
|
|
depends_build-append \ |
|
|
port:py${python.version}-setuptools |
|
|
|
|
|
depends_lib-append port:icu |
|
|
|
|
|
pre-test { |
|
|
test.env PYTHONPATH=[glob -nocomplain ${worksrcpath}/build/lib*] |
|
|
} |
|
|
depends_test-append port:py${python.version}-pytest \ |
|
|
port:py${python.version}-six |
|
|
test.run yes |
|
|
test.cmd py.test-${python.branch} |
|
|
test.target |
|
|
|
|
|
post-destroot { |
|
|
set docdir ${prefix}/share/doc/${subport} |
|
|
xinstall -d ${destroot}${docdir} |
|
|
xinstall -m 0644 -W ${worksrcpath} LICENSE CREDITS \ |
|
|
README.md CHANGES ${destroot}${docdir} |
|
|
} |
|
|
|
|
|
livecheck.type none |
|
|
} else { |
|
|
livecheck.type regex |
|
|
livecheck.url ${homepage} |
|
|
livecheck.regex PyICU-(\[0-9.\]+)${extract.suffix} |
|
|
livecheck.name PyICU |
|
|
} |