# -*- 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 114324 2013-12-05 08:44:51Z ryandesign@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-antlr3
version             3.1.3
categories-append   lang
license             BSD
maintainers         nomaintainer
supported_archs     noarch

description         Python runtime package for ANTLR3
long_description    \
    ANTLR, ANother Tool for Language Recognition, is a language tool that \
    provides a framework for constructing recognizers, compilers, and \
    translators from grammatical descriptions containing Java, C#, or C++ \
    actions.

platforms           darwin

homepage            http://www.antlr.org/wiki/display/ANTLR3/Python+runtime
master_sites        http://www.antlr.org/download/Python/
distname            antlr_python_runtime-${version}

checksums           sha1    dc095863a254cdf9606784dbd6efb43cf56a6804 \
                    rmd160  60688fecc8afba5722cbb44c1c79db4b55527ca3

python.versions     25 26 27

if {${name} ne ${subport}} {
    depends_build       port:py${python.version}-setuptools
    livecheck.type      none
} else {
    livecheck.type      regex
    livecheck.regex     antlr-(\[0-9.\]+)${extract.suffix}
}
