source: trunk/dports/lang/kelbt/Portfile

Last change on this file was 97873, checked in by jmr@…, 5 years ago

kelbt: fix build failure due to invalid C++ (#35277)

  • 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 97873 2012-09-18 13:36:25Z ryandesign@macports.org $
3
4PortSystem 1.0
5
6name                kelbt
7version             0.15
8categories          lang textproc devel
9platforms           darwin
10maintainers         hhhh.org:wiml
11license             GPL-2+
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}
23
24checksums           rmd160  baa8a9d616f2594fe0315c3b059a1286e8ac7ccc \
25                    sha256  000ae8e0906f34de13c3448f2422065e48407b6d85c61bbe51490ffdab0bc565
26
27patchfiles          invalid_cxx.patch
28
29variant universal {}
30
31# configure does substitution of CXXFLAGS but Makefile uses CFLAGS for some reason
32# configure also doesn't substitute LDFLAGS
33build.args          CFLAGS="${configure.cxxflags} [get_canonical_archflags cxx]" \
34                    LDFLAGS="[get_canonical_archflags ld]"
35
36test.run            yes
37test.dir            ${worksrcpath}/test
38test.target
39
40destroot.destdir    prefix=${destroot}${prefix}
41
42# TODO: Install kelbt.vim as well?
43
44post-destroot {
45    set docdir ${prefix}/share/doc/${name}
46    xinstall -d ${destroot}${docdir}
47    xinstall -m 644 -W ${worksrcpath} \
48        COPYING \
49        CREDITS \
50        ChangeLog \
51        TODO \
52        ${destroot}${docdir}
53}
54
55livecheck.type      regex
56livecheck.regex     ${name}-(\[0-9.\]+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.