From a71fbf79ec62f69460f8ab2b94be0849fbfe47a5 Mon Sep 17 00:00:00 2001 From: knu Date: Thu, 2 Nov 2000 03:10:00 +0000 Subject: Add ruby-byaccr, a parser generator for ruby based on 'Berkeley Yacc' and 'Berkeley Yacc for Java'. --- devel/Makefile | 1 + devel/ruby-byaccr/Makefile | 37 +++++++++++++++++++++++++++++++++++++ devel/ruby-byaccr/distinfo | 1 + devel/ruby-byaccr/files/Makefile | 20 ++++++++++++++++++++ devel/ruby-byaccr/pkg-comment | 1 + devel/ruby-byaccr/pkg-descr | 4 ++++ devel/ruby-byaccr/pkg-plist | 5 +++++ 7 files changed, 69 insertions(+) create mode 100644 devel/ruby-byaccr/Makefile create mode 100644 devel/ruby-byaccr/distinfo create mode 100644 devel/ruby-byaccr/files/Makefile create mode 100644 devel/ruby-byaccr/pkg-comment create mode 100644 devel/ruby-byaccr/pkg-descr create mode 100644 devel/ruby-byaccr/pkg-plist (limited to 'devel') 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 +# +# $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 ,#include ,' ${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 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 + 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 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 -- cgit