# -*- 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-iniparse
version             0.5
revision            1

supported_archs     noarch
platforms           {darwin any}
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 \
                    size    32233

python.versions     310 311 313

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

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