# -*- 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-python-augeas
version             1.1.0
revision            1

maintainers         nomaintainer
license             LGPL-2.1+
description         Python bindings for Augeas
long_description    {*}${description}
platforms           darwin

homepage            https://pypi.python.org/pypi/${python.rootname}/
master_sites        pypi:p/${python.rootname}
distname            ${python.rootname}-${version}

python.versions     27 35 36 37 38 39 310

checksums           rmd160  d89d21f55e51054ba3d0830fc8aa9e473c18ee5e \
                    sha256  5194a49e86b40ffc57055f73d833f87e39dce6fce934683e7d0d5bbb8eff3b8c \
                    size    93657

if {${name} ne ${subport}} {
    depends_lib-append  \
                    port:augeas \
                    port:py${python.version}-cffi \
                    port:py${python.version}-pycparser \
                    port:py${python.version}-setuptools \
                    port:libffi \
                    port:libxml2

    patchfiles      patch-augeas-ffi.py.diff

    post-patch {
        reinplace "s|%PREFIX%|${prefix}|" ${worksrcpath}/augeas/ffi.py
    }

    livecheck.type  none
}
