# -*- 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                gengetopt
version             2.23
revision            0

categories          devel
license             GPL-3+
maintainers         waqar openmaintainer

description         Generates a C function that uses getopt_long function
long_description    This program generates a C function that uses getopt_long \
                    function to parse the command line options, to validate them \
                    and fills a struct. Thus your program can now handle options \
                    such as: \
                            myprog --input foo.c -o foo.o --no-tabs -i 100 *.class \
                    And both long options (those that start with –) and short options \
                    (start with - and consist of only one character) can be handled. \
                    For standards about short and long options you may want to take \
                    a look at the GNU Coding Standards.

homepage            https://www.gnu.org/software/gengetopt/
master_sites        gnu
use_xz              yes

checksums           rmd160  d237f9cb1b3ad85245c01ce5e3537f99f8a9fca4 \
                    sha256  b941aec9011864978dd7fdeb052b1943535824169d2aa2b0e7eae9ab807584ac \
                    size    584860

post-extract {
    file attributes ${worksrcpath}/build-aux/install-sh -permissions a+x
}

configure.args      --infodir=${prefix}/share/info \
                    --mandir=${prefix}/share/man \
                    ac_cv_path_SOURCEHIGHLIGHT=""

use_parallel_build  no

test.run            yes
test.target         check
