Commits

Renee Otten authored and Chris Jones committed cd12d4652ed
py-docopt: add py37 subport

- use default PyPI livecheck - add size to checksums - install files in post-destroot
No tags

python/py-docopt/Portfile

Modified
1 1 # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2 2
3 3 PortSystem 1.0
4 4 PortGroup python 1.0
5 5
6 -set real_name docopt
7 -name py-${real_name}
6 +name py-docopt
8 7 version 0.6.2
9 8 categories-append devel
10 9 platforms darwin
11 10 supported_archs noarch
12 11 license MIT
13 12 maintainers nomaintainer
14 13
15 14 description Pythonic argument parser, that will make you smile
16 15
17 16 long_description ${description}
18 17
19 18 homepage http://docopt.org
20 -master_sites pypi:d/${real_name}/
21 -distname ${real_name}-${version}
19 +master_sites pypi:d/${python.rootname}/
20 +distname ${python.rootname}-${version}
22 21
23 22 checksums rmd160 c2e76c031e12096906b9c6b1f7dc62a9b30336f1 \
24 - sha256 49b3a825280bd66b3aa83585ef59c4a8c82f2c8a522dbe754a8bc8d08c85c491
23 + sha256 49b3a825280bd66b3aa83585ef59c4a8c82f2c8a522dbe754a8bc8d08c85c491 \
24 + size 25901
25 25
26 -python.versions 27 34 35 36
26 +python.versions 27 34 35 36 37
27 27
28 28 if {${name} ne ${subport}} {
29 - depends_build-append port:py${python.version}-setuptools
29 + depends_build-append \
30 + port:py${python.version}-setuptools
30 31
31 - livecheck.type none
32 -} else {
33 - livecheck.type regex
34 - livecheck.url https://pypi.python.org/pypi/${real_name}
35 - livecheck.regex "${real_name}-(\\d+(?:\\.\\d+)*(-p\\d+)?)${extract.suffix}"
32 + post-destroot {
33 + set docdir ${prefix}/share/doc/${subport}
34 + xinstall -d ${destroot}${docdir}
35 + xinstall -m 0644 -W ${worksrcpath} README.rst LICENSE-MIT \
36 + ${destroot}${docdir}
37 + }
38 +
39 + livecheck.type none
36 40 }

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut