# -*- 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 117206 2014-02-19 09:46:50Z stromnov@macports.org $

PortSystem          1.0
PortGroup           python 1.0

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

python.versions     26 27 32 33 34

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  83122b865efffc88de2a3bcd6a22d1d803d68069 \
                    sha256  383a380ee0f7984f50201dc6b0e25ccd291a952ca1afacb850d50dae85810b75

if {${name} ne ${subport}} {
    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}"
}
