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

github.setup        hroptatyr numchk 0.2.0 v
revision            1

description         Like file\(1\) but for numbers
long_description    \
    The numchk tool is a command-line tool that identifies self-consistent \
    numbers and checks their correctness. In short, it is like file\(1\) for \
    numbers. \
    \
    The focus is on fast bulk processing of identifiers arising primarily in \
    the financial sector. Unlike similar libraries numchk only provides \
    syntactic and first level semantic checks (mostly check digits and \
    country code validation) in order to identify and disambiguate the input. \
    Deep semantic verification, aspects of formatting and canonicalisation \
    are left to its competitors.

categories          finance
installs_libs       no
license             BSD
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer

checksums           rmd160  71dc1a48828474d0a3ffeb0bcc547d26603d3e8e \
                    sha256  34c1e4b41d4a1648ec2ee0b07fac7a09db17d08fb51c7c9a97a2b4d1e2e30754 \
                    size    506136
github.tarball_from releases
use_xz              yes

# https://github.com/hroptatyr/numchk/pull/1
patchfiles          0001-Fix-build-on-macOS-add-missing-header-for-_NSGetExec.patch \
                    0002-yuck.c-fix-_DARWIN_C_SOURCE-macro.patch \
                    0003-Use-D_DARWIN_C_SOURCE-on-Darwin.patch

use_autoreconf      yes

# figi.c: error: invalid suffix "b1U" on integer constant
compiler.blacklist-append \
                    *gcc-4.0 *gcc-4.2

configure.args-append \
                    --disable-silent-rules
