Changeset 100134


Ignore:
Timestamp:
Nov 30, 2012, 12:50:17 AM (8 years ago)
Author:
jmr@…
Message:

py*-dateutil: unify

Location:
trunk/dports/python
Files:
2 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/python/py-dateutil/Portfile

    r92662 r100134  
    77name              py-dateutil
    88set my_name       python-dateutil
    9 version           1.5
     9version           2.0
    1010revision          1
    11 categories        python
    1211platforms         darwin
    1312supported_archs   noarch
     
    2221distname          ${my_name}-${version}
    2322
    24 checksums         md5 35f3732db3f2cc4afdc68a8533b60a52 \
     23checksums         md5 22297f7e891bcd79a80d9446d8b20542 \
     24                  sha1 946337a273866cc4f51d32c86cdbc4209ab84a43 \
     25                  rmd160 a7ae3c4948c69471c95466236a388d63fcdac120
     26
     27python.versions   24 25 26 27 31 32
     28
     29if {${subport} != ${name}} {
     30    if {${python.version} < 30} {
     31        version 1.5
     32        checksums md5 35f3732db3f2cc4afdc68a8533b60a52 \
    2533                  sha1 f489e1a70e415731d401422f711670288571040b \
    2634                  rmd160 5f7c80ec9bf68f1708213596a994130964e91e52
    27 
    28 python.versions   24 25 26 27
    29 
    30 if {${subport} != ${name}} {
     35        distname  ${my_name}-${version}
     36    }
    3137    depends_run   path:${python.pkgd}/pytz:py${python.version}-tz \
    3238                  port:py${python.version}-distribute
     
    3844
    3945    post-destroot {
    40       if {${name} != ${subport}} {
    4146      set docdir ${prefix}/share/doc/${subport}
    4247      xinstall -d ${destroot}${docdir}
    4348      xinstall -m 0644 -W ${worksrcpath} LICENSE README NEWS ${destroot}${docdir}
    44       }
    4549    }
    4650}
     
    4852if {${name} == ${subport}} {
    4953    livecheck.type    regex
     54    livecheck.regex   /${my_name}-(\\d+(?:\\.\\d+)*)
     55} elseif {${subport} == "py27-dateutil"} {
     56    livecheck.type    regex
    5057    livecheck.regex   /${my_name}-(1.(\\d+)*)
    5158} else {
Note: See TracChangeset for help on using the changeset viewer.