source: trunk/dports/python/py-tz/Portfile

Last change on this file was 153712, checked in by ram@…, 10 months ago

python/py-tz: update to 2016.7

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.2 KB
Line 
1# $Id: Portfile 153712 2016-10-08 16:32:06Z ryandesign@macports.org $
2
3PortSystem      1.0
4PortGroup       python 1.0
5
6name            py-tz
7set my_name     pytz
8version         2016.7
9categories-append     devel
10platforms       darwin
11supported_archs noarch
12maintainers     ram openmaintainer
13license         MIT
14
15description     World Timezone Definitions for Python
16long_description \
17    pytz brings the Olson tz database into Python. This library allows \
18    accurate and cross platform timezone calculations.
19
20homepage        https://pypi.python.org/pypi/pytz
21master_sites    pypi:p/pytz/
22distname        ${my_name}-${version}
23#use_zip         yes
24
25python.versions 26 27 33 34 35
26
27checksums       rmd160 f95d2dae26090a3da1046cf37f7e9a249947fdc7 \
28                sha256 8787de03f35f31699bcaf127e56ad14c00647965ed24d72dbaca87c6e4f843a3
29
30post-destroot {
31    if {${name} ne ${subport}} {
32    set docdir ${prefix}/share/doc/${subport}
33    xinstall -d ${destroot}${docdir}
34    xinstall -m 644 -W $worksrcpath CHANGES.txt LICENSE.txt README.txt \
35        ${destroot}${docdir}
36    }
37}
38
39if {${name} eq ${subport}} {
40  conflicts       py-tz-gae
41  livecheck.type  regex
42  livecheck.url   ${homepage}
43  livecheck.regex ${my_name}-(\\d+(?:\\.\\d+)*)
44} else {
45  conflicts       py${python.version}-tz-gae
46  livecheck.type  none
47}
Note: See TracBrowser for help on using the repository browser.