Ticket #53648: Portfile-py-isodate.diff

File Portfile-py-isodate.diff, 2.1 KB (added by esafak (Emre Şafak), 8 years ago)
  • Portfile

    diff --git a/Users/esafak/Downloads/Portfile b/Portfile
    index 8a163b7..3a02b88 100644
    old new  
    11# -*- 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
    22
    33PortSystem          1.0
    4 PortGroup python    1.0
     4PortGroup           python 1.0
    55
    6 name                py-isodate
    7 version             0.5.0
     6set base_name       isodate
     7name                py-$base_name
     8version             0.5.4
     9python.versions     26 27 33 34 35 36
    810
    911license             BSD
    1012platforms           darwin
    11 maintainers         nomaintainer
     13maintainers         @esafak
    1214
    1315description         An ISO 8601 date/time/duration parser and formatter
    14 
    1516long_description    This module implements ISO 8601 date, time and duration \
    1617                    parsing. The implementation follows ISO8601:2004 standard, \
    1718                    and implements only date/time representations mentioned in \
    1819                    the standard. If something is not mentioned there, then it \
    1920                    is treated as non existent, and not as an allowed option.
    2021
    21 homepage            https://pypi.python.org/pypi/isodate
    22 master_sites        pypi:i/isodate
    23 distname            isodate-${version}
     22homepage            https://pypi.python.org/pypi/$base_name
     23master_sites        pypi:i/$base_name
    2424
    25 checksums           md5     9a267e9327feb3d021cae26002ba6e0e \
    26                     rmd160  4154ab9e03a9a35649569d4dc65bae1d40f58d88 \
    27                     sha256  f3e436a9c321882942a6c62e9d8ea49787b4c0ea7f7bb3cbd047bcf76bd0dfbe
     25checksums           rmd160  8b483cedd72d92c3d0182a0d409672e1e21dc893 \
     26                    sha256  42105c41d037246dc1987e36d96f3752ffd5c0c24834dd12e4fdbe1e79544e31
    2827
    29 python.versions     26 27 33 34
     28distname            $base_name-${version}
    3029
    3130if {${name} ne ${subport}} {
    3231    depends_build-append    port:py${python.version}-setuptools
    if {${name} ne ${subport}} { 
    4342} else {
    4443    livecheck.type  regex
    4544    livecheck.url   ${homepage}
    46     livecheck.regex {isodate-([0-9\.]+)\.tar\.gz}
     45    livecheck.regex $base_name (\\d+(\\.\\d+)+)
    4746}