Permalink
Browse files
py-docopt: add py37 subport
- use default PyPI livecheck
- add size to checksums
- install files in post-destroot
- Loading branch information
Showing
with
16 additions
and
12 deletions.
-
+16
−12
python/py-docopt/Portfile
|
|
@@ -3,8 +3,7 @@ |
|
|
PortSystem 1.0 |
|
|
PortGroup python 1.0 |
|
|
|
|
|
set real_name docopt |
|
|
name py-${real_name} |
|
|
name py-docopt |
|
|
version 0.6.2 |
|
|
categories-append devel |
|
|
platforms darwin |
|
|
@@ -17,20 +16,25 @@ description Pythonic argument parser, that will make you smile |
|
|
long_description ${description} |
|
|
|
|
|
homepage http://docopt.org |
|
|
master_sites pypi:d/${real_name}/ |
|
|
distname ${real_name}-${version} |
|
|
master_sites pypi:d/${python.rootname}/ |
|
|
distname ${python.rootname}-${version} |
|
|
|
|
|
checksums rmd160 c2e76c031e12096906b9c6b1f7dc62a9b30336f1 \ |
|
|
sha256 49b3a825280bd66b3aa83585ef59c4a8c82f2c8a522dbe754a8bc8d08c85c491 |
|
|
sha256 49b3a825280bd66b3aa83585ef59c4a8c82f2c8a522dbe754a8bc8d08c85c491 \ |
|
|
size 25901 |
|
|
|
|
|
python.versions 27 34 35 36 |
|
|
python.versions 27 34 35 36 37 |
|
|
|
|
|
if {${name} ne ${subport}} { |
|
|
depends_build-append port:py${python.version}-setuptools |
|
|
depends_build-append \ |
|
|
port:py${python.version}-setuptools |
|
|
|
|
|
livecheck.type none |
|
|
} else { |
|
|
livecheck.type regex |
|
|
livecheck.url https://pypi.python.org/pypi/${real_name} |
|
|
livecheck.regex "${real_name}-(\\d+(?:\\.\\d+)*(-p\\d+)?)${extract.suffix}" |
|
|
post-destroot { |
|
|
set docdir ${prefix}/share/doc/${subport} |
|
|
xinstall -d ${destroot}${docdir} |
|
|
xinstall -m 0644 -W ${worksrcpath} README.rst LICENSE-MIT \ |
|
|
${destroot}${docdir} |
|
|
} |
|
|
|
|
|
livecheck.type none |
|
|
} |