Ticket #42584: patch-py-libcloud.diff
File patch-py-libcloud.diff, 2.4 KB (added by petrrr, 11 years ago) |
---|
-
Portfile
old new 8 8 set _n [string index ${_name} 0] 9 9 10 10 name py-libcloud 11 version 0.1 3.311 version 0.14.1 12 12 categories-append net 13 13 platforms darwin 14 14 supported_archs noarch 15 16 15 license Apache-2 17 16 18 17 maintainers bo.ingv.it:Peter.Danecek openmaintainer … … 30 29 master_sites http://www.apache.org/dist/libcloud/ \ 31 30 https://pypi.python.org/packages/source/${_n}/${_name}/ 32 31 33 checksums md5 0 578aeb0fb5fbff04447ee15d45e4032\34 sha1 6225e7387a66a2e65e2113847f17a2683b18c173\35 rmd160 1cf9305e23a785f0395a4798b5d9007136962cc4\36 sha256 8f1d40a37951a90ad957a73595316ed2f1a6e466e231f4e36be6d1a6d997673f32 checksums md5 0a645fcf3d8615ff1065f4ff9f663af4 \ 33 sha1 e587c9c3519e7d061f3c2fb232af8ace593c8156 \ 34 rmd160 6921ef826426109e1e92dde60ea266a56bcb234a \ 35 sha256 fafe7a0945aff31fe24bbb0e8598427725ae235ce8541c776159b88af8b17a28 37 36 38 37 python.versions 26 27 32 33 34 39 38 39 livecheck.type regex 40 livecheck.url [lindex ${master_sites} 0] 41 livecheck.regex ">${_name}-(\\d+(\\.\\d+)+)\\${extract.suffix}<" 42 40 43 if {${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 41 57 # Adding documentation and examples 42 58 post-destroot { 43 59 set dest_doc ${destroot}${prefix}/share/doc/${subport} 44 60 xinstall -d ${dest_doc} 45 61 xinstall -m 755 -W ${worksrcpath} \ 46 CHANGES \47 HACKING \48 62 LICENSE \ 49 63 NOTICE \ 50 README \ 64 CHANGES.rst \ 65 README.rst \ 51 66 ${dest_doc} 52 67 53 68 eval copy [glob ${worksrcpath}/example_*.py] ${dest_doc}/examples 54 69 } 55 }56 70 57 livecheck.type regex 58 livecheck.url [lindex ${master_sites} 0] 59 livecheck.regex ">${_name}-(\\d+(\\.\\d+)+)\\${extract.suffix}<" 71 livecheck.type none 72 }