source: trunk/dports/lang/kelbt/Portfile @ 68520

Last change on this file since 68520 was 68520, checked in by jmr@…, 7 years ago

New port: kelbt, a backtracking LALR(1) parser generator (#24619)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 KB
Line 
1# -*- 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
2# $Id: Portfile 68520 2010-06-05 11:19:42Z jmr@macports.org $
3
4PortSystem 1.0
5
6name                kelbt
7version             0.14
8categories          lang textproc devel
9platforms           darwin
10maintainers         hhhh.org:wiml
11license             GPLv2+
12description         Backtracking LALR(1) parser generator
13long_description    Kelbt generates backtracking LALR(1) parsers. \
14                    Where traditional LALR(1) parser generators \
15                    require static resolution of shift/reduce \
16                    conflicts, Kelbt generates parsers that handle \
17                    conflicts by backtracking at runtime. Kelbt is \
18                    able to generate a parser for any context-free \
19                    grammar that is free of hidden left recursion.
20
21homepage            http://www.complang.org/kelbt/
22master_sites        ${homepage}
23checksums           md5     6eeaaa79e665389d7953361d10815fb5 \
24                    sha1    72a2d64a65445da98bf63126203f3a00ea454067 \
25                    rmd160  56bf35f1fa3cd76c7e515741532cba01125788e3
26
27# configure does substitution of CXXFLAGS but Makefile uses CFLAGS for some reason
28# configure also doesn't substitute LDFLAGS
29if {[variant_isset universal]} {
30    build.args      CFLAGS="${configure.cxxflags} ${configure.universal_cxxflags}" \
31                    LDFLAGS="${configure.universal_ldflags}"
32} else {
33    build.args      CFLAGS="${configure.cxxflags} ${configure.cxx_archflags}"
34    if {[info exists configure.ld_archflags]} {
35        build.args-append LDFLAGS="${configure.ld_archflags}"
36    } else {
37        build.args-append LDFLAGS="${configure.cxx_archflags}"
38    }
39}
40
41test.run            yes
42test.dir            ${worksrcpath}/test
43test.target
44
45destroot.destdir    prefix=${destroot}${prefix}
46
47# TODO: Install kelbt.vim as well?
Note: See TracBrowser for help on using the repository browser.