# -*- 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

PortSystem          1.0
PortGroup           github 1.0
PortGroup           python 1.0

github.setup        llvmpy llvmpy 0.12.7

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

# Stealth update
dist_subdir         ${name}/${version}_1

python.versions     27 35 36

maintainers         {stromnov @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/

checksums           rmd160  a75da7b2e2d04f8cf2ffb1f5ccd94ebe97d7cfe8 \
                    sha256  89c705170e372f42bc509b1f197d44a0029f76253bb2b3057ecd666735b42a74 \
                    size    573360

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

    livecheck.type      none
} else {
    livecheck.regex     {archive/(\d+(?:\.\d+)*)\.[tz]}
}
