# $Id: Portfile 57375 2009-09-10 08:16:41Z ryandesign@macports.org $

PortSystem 1.0

name              newran
version           02
categories        math
maintainers       jameskyle

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

long_description This is a C++ library for generating sequences of random numbers from a wide variety of distributions. 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          http://www.robertnz.net/
platforms         darwin
master_sites      http://www.robertnz.net/ftp/
distname          ${name}${version}
checksums         md5 db2bb22b6d96f1c04ce25f91ec7aeece \
                  sha1 6c5b0493b11732c2f9152fe0f73bb6d4605f2da8 \
                  rmd160 4693b8a85945468c173695c0da07a63d408d0392

depends_build     port:cmake
configure.cmd     cmake

configure.pre_args
configure.args    -DCMAKE_INSTALL_PREFIX:PATH=${prefix}

use_parallel_build yes
extract.mkdir     yes
pre-configure {
  file copy ${filespath}/CMakeLists.txt ${worksrcpath}
}

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