source: trunk/dports/devel/pccts/Portfile @ 75257

Last change on this file since 75257 was 75257, checked in by ryandesign@…, 10 years ago

Mark Waqar's ports as openmaintainer since he hasn't committed in years

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.8 KB
Line 
1# $Id: Portfile 75257 2011-01-19 06:23:12Z ryandesign@macports.org $
2
3PortSystem 1.0
4name            pccts
5set             major_version   1
6set             minor_version   33
7version         ${major_version}.${minor_version}
8revision        2
9categories      devel lang
10maintainers     waqar openmaintainer
11description     Purdue Compiler-Construction Tool Set (parser-generator)
12long_description \
13        The Purdue Compiler-Compiler Tool Set (PCCTS) is a set of public \
14        domain software tools designed to facilitate the implementation of \
15        compilers and other translation systems.  These tools currently \
16        include antlr, dlg and support code.  In many ways, PCCTS is similar \
17        to a highly integrated version of YACC and LEX\; where antlr (ANother \
18        Tool for Language Recognition) corresponds to YACC and dlg (DFA-based \
19        Lexical analyzer Generator) functions like LEX.  However, PCCTS has \
20        many additional features which make it easier to use for a wider range \
21        of translation problems.
22homepage        http://www.polhode.com/pccts.html
23platforms       darwin
24master_sites    http://www.polhode.com
25use_zip         yes
26distname        ${name}${major_version}${minor_version}mr
27checksums       sha1 5b3417efd5f537434b568114bcda853b4975d851
28worksrcdir      ${name}
29patch           {
30        reinplace "s|#COPT=-O2|COPT=-DPCCTS_USE_STDARG -O2|g" \
31                "${workpath}/${worksrcdir}/makefile"
32}
33use_configure   no
34build.target
35
36variant universal {
37        build.args-append       CC="${configure.cc} ${configure.universal_cflags}"
38}
39
40destroot        {       
41        xinstall -m 755 ${worksrcpath}/bin/antlr ${destroot}${prefix}/bin
42        xinstall -m 755 ${worksrcpath}/bin/dlg ${destroot}${prefix}/bin
43        xinstall -m 755 ${worksrcpath}/bin/genmk ${destroot}${prefix}/bin
44        xinstall -m 755 ${worksrcpath}/bin/sor ${destroot}${prefix}/bin
45        xinstall -m 644 ${worksrcpath}/dlg/dlg.1 \
46                ${destroot}${prefix}/share/man/man1
47        xinstall -m 644 ${worksrcpath}/antlr/antlr.1 \
48                ${destroot}${prefix}/share/man/man1
49        xinstall -d ${destroot}${prefix}/include/${name}
50        xinstall -m 644 -v -W ${worksrcpath}/h \
51                AParser.cpp \
52                AParser.h \
53                ASTBase.cpp \
54                ASTBase.h \
55                ATokPtr.h \
56                ATokPtrImpl.h \
57                ATokenBuffer.cpp \
58                AToken.h \
59                ATokenBuffer.h \
60                ATokenStream.h \
61                BufFileInput.cpp \
62                BufFileInput.h \
63                DLG_stream_input.h \
64                DLexer.h \
65                DLexerBase.cpp \
66                DLexerBase.h \
67                PBlackBox.h \
68                PCCTSAST.cpp \
69                PCCTSAST.h \
70                SList.h \
71                antlr.h \
72                ast.c \
73                ast.h \
74                charbuf.h \
75                charptr.c \
76                charptr.h \
77                config.h \
78                dlgdef.h \
79                dlgauto.h \
80                err.h \
81                int.h \
82                pccts_assert.h \
83                pccts_iostream.h \
84                pccts_istream.h \
85                pccts_setjmp.h \
86                pccts_stdarg.h \
87                pccts_stdio.h \
88                pccts_stdlib.h \
89                pccts_string.h \
90                pcctscfg.h \
91                slist.cpp \
92                ${destroot}${prefix}/include/${name}
93}
94livecheck.type          regex
95livecheck.url           ${homepage}
96livecheck.regex         "downloading PCCTS (\\d+(?:\\.\\d+)*)MR"
Note: See TracBrowser for help on using the repository browser.