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

name                gperf
version             3.3
revision            0

categories          devel
license             GPL-3+
maintainers         {mcalhoun @MarcusCalhoun-Lopez} \
                    {@aeiouaeiouaeiouaeiouaeiouaeiou outlook.com:aeioudev} openmaintainer

description         GNU perfect hash generator
long_description    Generates a perfect hash function for various input.

homepage            https://www.gnu.org/software/gperf/gperf.html
master_sites        gnu

checksums           rmd160  1465cc9a714cf3c55913f4fc5277790d33058b30 \
                    sha256  fd87e0aba7e43ae054837afd6cd4db03a3f2693deb3619085e6ed9d8d9604ad8 \
                    size    1831294

installs_libs       no

configure.args      --docdir=${prefix}/share/doc/${name} \
                    --infodir=${prefix}/share/info

# Also needed by later clangs.
if {${os.platform} eq "darwin" && ${os.major} < 11 && ${cxx_stdlib} eq "libc++"} {
    clang_dependency.extra_versions 3.7
}

test.run            yes
test.target         check
