Permalink
Fetching contributors…
Cannot retrieve contributors at this time
50 lines (41 sloc) 1.47 KB
# -*- 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
PortSystem 1.0
PortGroup python 1.0
name py-tz
set my_name pytz
version 2018.5
categories-append devel
platforms darwin
supported_archs noarch
maintainers {ram @skymoo} openmaintainer
license MIT
description World Timezone Definitions for Python
long_description \
pytz brings the Olson tz database into Python. This library allows \
accurate and cross platform timezone calculations.
homepage https://pypi.python.org/pypi/pytz
master_sites pypi:1b/50/4cdc62fc0753595fc16c8f722a89740f487c6e5670c644eb8983946777be \
pypi:p/pytz/
distname ${my_name}-${version}
#use_zip yes
python.versions 27 34 35 36 37
checksums rmd160 a5030124679cd95a35e3bb3b4a0ab830a4f62c12 \
sha256 ffb9ef1de172603304d9d2819af6f5ece76f2e85ec10692a524dd876e72bf277 \
size 318799
post-destroot {
if {${name} ne ${subport}} {
set docdir ${prefix}/share/doc/${subport}
xinstall -d ${destroot}${docdir}
xinstall -m 644 -W $worksrcpath LICENSE.txt README.txt \
${destroot}${docdir}
}
}
if {${name} eq ${subport}} {
conflicts py-tz-gae
livecheck.type regex
livecheck.url ${homepage}
livecheck.regex ${my_name}-(\\d+(?:\\.\\d+)*)
} else {
conflicts py${python.version}-tz-gae
livecheck.type none
}