Changeset 118345 for trunk/dports
- Timestamp:
- Mar 31, 2014, 5:12:25 PM (10 years ago)
- Location:
- trunk/dports/python/py-coverage
- Files:
-
- 2 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dports/python/py-coverage/Portfile
r114324 r118345 5 5 PortGroup python 1.0 6 6 7 name py-coverage 8 version 3.6 7 set _name coverage 8 set _n [string index ${_name} 0] 9 10 name py-${_name} 11 version 3.7.1 9 12 categories-append devel 10 13 maintainers nomaintainer … … 19 22 platforms darwin 20 23 21 homepage http://nedbatchelder.com/code/ coverage/22 master_sites http ://pypi.python.org/packages/source/c/coverage/23 distname coverage-${version}24 homepage http://nedbatchelder.com/code/${_name}/ 25 master_sites https://pypi.python.org/packages/source/${_n}/${_name}/ 26 distname ${_name}-${version} 24 27 25 checksums rmd160 c981f12bc918dff915c5d3c5469c45bb55470be5 \ 26 sha256 df3bf169d4727f3fad146ca715a49a1f72a8258689651ef9de908022e739700d 28 checksums md5 c47b36ceb17eaff3ecfab3bcd347d0df \ 29 rmd160 ba87d81ed228261c019629e23a904f248143ea1f \ 30 sha256 d1aea1c4aa61b8366d6a42dd3650622fbf9c634ed24eaf7f379c8b970e5ed44e 27 31 28 python.versions 25 26 27 31 32 33 32 python.versions 25 26 27 31 32 33 34 29 33 30 34 if {${name} ne ${subport}} { 31 35 depends_build port:py${python.version}-setuptools 32 36 33 post-patch { 34 # Permissions in the archive are 700 35 # Set directories to 755, *.py to 755, other files to 644 36 system "find ${worksrcpath} -type d -exec chmod 755 {} \\;" 37 system "find ${worksrcpath} -type f -name '*.py' -exec chmod 775 {} \\;" 38 system "find ${worksrcpath} -type f -not -name '*.py' -exec chmod 644 {} \\;" 39 } 37 patchfiles patch-setup.py.diff 40 38 41 python.move_binaries no 42 if {${python.version} < 26} { 43 post-destroot { 44 foreach f {coverage coverage2} { 45 if {[file exists ${destroot}${prefix}/bin/${f}]} { 46 file delete -force ${destroot}${prefix}/bin/${f} 47 } 48 } 49 } 50 } 51 52 livecheck.type none 39 livecheck.type none 53 40 } else { 54 livecheck.type 55 livecheck.url http://pypi.python.org/pypi/coverage56 livecheck.regex {/pypi/coverage/(\d+(?:\.\d+)*)"}41 livecheck.type regex 42 livecheck.url [lindex ${master_sites} 0] 43 livecheck.regex ">${_name}-(\\d+(\\.\\d+)+)\\${extract.suffix}<" 57 44 }
Note: See TracChangeset
for help on using the changeset viewer.