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

github.setup        lemire fast_double_parser 0.8.0 v
revision            0
categories          devel
license             Apache-2 Boost-1
# Do not set to noarch until this is fixed:
# https://trac.macports.org/ticket/69317
platforms           any
maintainers         {@barracuda156 gmail.com:vital.had} openmaintainer
description         Fast function to parse strings into double (binary64) \
                    floating-point values
long_description    {*}${description}, enforces the RFC 7159 (JSON standard) \
                    grammar.
checksums           rmd160  9db88490df401b62487a059340bb159ca2d73c78 \
                    sha256  9ad74e059cc7c3e53a3057ca97a74c88ae2a6a7d36ce470193557cbd05ee8f92 \
                    size    637032
github.tarball_from archive

compiler.cxx_standard   2011

configure.args-append \
                    -DFAST_DOUBLE_BENCHMARKS=OFF \
                    -DFAST_DOUBLE_PARSER_SANITIZE=OFF

destroot {
    copy ${worksrcpath}/include/fast_double_parser.h \
                    ${destroot}${prefix}/include
}

test.run            yes
test.cmd            ${cmake.build_dir}/unit
test.target