# $Id$

PortSystem          1.0

name                dparser
version             1.30
categories          devel lang
license             BSD
maintainers         mww openmaintainer
platforms           darwin
description         general-purpose parser generator
long_description \
    DParser is an simple but powerful tool for parsing.  You can specify \
    the form of the text to be parsed using a combination of regular \
    expressions and grammar productions. Because of the parsing technique \
    (technically a scannerless GLR parser based on the Tomita algorithm) \
    there are no restrictions. The grammar can be ambiguous, right or \
    left recursive, have any number of null productions, and because there \
    is no seperate tokenizer, can include whitespace in terminals and have \
    terminals which are prefixes of other terminals. DParser handles not \
    just well formed computer languages and data files, but just about any \
    wacky situation that occurs in the real world.

homepage            http://dparser.sourceforge.net/
master_sites        sourceforge
checksums           rmd160  5075cede706ee98c4c7bec8288f4ef919bf1dc97 \
                    sha256  4c4a61bd5954d75da89cbcfe8f6aac3a113769939b31ce2bf4b20b7b3a31cdd8
distname            d-${version}-src
patchfiles          patch-Makefile

worksrcdir          d

use_configure       no

build.args-append   CC="${configure.cc} ${configure.cflags}" PREFIX=${prefix}

destroot.destdir    PREFIX=${destroot}${prefix}

livecheck.type      regex
livecheck.url       ${homepage}
livecheck.regex     d-(\[0-9.\]+)-src${extract.suffix}