PortSystem 1.0
PortGroup python 1.0

name			py-iniparse
version			0.5

platforms		darwin
supported_archs	noarch
license			PSF MIT
maintainers		nomaintainer
homepage			https://github.com/candlepin/python-iniparse
description		Python Module for Accessing and Modifying Configuration Data in INI files
long_description	iniparse is an INI parser for Python which is API compatible \
with the standard library's ConfigParser, preserves structure of INI \
files (order of sections & options, indentation, comments, and blank \
lines are preserved when data is updated), and is more convenient to \
use.

checksums           rmd160  9f111a446f0e4ecce1573b14e3018312aa8017ec \
                    sha256  932e5239d526e7acb504017bb707be67019ac428a6932368e6851691093aa842

python.versions 27 38 39

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

    post-destroot {
        move {*}[glob ${destroot}${python.prefix}/share/doc/iniparse-${version}/*] \
            ${destroot}${prefix}/share/doc/${subport}
    }

    livecheck.type  none
}
