# -*- 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 119104 2014-04-17 10:39:32Z stromnov@macports.org $

PortSystem          1.0
PortGroup           github 1.0
PortGroup           python 1.0

github.setup        numba numba 0.13.1

name                py-numba
categories-append   devel
platforms           darwin
license             BSD

python.versions     26 27 32 33 34

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/

checksums           rmd160  fa299ca7410d16a7fd283535fab2ac7a1e085a3c \
                    sha256  8ac0ae9721f41f2ac7aa21963ba1a322109b786e144b4ae5fa24db103ded02fa

if {${name} ne ${subport}} {
    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} eq "py26-numba"} {
        depends_lib-append  port:py26-argparse
    }

    livecheck.type      none
}
