Ticket #42584: patch-py-libcloud.diff

File patch-py-libcloud.diff, 2.4 KB (added by petrrr, 10 years ago)

patch for python/py-libcloud/Portfile

  • Portfile

    old new  
    88set _n              [string index ${_name} 0]
    99
    1010name                py-libcloud
    11 version             0.13.3
     11version             0.14.1
    1212categories-append   net
    1313platforms           darwin
    1414supported_archs     noarch
    15 
    1615license             Apache-2
    1716
    1817maintainers         bo.ingv.it:Peter.Danecek openmaintainer
     
    3029master_sites        http://www.apache.org/dist/libcloud/ \
    3130                    https://pypi.python.org/packages/source/${_n}/${_name}/
    3231
    33 checksums           md5     0578aeb0fb5fbff04447ee15d45e4032 \
    34                     sha1    6225e7387a66a2e65e2113847f17a2683b18c173 \
    35                     rmd160  1cf9305e23a785f0395a4798b5d9007136962cc4 \
    36                     sha256  8f1d40a37951a90ad957a73595316ed2f1a6e466e231f4e36be6d1a6d997673f
     32checksums           md5     0a645fcf3d8615ff1065f4ff9f663af4 \
     33                    sha1    e587c9c3519e7d061f3c2fb232af8ace593c8156 \
     34                    rmd160  6921ef826426109e1e92dde60ea266a56bcb234a \
     35                    sha256  fafe7a0945aff31fe24bbb0e8598427725ae235ce8541c776159b88af8b17a28
    3736
    3837python.versions     26 27 32 33 34
    3938
     39livecheck.type  regex
     40livecheck.url   [lindex ${master_sites} 0]
     41livecheck.regex ">${_name}-(\\d+(\\.\\d+)+)\\${extract.suffix}<"
     42
    4043if {${name} ne ${subport}} {
     44    depends_build-append    port:py${python.version}-setuptools
     45
     46    # Testing
     47    test.run            yes
     48
     49    if {${test.run}} {
     50        depends_build-append    port:py${python.version}-mock
     51
     52        set test_dir ${worksrcpath}/libcloud/test
     53        pre-test  { copy ${test_dir}/secrets.py-dist ${test_dir}/secrets.py }
     54        post-test { delete ${test_dir}/secrets.py }
     55    }
     56
    4157    # Adding documentation and examples
    4258    post-destroot {
    4359        set dest_doc ${destroot}${prefix}/share/doc/${subport}
    4460        xinstall -d  ${dest_doc}
    4561        xinstall -m 755 -W ${worksrcpath} \
    46             CHANGES \
    47             HACKING \
    4862            LICENSE \
    4963            NOTICE \
    50             README \
     64            CHANGES.rst \
     65            README.rst \
    5166                ${dest_doc}
    5267
    5368        eval copy [glob ${worksrcpath}/example_*.py] ${dest_doc}/examples
    5469    }
    55 }
    5670
    57 livecheck.type      regex
    58 livecheck.url       [lindex ${master_sites} 0]
    59 livecheck.regex     ">${_name}-(\\d+(\\.\\d+)+)\\${extract.suffix}<"
     71    livecheck.type  none
     72}