Skip to content
Permalink
Browse files

new port, byacc/j

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@3860 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Markus W. Weißmann
Markus W. Weißmann committed Oct 30, 2003
1 parent 5bea009 commit 9fce8d3c914cb36f6e86582074394b0dff2b69ee
@@ -0,0 +1,41 @@
# $Id: Portfile,v 1.1 2003/10/30 16:53:33 mww Exp $

PortSystem 1.0

name byaccj
version 1.1
categories devel java
maintainers mww@opendarwin.org
description yacc compatible parser generator with Java extension
long_description byacc/j is an extension to the Berkeley v1.8 yacc \
compatible parser generator. byacc/j not only can produce \
C/C++ source for a LALR-grammar parser, but also Java source.

homepage http://troi.lincom-asg.com/~rjamison/byacc/
master_sites ${homepage}
distname ${name}${version}
checksums md5 f47267af6d9dfe6914be3c08ffc7713c
platforms darwin

use_configure no

build.dir ${worksrcpath}/src

destroot { file mkdir ${destroot}${prefix}/share/doc/${name}
system "install -m 755 ${worksrcpath}/src/yacc \
${destroot}${prefix}/bin/yacc \
&& install -m 644 ${worksrcpath}/README \
${destroot}${prefix}/share/doc/${name}"
}

variant darwin {
patchfiles patch-defs.h.diff \
patch-lalr.c.diff \
patch-lr0.c.diff \
patch-main.c.diff \
patch-mkpar.c.diff \
patch-output.c.diff \
patch-reader.c.diff \
patch-symtab.c.diff \
patch-verbose.c.diff
}
@@ -0,0 +1,11 @@
--- src/defs.h Thu Oct 30 16:20:26 2003
+++ src/defs.h.new Thu Oct 30 16:20:33 2003
@@ -1,7 +1,7 @@
#include <assert.h>
#include <ctype.h>
#include <stdio.h>
-#include <malloc.h>
+#include <sys/malloc.h>



@@ -0,0 +1,9 @@
--- src/lalr.c Mon May 21 16:01:52 2001
+++ src/lalr.c.new Thu Oct 30 16:26:04 2003
@@ -1,5 +1,5 @@
#include <stdio.h>
-#include <malloc.h>
+#include <sys/malloc.h>

#include "defs.h"

@@ -0,0 +1,9 @@
--- src/lr0.c Mon May 21 16:01:52 2001
+++ src/lr0.c.new Thu Oct 30 16:30:40 2003
@@ -1,5 +1,5 @@
#include <stdio.h>
-#include <malloc.h>
+#include <sys/malloc.h>

#include "defs.h"

@@ -0,0 +1,11 @@
--- src/main.c Mon May 21 16:01:53 2001
+++ src/main.c.new Thu Oct 30 16:24:35 2003
@@ -1,7 +1,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <malloc.h>
+#include <sys/malloc.h>

#ifndef __WIN32__ /*rwj -- make portable*/
#include <signal.h>
@@ -0,0 +1,9 @@
--- src/mkpar.c Mon May 21 16:01:53 2001
+++ src/mkpar.c.new Thu Oct 30 16:26:50 2003
@@ -1,5 +1,5 @@
#include <stdio.h>
-#include <malloc.h>
+#include <sys/malloc.h>

#include "defs.h"

@@ -0,0 +1,10 @@
--- src/output.c Mon May 21 16:01:53 2001
+++ src/output.c.new Thu Oct 30 16:31:40 2003
@@ -1,6 +1,6 @@
#include <stdio.h>
#include <string.h>
-#include <malloc.h>
+#include <sys/malloc.h>

#include "defs.h"

@@ -0,0 +1,10 @@
--- src/reader.c Mon May 21 16:01:53 2001
+++ src/reader.c.new Thu Oct 30 16:32:39 2003
@@ -1,6 +1,6 @@
#include <stdio.h>
#include <string.h>
-#include <malloc.h>
+#include <sys/malloc.h>

#include "defs.h"

@@ -0,0 +1,9 @@
--- src/symtab.c Mon May 21 16:01:53 2001
+++ src/symtab.c.new Thu Oct 30 16:33:25 2003
@@ -1,5 +1,5 @@
#include <stdio.h>
-#include <malloc.h>
+#include <sys/malloc.h>
#include <string.h>

#include "defs.h"
@@ -0,0 +1,9 @@
--- src/verbose.c Mon May 21 16:01:53 2001
+++ src/verbose.c.new Thu Oct 30 16:27:36 2003
@@ -1,5 +1,5 @@
#include <stdio.h>
-#include <malloc.h>
+#include <sys/malloc.h>

#include "defs.h"

0 comments on commit 9fce8d3

Please sign in to comment.
You can’t perform that action at this time.