Skip to content
Permalink
Browse files

python/py-coverage:

  update to 3.7.1 (closes https://trac.macports.org/ticket/43105)
  simplify port

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@118345 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
g5pw committed Mar 31, 2014
1 parent d3c0fe0 commit 619ad5113dbc11d3f930c75d9d65e23baec2f039
Showing with 37 additions and 31 deletions.
  1. +18 −31 python/py-coverage/Portfile
  2. +19 −0 python/py-coverage/files/patch-setup.py.diff
@@ -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 @@ long_description Coverage measures code coverage, typically during test \

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 {} \\;"
}

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
patchfiles patch-setup.py.diff

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}<"
}
@@ -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()

0 comments on commit 619ad51

Please sign in to comment.
You can’t perform that action at this time.