# $Id: Portfile 96405 2012-08-09 02:59:29Z ram@macports.org $ PortSystem 1.0 PortGroup python 1.0 name py-tz set my_name pytz version 2012d categories python devel platforms darwin supported_archs noarch maintainers ram 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 http://pytz.sourceforge.net/ master_sites http://cheeseshop.python.org/packages/source/p/pytz/ distname ${my_name}-${version} #use_zip yes python.versions 24 25 26 27 31 32 checksums rmd160 560d03cd10ae95062badffc6adeb5f31b6d2112b \ sha256 89f71ea0ed2b4d0649cd4fdd0bf9cc668032ef7e1d8a174cd08e71e320402833 post-destroot { if {${name} != ${subport}} { set docdir ${prefix}/share/doc/${subport} xinstall -d ${destroot}${docdir} xinstall -m 644 -W $worksrcpath CHANGES.txt LICENSE.txt README.txt \ ${destroot}${docdir} } } if {${name} == ${subport}} { livecheck.type regex livecheck.url ${master_sites}?C=M&O=D livecheck.regex ${my_name}-(\\d+\\w?) } else { livecheck.type none }