# -*- 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           legacysupport 1.1

# _clock_gettime
legacysupport.newest_darwin_requires_legacy 15

name                execline
version             2.9.9.1
revision            0
categories          lang
license             ISC
maintainers         nomaintainer
description         non-interactive scripting language

long_description \
    execline is a (non-interactive) scripting language, like sh - but \
    its syntax is quite different from a traditional shell syntax. The \
    execlineb program is meant to be used as an interpreter for a text \
    file\; the other commands are essentially useful inside an \
    execlineb script. execline is as powerful as a shell: it features \
    conditional loops, getopt-style option handling, filename \
    globbing, and more. Meanwhile, its syntax is far more logic and \
    predictable than the shell's syntax, and has no security issues.

homepage            https://skarnet.org/software/execline/
master_sites        ${homepage}

depends_build       port:skalibs

checksums           rmd160  609ecff9bb3726a9f0f3ba63c1e8270c4cb4b079 \
                    sha256  be63533297a93c36fd267195117b4e668687a526f834517a8db47d85b6c7ec6a \
                    size    119481

depends_build-append \
                    port:pkgconfig

configure.args-append \
                    --enable-pkgconfig \
                    --with-pkgconfig

post-destroot {
    set docdir ${prefix}/share/doc/${name}
    xinstall -d ${destroot}${docdir}
    xinstall -m 0644 -W ${worksrcpath} \
        AUTHORS \
        COPYING \
        NEWS \
        README \
        ${destroot}${docdir}
    xinstall -m 0644 {*}[glob ${worksrcpath}/doc/*.html] \
        ${destroot}${docdir}
    xinstall -m 0644 {*}[glob ${worksrcpath}/doc/*.txt] \
        ${destroot}${docdir}
}
