# -*- 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 107029 2013-06-14 19:56:10Z stromnov@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-numba
version             0.9.0
revision            1
categories-append   devel
platforms           darwin
license             BSD

python.versions     26 27 32 33

maintainers         stromnov openmaintainer

description         Numba is a NumPy aware dynamic compiler for Python.

long_description    Numba is an Open Source NumPy-aware optimizing compiler \
                    for Python. It uses the remarkable LLVM compiler \
                    infrastructure to compile Python syntax to machine code.

homepage            http://numba.github.com/
master_sites        http://pypi.python.org/packages/source/n/numba/

distname            numba-${version}

checksums           rmd160  b29fa7f6d3534f151f4159f3e36a4622d711010a \
                    sha256  9c715fe7036e701d41158ac53266b79c2fa221e7681fd348423db6a643da59e7

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

    depends_lib-append  port:py${python.version}-llvmpy \
                        port:py${python.version}-llvmmath \
                        port:py${python.version}-numpy \
                        port:py${python.version}-meta-devel \
                        port:py${python.version}-cffi

    if {$subport == "py26-numba"} {
        depends_lib-append  port:py26-argparse
    }

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