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

name                newran
version             03
revision            0
checksums           rmd160  2e8ef1496011105d0663d86a0649ec27fe3e2fc1 \
                    sha256  127b69ebd886bf8051de0c4cc1c936db2f395650860351891fda4acd84e6bfb6 \
                    size    102984

categories          math
maintainers         nomaintainer
license             permissive

description         This is a C++ library for generating sequences of random numbers from a wide variety of distributions.

long_description    {*}${description} It is particularly appropriate for the situation where one requires sequences \
                    of identically distributed random numbers since the set up time for each type of distribution \
                    is relatively long but it is efficient when generating each new random number. The library includes \
                    classes for generating random numbers from a number of distributions and is easily extended \
                    to be able to generate random numbers from almost any of the standard distributions.

homepage            https://www.robertnz.net
master_sites        https://www.robertnz.net/ftp/
distname            ${name}${version}

extract.mkdir       yes

post-patch {
  file copy ${filespath}/CMakeLists.txt ${worksrcpath}
}

configure.cxxflags-append -D_STANDARD_

livecheck.type      regex
livecheck.url       ${homepage}/download.html
livecheck.regex     {newran([0-9.]+)\.tar\.gz}