# -*- 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.7.3
revision            0

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

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

homepage            https://hdfscli.readthedocs.org/

checksums           rmd160  4f39cf6095e62b60764144f7e6f778fcca7681ba \
                    sha256  752a21e43f82197dce43697c73f454ba490838108c73a57a9247efb66d1c0479 \
                    size    43540

python.versions     310 311 312 313

if {${name} ne ${subport}} {
    depends_lib-append\
                    port:py${python.version}-docopt \
                    port:py${python.version}-requests \
                    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}
    }
}
