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

github.setup        jk-jeon dragonbox 1.1.3
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
revision            0
categories          devel math
maintainers         {i0ntempest @i0ntempest} openmaintainer
license             Apache-2

description         Reference implementation of Dragonbox in C++
long_description    Dragonbox is a float-to-string conversion algorithm based on a beautiful \
                    algorithm Schubfach, developed by Raffaello Giulietti in 2017-2018. Dragonbox \
                    is further inspired by Grisu and Grisu-Exact.

checksums           rmd160  d9551efd15d432644281732701ada55a13839f95 \
                    sha256  37d33d73abc5452a73f602d308d03d6f7e28129bdb18836800514137c669cca0 \
                    size    4337170

post-patch {
         reinplace "s|\${dragonbox_directory}||g" ${worksrcpath}/CMakeLists.txt
}

compiler.cxx_standard 2014
configure.cxxflags-append -std=c++14
compiler.blacklist-append *gcc-3.* *gcc-4.* {clang < 900.0.39.2}
