[118345] trunk/dports/python/py-coverage
g5pw at macports.org
g5pw at macports.org
Mon Mar 31 10:12:25 PDT 2014
Revision: 118345
https://trac.macports.org/changeset/118345
Author: g5pw at macports.org
Date: 2014-03-31 10:12:25 -0700 (Mon, 31 Mar 2014)
Log Message:
-----------
python/py-coverage:
update to 3.7.1 (closes #43105)
simplify port
Modified Paths:
--------------
trunk/dports/python/py-coverage/Portfile
Added Paths:
-----------
trunk/dports/python/py-coverage/files/
trunk/dports/python/py-coverage/files/patch-setup.py.diff
Modified: trunk/dports/python/py-coverage/Portfile
===================================================================
--- trunk/dports/python/py-coverage/Portfile 2014-03-31 17:04:52 UTC (rev 118344)
+++ trunk/dports/python/py-coverage/Portfile 2014-03-31 17:12:25 UTC (rev 118345)
@@ -4,8 +4,11 @@
PortSystem 1.0
PortGroup python 1.0
-name py-coverage
-version 3.6
+set _name coverage
+set _n [string index ${_name} 0]
+
+name py-${_name}
+version 3.7.1
categories-append devel
maintainers nomaintainer
license BSD
@@ -18,40 +21,24 @@
platforms darwin
-homepage http://nedbatchelder.com/code/coverage/
-master_sites http://pypi.python.org/packages/source/c/coverage/
-distname coverage-${version}
+homepage http://nedbatchelder.com/code/${_name}/
+master_sites https://pypi.python.org/packages/source/${_n}/${_name}/
+distname ${_name}-${version}
-checksums rmd160 c981f12bc918dff915c5d3c5469c45bb55470be5 \
- sha256 df3bf169d4727f3fad146ca715a49a1f72a8258689651ef9de908022e739700d
+checksums md5 c47b36ceb17eaff3ecfab3bcd347d0df \
+ rmd160 ba87d81ed228261c019629e23a904f248143ea1f \
+ sha256 d1aea1c4aa61b8366d6a42dd3650622fbf9c634ed24eaf7f379c8b970e5ed44e
-python.versions 25 26 27 31 32 33
+python.versions 25 26 27 31 32 33 34
if {${name} ne ${subport}} {
depends_build port:py${python.version}-setuptools
- post-patch {
- # Permissions in the archive are 700
- # Set directories to 755, *.py to 755, other files to 644
- system "find ${worksrcpath} -type d -exec chmod 755 {} \\;"
- system "find ${worksrcpath} -type f -name '*.py' -exec chmod 775 {} \\;"
- system "find ${worksrcpath} -type f -not -name '*.py' -exec chmod 644 {} \\;"
- }
+ patchfiles patch-setup.py.diff
- python.move_binaries no
- if {${python.version} < 26} {
- post-destroot {
- foreach f {coverage coverage2} {
- if {[file exists ${destroot}${prefix}/bin/${f}]} {
- file delete -force ${destroot}${prefix}/bin/${f}
- }
- }
- }
- }
-
- livecheck.type none
+ livecheck.type none
} else {
- livecheck.type regex
- livecheck.url http://pypi.python.org/pypi/coverage
- livecheck.regex {/pypi/coverage/(\d+(?:\.\d+)*)"}
+ livecheck.type regex
+ livecheck.url [lindex ${master_sites} 0]
+ livecheck.regex ">${_name}-(\\d+(\\.\\d+)+)\\${extract.suffix}<"
}
Added: trunk/dports/python/py-coverage/files/patch-setup.py.diff
===================================================================
--- trunk/dports/python/py-coverage/files/patch-setup.py.diff (rev 0)
+++ trunk/dports/python/py-coverage/files/patch-setup.py.diff 2014-03-31 17:12:25 UTC (rev 118345)
@@ -0,0 +1,19 @@
+--- setup.orig.py
++++ setup.py
+@@ -71,13 +71,9 @@
+ devstat = "5 - Production/Stable"
+ classifier_list.append("Development Status :: " + devstat)
+
+-# Install a script as "coverage", and as "coverage[23]", and as
+-# "coverage-2.7" (or whatever).
+-scripts = [
+- 'coverage = coverage:main',
+- 'coverage%d = coverage:main' % sys.version_info[:1],
+- 'coverage-%d.%d = coverage:main' % sys.version_info[:2],
+- ]
++# 2014-03-28, petr -- changed
++# Install a script as "coverage" only, versions will be handeled by MacPorts
++scripts = ['coverage = coverage:main']
+
+ # Create the keyword arguments for setup()
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140331/7d332933/attachment.html>
More information about the macports-changes
mailing list