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

name                    voroxx
version                 0.4.6
categories              science math
platforms               darwin
maintainers             {mcalhoun @MarcusCalhoun-Lopez} openmaintainer
license                 BSD
homepage                http://math.lbl.gov/voro++/

description             a software library for carrying out three-dimensional computations of the Voronoi tessellation

long_description        Voro++ is ${description}.

master_sites            http://math.lbl.gov/voro++/download/dir/
distname                voro++-${version}

checksums               rmd160  c5236d7d5bad9ca7df5e580d7b0f525741c92102 \
                        sha256  ef7970071ee2ce3800daa8723649ca069dc4c71cc25f0f7d22552387f3ea437e \
                        size    809124

patchfiles-append       patch-makefiles.diff

configure.cmd           printenv
configure.pre_args
configure.universal_args
configure.post_args     {>> config.mk}
configure.env-append    PREFIX=${prefix} \
                        MACPORTS_VOREXX_VERSION=${version} \
                        MACPORTS_VOREXX_COMPATIBILITY_VERSION=[lindex [split ${version} .] 0]

destroot.args-append    PREFIX=${destroot}${prefix}

livecheck.regex         {voro\+\+-(\d+(?:\.\d+)*)}
livecheck.url           http://math.lbl.gov/voro++/download/
