# -*- 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           github 1.0
PortGroup           cmake 1.1

github.setup        ndevilla iniparser 4.2.6 v
github.tarball_from archive
revision            0

categories          devel
maintainers         {@frankdean fdsd.co.uk:frank.dean} openmaintainer

license             MIT

description         An ini file parser library for C

long_description    ${description}

checksums           rmd160  17de303d83eba404522c4d73025b4345009ced33 \
                    sha256  a0bd370713a744b1fa8ec27bba889ebf9dbd43060ec92e07fbe91fb43e3cb3ac \
                    size    39062

post-destroot {
    xinstall -m 0755 -d \
        ${destroot}${prefix}/share/doc/${name}
    file copy {*}[glob -directory ${worksrcpath} *.md LICENSE] \
        ${destroot}${prefix}/share/doc/${name}/
}

variant tests description "Enable tests" {
    configure.args-append   -DBUILD_TESTING=ON
    test.run        yes
}
