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

name                py-pacal
version             1.5.1
categories          python
platforms           darwin
license             GPL-3+
maintainers         {adfernandes @adfernandes} openmaintainer
description         PaCAL - ProbAbilistic CALculator
long_description    What is PaCAL? PaCAL is a Python package which allows you to perform \
                    arithmetic on random variables just like you do with ordinary program \
                    variables. The variables can follow practically any distribution.
homepage            http://pacal.sourceforge.net/index.html
master_sites        pypi:P/PaCal/
distname            PaCal-${version}

checksums           rmd160  96e018864f431a8558eb75a018dbe9c10ff0178e \
                    sha256  ece7cf61448355dcb50d5566dc22fd3eb8819579e26db83abe6277bf735730f0

# python3 is not supported
python.versions     27

if {${name} ne ${subport}} {

    depends_lib-append  port:py${python.version}-numpy \
                        port:py${python.version}-matplotlib \
                        port:py${python.version}-sympy \
                        port:py${python.version}-scipy \
                        port:py${python.version}-cython

    livecheck.type  none

} else {

    livecheck.type  regex
    livecheck.url   ${homepage}
    livecheck.regex {(?i)pacal\s+(\d+(?:\.\d+)*)\s+released}

}
