# -*- 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 105589 2013-04-26 09:42:58Z stromnov@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-llvmpy
version             0.11.2
revision            0
categories-append   devel
platforms           darwin
license             BSD

python.versions     26 27 32 33

maintainers         stromnov openmaintainer

description         Python bindings for LLVM

long_description    llvmpy is a Python wrapper around the llvm C++ library \
                    which allows simple access to compiler tools.

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

distname            llvmpy-${version}

checksums           rmd160  289e66b6d93eb52e2946c955bb01bfead0e93421 \
                    sha256  c7911b743d4d3ac746eca6d0c0809963fc326bdc079a27fb2e3053e0474fa299

if {$subport != $name} {
    depends_lib-append  port:llvm-3.2
    build.env-append    LLVM_CONFIG_PATH=${prefix}/bin/llvm-config-mp-3.2
    destroot.env-append LLVM_CONFIG_PATH=${prefix}/bin/llvm-config-mp-3.2
}

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