Changeset 98963


Ignore:
Timestamp:
Oct 22, 2012, 4:36:26 PM (12 years ago)
Author:
jmr@…
Message:

py*-curl: unify

Location:
trunk/dports/python
Files:
3 deleted
1 edited
1 copied

Legend:

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

    r87307 r98963  
    22
    33PortSystem 1.0
    4 PortGroup python24 1.0
     4PortGroup python 1.0
    55
    66name                    py-curl
     
    1717master_sites    ${homepage}/download
    1818distname                pycurl-${version}
    19 checksums               sha1 3fb59eca1461331bb9e9e8d6fe3b23eda961a416
     19checksums       md5 919d58fe37e69fe87ce4534d8b6a1c7b \
     20                sha1 3fb59eca1461331bb9e9e8d6fe3b23eda961a416 \
     21                rmd160 dab547b3db67ed30cafb556a1a383f567064de49
    2022
    21 depends_lib-append      port:curl
     23python.versions 24 25 26 27
    2224
    23 build.args              --curl-config=${prefix}/bin/curl-config
     25if {$subport != $name} {
     26    depends_lib-append  port:curl
    2427
    25 test.run                yes
    26 test.target
    27 test.env                PYTHONPATH=./build/lib*
    28 test.cmd                ${python.bin} tests/test_internals.py tests/test_memleak.py
     28    build.args          --curl-config=${prefix}/bin/curl-config
    2929
    30 destroot.args   ${build.args}
     30    test.run            yes
     31    test.target
     32    test.env            PYTHONPATH=./build/lib*
     33    test.cmd            ${python.bin} tests/test_internals.py tests/test_memleak.py
    3134
    32 post-destroot {
    33         file delete -force ${destroot}${prefix}/share/doc/${name}
    34         file rename ${destroot}${prefix}/share/doc/pycurl \
    35                 ${destroot}${prefix}/share/doc/${name}
     35    destroot.args       ${build.args}
     36
     37    if {${python.version} <= 25} {
     38        post-destroot {
     39            file delete -force ${destroot}${prefix}/share/doc/${subport}
     40            file rename ${destroot}${prefix}/share/doc/pycurl \
     41                ${destroot}${prefix}/share/doc/${subport}
     42        }
     43    }
     44
     45    livecheck.type      none
     46} else {
     47    livecheck.type      regex
     48    livecheck.url       ${homepage}
     49    livecheck.regex     PYCURL (\[0-9\\.\]+)
    3650}
    37 
    38 livecheck.type  regex
    39 livecheck.url   ${homepage}
    40 livecheck.regex PYCURL (\[0-9\\.\]+)
Note: See TracChangeset for help on using the changeset viewer.