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

name                argp-standalone
version             1.3
revision            1
categories          devel
license             LGPL
platforms           darwin freebsd
maintainers         nomaintainer

description         Standalone version of arguments parsing functions from GLIBC
long_description    It is standalone version of argp - part of glibc library. \
                    \
                    It was separated off glibc by Niels Myller. Niels primary use \
                    it for inclusion in the LSH distribution, but it's useful for \
                    any package that wants to use argp and at the same time be \
                    portable to non-glibc systems. \
                    \
                    Besides portability fixes, there are a few other changes in \
                    this version. The most important is that it no longer builds \
                    upon getopt\; the one or two hairy functions of GNU getopt are \
                    incorporated with the argp parser. There are no longer any global \
                    variables keeping track of the parser state.

homepage            https://www.freshports.org/devel/argp-standalone/
master_sites        https://www.lysator.liu.se/~nisse/misc/

checksums           rmd160  1c5cd0b1c382d93774be636a1ea2758d530cfef4 \
                    sha256  dec79694da1319acd2238ce95df57f3680fea2482096e483323fddf3d818d8be \
                    size    130255

patchfiles          patch-argp-fmtstream.h.diff

configure.cflags-append -std=c89

post-destroot {
    xinstall ${worksrcpath}/libargp.a ${destroot}${prefix}/lib
    xinstall ${worksrcpath}/argp.h ${destroot}${prefix}/include
}

livecheck.regex     ${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}
