# -*- 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.3.2 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  a86b6bda08626d19063c5b1c10e4ea90f592356f \
                    sha256  e9eb6be555c30fbef87e5a07333fcff6ef8c5bbbdc5710321bbad7ebae0612a7 \
                    size    262602
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
}
