# -*- 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
# $Id: Portfile 107028 2013-06-14 19:51:26Z stromnov@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-llvmmath
version             0.1
revision            0
categories-append   devel
platforms           darwin
license             BSD

python.versions     26 27 32 33

maintainers         stromnov openmaintainer

description         LLVM math library
long_description    ${description}

homepage            http://pypi.python.org/pypi/llvmmath
master_sites        http://pypi.python.org/packages/source/l/llvmmath/

distname            llvmmath-${version}

checksums           rmd160  46826378da1a98e38d8fb89c0822f8603caa35c9 \
                    sha256  378b0d5584d059d5c427cf85ed1ba54b8a1043d2ad7c45efce29cf21de02447e

if {$subport != $name} {
    depends_build-append \
                        port:py${python.version}-setuptools

    depends_lib-append  port:py${python.version}-llvmpy \
                        port:py${python.version}-numpy

    livecheck.type      none
} else {
    livecheck.type      regex
    livecheck.url       ${master_sites}
    livecheck.regex     "llvmmath-(\\d+(?:\\.\\d+)*)${extract.suffix}"
}
