Commits

Renee Otten authored 504e5385c2f
py-datacite: update to 1.0.1, remove py34 subport

- use python.rootname, default PyPI livecheck - install files in post-destroot
No tags

python/py-datacite/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 _name datacite
7 -set _n [string index ${_name} 0]
6 +name py-datacite
7 +version 1.0.1
8 +revision 0
8 9
9 -name py-${_name}
10 -version 0.3.0
11 10 categories-append net
12 11 platforms darwin
13 12 supported_archs noarch
14 13 license BSD
15 14 maintainers {petr @petrrr} openmaintainer
16 15
17 16 description Python wrapper for the DataCite Metadata Store API
18 17 long_description ${description}
19 18
20 -homepage http://datacite.readthedocs.org/en/stable/
19 +homepage https://datacite.readthedocs.org
20 +master_sites pypi:[string index ${python.rootname} 0]/${python.rootname}
21 +distname ${python.rootname}-${version}
21 22
22 -distname ${_name}-${version}
23 -master_sites pypi:${_n}/${_name}/
23 +checksums rmd160 a9ce77fd1351e9b18a262ae986a8e2bf423cae2b \
24 + sha256 08cdede700550d5f8a2d0d5ac3af712d4f344bcfedb2d99cfacb8ce3a1fd9590 \
25 + size 46948
24 26
25 -checksums md5 5a2d6ff4dc47b9f4b563a07b872a9981 \
26 - rmd160 6af53095e0fec1070f8a0e9544c94e0d029d1737 \
27 - sha256 00e7b9f82b5c7852bd374ec50d665aba9e89d849131c9cbe1c133f650e6f982a
28 -
29 -python.versions 27 34 35 36
27 +python.versions 27 35 36
30 28
31 29 if {${name} ne ${subport}} {
32 - depends_build-append port:py${python.version}-setuptools \
33 - port:py${python.version}-pytest-runner
34 -
35 - depends_lib-append port:py${python.version}-jsonschema \
36 - port:py${python.version}-lxml \
37 - port:py${python.version}-requests
30 + depends_build-append \
31 + port:py${python.version}-setuptools \
32 + port:py${python.version}-pytest-runner
33 +
34 + depends_lib-append \
35 + port:py${python.version}-jsonschema \
36 + port:py${python.version}-lxml \
37 + port:py${python.version}-requests
38 +
39 + post-destroot {
40 + set docdir ${prefix}/share/doc/${subport}
41 + xinstall -d ${destroot}${docdir}
42 + xinstall -m 0644 -W ${worksrcpath} AUTHORS.rst \
43 + CHANGES.rst CONTRIBUTING.rst LICENSE \
44 + MAINTAINERS README.rst ${destroot}${docdir}
45 + }
38 46
39 47 livecheck.type none
40 -} else {
41 - livecheck.type regex
42 - livecheck.url https://pypi.python.org/pypi/${_name}/json
43 - livecheck.regex "\"${_name}-(\[.\\d\]+)\\${extract.suffix}\""
44 48 }

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

Add shortcut