# -*- 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-mrjob
version             0.7.4
revision            0

categories-append   parallel
platforms           {darwin any}
supported_archs     noarch
license             Apache-2
maintainers         {petr @petrrr} openmaintainer

description         Python MapReduce framework
long_description    \
    mrjob is a Python package that helps you write and run Hadoop Streaming \
    jobs. It fully supports Amazon's Elastic MapReduce (EMR) service, which \
    allows you to buy time on a Hadoop cluster on an hourly basis. It also \
    works with your own Hadoop cluster.

checksums           rmd160  eb7d89658fb934aa76c465cc557903a0590fc283 \
                    sha256  2c8d8dc8aa4b354a97de18d0260f551f018693af74af104b3d41daf165eebdd4 \
                    size    652429

python.versions     313

if {${name} ne ${subport}} {
    depends_lib-append \
                    port:py${python.version}-boto3 \
                    port:py${python.version}-botocore \
                    port:py${python.version}-yaml

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