aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorknu <knu@FreeBSD.org>2000-11-02 11:10:00 +0800
committerknu <knu@FreeBSD.org>2000-11-02 11:10:00 +0800
commita71fbf79ec62f69460f8ab2b94be0849fbfe47a5 (patch)
tree3453d56a64ef764f40c6fc33c86b47a572a67bf0 /devel
parent230bb90a0cdf8b17b2c5d84d1dffac76a1b0e598 (diff)
downloadfreebsd-ports-gnome-a71fbf79ec62f69460f8ab2b94be0849fbfe47a5.tar.gz
freebsd-ports-gnome-a71fbf79ec62f69460f8ab2b94be0849fbfe47a5.tar.zst
freebsd-ports-gnome-a71fbf79ec62f69460f8ab2b94be0849fbfe47a5.zip
Add ruby-byaccr, a parser generator for ruby based on 'Berkeley Yacc'
and 'Berkeley Yacc for Java'.
Diffstat (limited to 'devel')
-rw-r--r--devel/Makefile1
-rw-r--r--devel/ruby-byaccr/Makefile37
-rw-r--r--devel/ruby-byaccr/distinfo1
-rw-r--r--devel/ruby-byaccr/files/Makefile20
-rw-r--r--devel/ruby-byaccr/pkg-comment1
-rw-r--r--devel/ruby-byaccr/pkg-descr4
-rw-r--r--devel/ruby-byaccr/pkg-plist5
7 files changed, 69 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index f9ffcfe87633..937aac4c9a4c 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -280,6 +280,7 @@
SUBDIR += robodoc
SUBDIR += rpc2
SUBDIR += ruby-amstd
+ SUBDIR += ruby-byaccr
SUBDIR += ruby-date2
SUBDIR += ruby-filelock
SUBDIR += ruby-intl
diff --git a/devel/ruby-byaccr/Makefile b/devel/ruby-byaccr/Makefile
new file mode 100644
index 000000000000..0321644ebd9f
--- /dev/null
+++ b/devel/ruby-byaccr/Makefile
@@ -0,0 +1,37 @@
+# New ports collection makefile for: byaccr
+# Date created: 2 Nov 2000
+# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= byaccr
+PORTVERSION= 0.0
+CATEGORIES= devel ruby
+MASTER_SITES= http://kt-www.jaist.ac.jp:8000/~ttate/ftp/
+PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
+DIST_SUBDIR= ruby
+
+MAINTAINER= knu@FreeBSD.org
+
+USE_RUBY= yes
+RUBY_NO_BUILD_DEPENDS= yes
+RUBY_NO_RUN_DEPENDS= yes
+
+EXAMPLES= Parser.rb Test.rb cal.y
+
+post-patch:
+ ${PERL} -i.orig -pe 's,^#include <malloc\.h>,#include <stdlib.h>,' ${WRKSRC}/*.[ch]
+
+pre-build:
+ ${CP} ${FILESDIR}/Makefile ${WRKSRC}/
+
+post-install:
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${RUBY_EXAMPLESDIR}/byaccr
+.for f in ${EXAMPLES}
+ ${INSTALL_DATA} ${WRKSRC}/sample/${f} ${RUBY_EXAMPLESDIR}/byaccr/
+.endfor
+.endif
+
+.include <bsd.port.mk>
diff --git a/devel/ruby-byaccr/distinfo b/devel/ruby-byaccr/distinfo
new file mode 100644
index 000000000000..be17d29d9899
--- /dev/null
+++ b/devel/ruby-byaccr/distinfo
@@ -0,0 +1 @@
+MD5 (ruby/byaccr-0.0.tar.gz) = 5d4fc00605e882699d08c11b6bd83dd7
diff --git a/devel/ruby-byaccr/files/Makefile b/devel/ruby-byaccr/files/Makefile
new file mode 100644
index 000000000000..1033cd71c219
--- /dev/null
+++ b/devel/ruby-byaccr/files/Makefile
@@ -0,0 +1,20 @@
+# $FreeBSD$
+
+PROG= byaccr
+SRCS= closure.c \
+ error.c \
+ lalr.c \
+ lr0.c \
+ main.c \
+ mkpar.c \
+ output.c \
+ reader.c \
+ skeleton.c \
+ symtab.c \
+ verbose.c \
+ warshall.c
+NOMAN= YES
+BINDIR= ${LOCALBASE}/bin
+
+.include <bsd.prog.mk>
+
diff --git a/devel/ruby-byaccr/pkg-comment b/devel/ruby-byaccr/pkg-comment
new file mode 100644
index 000000000000..8579efd1f137
--- /dev/null
+++ b/devel/ruby-byaccr/pkg-comment
@@ -0,0 +1 @@
+Parser generator for ruby based on 'Berkeley Yacc' and 'Berkeley Yacc for Java'
diff --git a/devel/ruby-byaccr/pkg-descr b/devel/ruby-byaccr/pkg-descr
new file mode 100644
index 000000000000..8d9e41452081
--- /dev/null
+++ b/devel/ruby-byaccr/pkg-descr
@@ -0,0 +1,4 @@
+byaccr is a parser generator for ruby based on 'Berkeley Yacc' and
+'Berkeley Yacc for Java'.
+
+Author: Takaaki Tateishi <ttate@jaist.ac.jp>
diff --git a/devel/ruby-byaccr/pkg-plist b/devel/ruby-byaccr/pkg-plist
new file mode 100644
index 000000000000..098b2b8bb1fc
--- /dev/null
+++ b/devel/ruby-byaccr/pkg-plist
@@ -0,0 +1,5 @@
+bin/byaccr
+%%RUBY_EXAMPLESDIR%%/byaccr/Parser.rb
+%%RUBY_EXAMPLESDIR%%/byaccr/Test.rb
+%%RUBY_EXAMPLESDIR%%/byaccr/cal.y
+@dirrm %%RUBY_EXAMPLESDIR%%/byaccr