# -*- 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.8.0
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  b745ce839dd676e58dcd5b0a1919f43b078a65c4 \
                    sha256  d05e0b75cc21841692119c7a7838163acd7f05318bd69e779068266daa7ce91f \
                    size    117827

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}
}
