# -*- 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 118974 2014-04-14 09:41:25Z stromnov@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-numexpr
version             2.4
revision            0
categories-append   math
platforms           darwin
license             MIT

python.versions     26 27 32 33 34

maintainers         stromnov openmaintainer

description         Multiple-operator array expression evaluator
long_description    The numexpr package evaluates multiple-operator array \
                    expressions many times faster than NumPy can. It accepts \
                    the expression as a string, analyzes it, rewrites it \
                    more efficiently, and compiles it on the fly into code \
                    for its internal virtual machine (VM). Due to its \
                    integrated just-in-time (JIT) compiler, it does not \
                    require a compiler at runtime.

homepage            https://github.com/pydata/numexpr
master_sites        https://pypi.python.org/packages/source/n/numexpr/

distname            numexpr-${version}

checksums           rmd160  496ddbdb284e82e81c59ca5b3aa0532eff6f58e3 \
                    sha256  1b63a5ce11c10d36433e2a74e2e4c360a4e004618507778881659e80a912fc58

if {${name} ne ${subport}} {
    depends_build       port:py${python.version}-setuptools
    depends_lib-append  port:py${python.version}-numpy

    post-destroot {
        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}
        xinstall -m 644 -W ${worksrcpath} ANNOUNCE.rst LICENSE.txt README.rst \
            RELEASE_NOTES.rst ${destroot}${prefix}/share/doc/${subport}
    }

    livecheck.type      none
} else {
    livecheck.type      regex
    livecheck.url       ${master_sites}
    livecheck.regex     {numexpr-(\d+(?:\.\d+)*)\.[tz]}
}
