Add ruby-byaccr, a parser generator for ruby based on 'Berkeley Yacc'

and 'Berkeley Yacc for Java'.
This commit is contained in:
Akinori MUSHA 2000-11-02 03:10:00 +00:00
parent dcc056cf75
commit 67ef948d38
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=34587
7 changed files with 69 additions and 0 deletions

View File

@ -280,6 +280,7 @@
SUBDIR += robodoc
SUBDIR += rpc2
SUBDIR += ruby-amstd
SUBDIR += ruby-byaccr
SUBDIR += ruby-date2
SUBDIR += ruby-filelock
SUBDIR += ruby-intl

View File

@ -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>

View File

@ -0,0 +1 @@
MD5 (ruby/byaccr-0.0.tar.gz) = 5d4fc00605e882699d08c11b6bd83dd7

View File

@ -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>

View File

@ -0,0 +1 @@
Parser generator for ruby based on 'Berkeley Yacc' and 'Berkeley Yacc for Java'

View File

@ -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>

View File

@ -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