# -*- 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.6.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  d34a02f086c956b3d3a55f7d2ed8d7ee90d2282b \
                    sha256  76919d62f2de4db1ac4b3a59eeb3e0e09b62bcdd9add13ae3f2dad26f8f0e5ca \
                    size    111566

configure.args      --disable-shared \
                    --with-lib=${prefix}/lib/skalibs

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