# -*- 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
set real_name       python-augeas
version             1.0.3
python.versions     27 34 35 36
maintainers         nomaintainer
license             LGPL-2.1+
description         Python bindings for Augeas
long_description    ${description}
platforms           darwin

conflicts           py-python-augeas05

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

checksums           rmd160  ecd3dce58550862c9753022713944aa431510d93 \
                    sha256  d062f4a44aee797aa9296f5a82cd8c3df5036ca23df6b9ac48cbaa3b4f29a664

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
    }
}