# -*- 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

PortSystem          1.0
PortGroup           python 1.0

name                py-hdfs
version             2.5.8
revision            0

categories-append   net sysutils parallel
platforms           darwin
supported_archs     noarch
license             MIT
maintainers         {petr @petrrr} openmaintainer

description         API and command line interface for HDFS
long_description    ${description}

homepage            https://hdfscli.readthedocs.org/
master_sites        pypi:[string index ${python.rootname} 0]/${python.rootname}
distname            ${python.rootname}-${version}

checksums           rmd160  21c5aff4d3b154c68c31462b170e34a30a5fd2c5 \
                    sha256  1be117549fc1285571bc51aedc15df5a203138dba02f9adfa26761b69a949370 \
                    size    41903

python.versions     27 35 36

if {${name} ne ${subport}} {
    depends_lib-append\
                    port:py${python.version}-docopt \
                    port:py${python.version}-requests \
                    port:py${python.version}-setuptools \
                    port:py${python.version}-six

    post-destroot {
        set dest_doc ${destroot}${prefix}/share/doc/${subport}
        xinstall -d ${dest_doc}
        xinstall -m 0644 -W ${worksrcpath} LICENSE \
            README.md ${dest_doc}
    }

    livecheck.type  none
}