Changeset 99008


Ignore:
Timestamp:
Oct 23, 2012, 5:05:41 PM (12 years ago)
Author:
jmr@…
Message:

py*-celementtree: unify

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

Legend:

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

    r93592 r99008  
    22
    33PortSystem 1.0
    4 PortGroup python24 1.0
     4PortGroup python 1.0
    55
    66name                    py-celementtree
    77version                 1.0.5-20051216
    8 categories              python
     8license                 MIT BSD
    99platforms               darwin
    10 maintainers             nomaintainer
     10maintainers             afb openmaintainer
    1111description             C implementation of the ElementTree API, py-elementtree
    1212long_description        The cElementTree module is a C implementation of the \
     
    2121use_zip                 yes
    2222
    23 depends_lib-append      port:py24-elementtree
     23python.versions 24 25 26
    2424
    25 test.run                yes
    26 test.cmd                ${python.bin}
    27 test.target             selftest.py
     25if {$subport != $name} {
     26        depends_lib-append      port:py${python.version}-elementtree
    2827
    29 post-destroot   {
    30         xinstall -m 644 ${worksrcpath}/README ${destroot}${prefix}/share/doc/${name}
    31         xinstall -m 644 -W ${worksrcpath}/samples simple-ns.xml simple.xml \
    32                 ${destroot}${prefix}/share/doc/${name}/examples
     28        test.run                yes
     29        test.cmd                ${python.bin}
     30        test.target             selftest.py
     31
     32        post-destroot   {
     33                xinstall -m 644 -W ${worksrcpath} CHANGES README \
     34                        ${destroot}${prefix}/share/doc/${subport}
     35                xinstall -m 755 -d ${destroot}${prefix}/share/examples/${subport}
     36                eval xinstall -m 644 [glob ${worksrcpath}/samples/*] \
     37                        ${destroot}${prefix}/share/examples/${subport}
     38        }
     39        livecheck.type  none
     40} else {
     41        livecheck.type  regex
     42        livecheck.url   http://effbot.org/downloads/
     43        livecheck.regex cElementTree-(\[0-9\.-\]+).tar.gz
    3344}
    34 livecheck.type  regex
    35 livecheck.url   http://effbot.org/downloads/
    36 livecheck.regex cElementTree-(\[0-9\.-\]+).tar.gz
Note: See TracChangeset for help on using the changeset viewer.