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

name                py-spark_parser
version             1.8.9
platforms           darwin
license             MIT
maintainers         {khindenburg @kurthindenburg} openmaintainer

description         An Earley-Algorithm Context-free grammar Parser Toolkit
long_description \
    SPARK stands for Scanning, Parsing, and Rewriting Kit. It uses Jay \
    Earley's algorithm for parsing context free grammars, and comes with \
    some generic Abstract Syntax Tree routines. There is also a prototype \
    scanner which does its job by combining Python regular expressions.

homepage            https://pypi.python.org/pypi/${python.rootname}/
master_sites        pypi:[string index ${python.rootname} 0]/${python.rootname}
distname            ${python.rootname}-${version}

checksums           rmd160  8c9297dc69d81dbd4651b601c01d40e8027ebada \
                    sha256  a7bb97b97953fb8bf0cd8158d820b6467ef1e7f747738e82248ae4c824f1e25a \
                    size    118345

python.versions     27 35 36 37 38 39

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

    depends_test-append     port:py${python.version}-nose
    test.run            yes
    test.env            PYTHONPATH=${worksrcpath}/build/lib

    livecheck.type  none
}
