# -*- 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 # $Id$ PortSystem 1.0 PortGroup python 1.0 set _name datacite set _n [string index ${_name} 0] name py-${_name} version 0.2.1 categories-append net platforms darwin supported_archs noarch license BSD maintainers petr openmaintainer description Python wrapper for the DataCite Metadata Store API long_description ${description} homepage http://datacite.readthedocs.org/en/stable/ distname ${_name}-${version} master_sites pypi:${_n}/${_name}/ checksums md5 37c46c71cb38ded103903bf4e1eab50a \ rmd160 922068072b6717e7f0d37200ad3ca6978df14ed7 \ sha256 0349451315557708bf7e4c4937918578748718f4b59fb6006810897f51b62508 python.versions 27 34 35 if {${name} ne ${subport}} { depends_build-append port:py${python.version}-setuptools \ port:py${python.version}-pytest-runner depends_lib-append port:py${python.version}-jsonschema \ port:py${python.version}-lxml \ port:py${python.version}-requests livecheck.type none } else { livecheck.type regex livecheck.url https://pypi.python.org/pypi/${_name}/json livecheck.regex "\"${_name}-(\[.\\d\]+)\\${extract.suffix}\"" }