# -*- 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-google-apputils
version             0.4.2
platforms           {darwin any}
supported_archs     noarch
license             Apache-2

# build fails with python3
# https://github.com/google/google-apputils/issues/9

python.versions     27

maintainers         nomaintainer

description         Google Application Utilities for Python

long_description    This project is a small collection of utilities for building Python \
                    applications. It includes some of the same set of utilities used to build and \
                    run internal Python apps at Google.

homepage            https://github.com/google/google-apputils

checksums           rmd160  b661a451df07ac2f7c7a345e6a663d730957e28b \
                    sha256  47959d0651c32102c10ad919b8a0ffe0ae85f44b8457ddcf2bdc0358fb03dc29

if {${name} ne ${subport}} {
    depends_build-append \
                    port:py${python.version}-setuptools

    depends_lib-append \
                    port:py${python.version}-dateutil \
                    port:py${python.version}-gflags \
                    port:py${python.version}-tz

    post-extract {
        foreach _file [glob ${worksrcpath}/google_apputils.egg-info/*] {
            file attributes $_file -permissions 0644
        }
    }
}