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

Last change on this file was 149990, checked in by mf2k@…, 17 months ago

py-dateutil: Update to version 2.5.3

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1# -*- 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
2# $Id: Portfile 149990 2016-07-07 19:38:13Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           python 1.0
6
7set _name           python-dateutil
8set _n              [string index ${_name} 0]
9
10name                py-dateutil
11version             2.5.3
12platforms           darwin
13supported_archs     noarch
14maintainers         nomaintainer
15license             BSD
16
17description         powerful extensions to the standard python datetime module
18long_description    ${description}
19
20homepage            https://pypi.python.org/pypi/${_name}
21master_sites        pypi:${_n}/${_name}/
22distname            ${_name}-${version}
23
24checksums           md5     05ffc6d2cc85a7fd93bb245807f715ef \
25                    rmd160  bc4601d93270402673aa4c2e5c7719924bbcb322 \
26                    sha256  1408fdb07c6a1fa9997567ce3fcee6a337b39a503d80699e0f213de4aa4b32ed
27
28python.versions     27 34 35
29
30if {${name} ne ${subport}} {
31    depends_build       port:py${python.version}-setuptools
32    depends_run         path:${python.pkgd}/pytz:py${python.version}-tz
33    depends_lib-append  port:py${python.version}-six
34
35    test.run        yes
36    test.cmd        ${python.bin} setup.py
37    test.target     test
38    test.env        PYTHONPATH=${worksrcpath}/build/lib
39
40    post-destroot {
41        set docdir ${prefix}/share/doc/${subport}
42        xinstall -d ${destroot}${docdir}
43        xinstall -m 0644 -W ${worksrcpath} \
44            LICENSE README.rst NEWS \
45                ${destroot}${docdir}
46    }
47
48    livecheck.type  none
49} else {
50    livecheck.type  regex
51    livecheck.url   https://pypi.python.org/pypi/${_name}/json
52    livecheck.regex "\"${_name}-(\[.\\d\]+)\\${extract.suffix}\""
53}
Note: See TracBrowser for help on using the repository browser.