# -*- 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           makefile 1.0

github.setup        dbohdan initool 1.0.0 v
revision            0
epoch               1
categories          sysutils ml
maintainers         {@barracuda156 gmail.com:vital.had} openmaintainer
license             MIT
description         Manipulate INI files from the command line
long_description    Initool lets you manipulate the contents of INI files from the command line. \
                    It is a rewrite of an earlier program by the same developer called iniparse. \
                    Rather than modify INI files in place like iniparse, however, it prints \
                    the modified contents to standard output.
checksums           rmd160  bb158f59c8f69ba6022215a5a83dd05d9ba9aea4 \
                    sha256  0f17936a3990161446c5fa2f3045a8a4c926284d5c48ec80906fed4b43336f43 \
                    size    23482
github.tarball_from archive

depends_build-append \
                    port:mlton
depends_lib-append  port:gmp

destroot {
    xinstall -d ${destroot}${prefix}/share/doc/${name}
    move ${worksrcpath}/${name} ${destroot}${prefix}/bin/${name}
    copy ${worksrcpath}/README.md ${destroot}${prefix}/share/doc/${name}
}

# https://github.com/dbohdan/initool/issues/17
use_parallel_build  no

# MLton is not universal.
universal_variant   no
