diff options
author | taca <taca> | 2001-06-30 23:26:15 +0000 |
---|---|---|
committer | taca <taca> | 2001-06-30 23:26:15 +0000 |
commit | e43897cfe663a3b1ac7282a594f283b7746c2a7a (patch) | |
tree | f1ca59ca1f7c6faa34739dfa93da91b962439703 /devel/ruby-racc | |
parent | 225e85d0a2c0a1a43a9d6b7d5586b4a91a55d729 (diff) | |
download | pkgsrc-e43897cfe663a3b1ac7282a594f283b7746c2a7a.tar.gz |
Importing ruby-racc.
LALR(1) parser generator for Ruby.
Diffstat (limited to 'devel/ruby-racc')
-rw-r--r-- | devel/ruby-racc/Makefile | 72 | ||||
-rw-r--r-- | devel/ruby-racc/distinfo | 4 | ||||
-rw-r--r-- | devel/ruby-racc/pkg/DESCR | 6 | ||||
-rw-r--r-- | devel/ruby-racc/pkg/PLIST | 39 |
4 files changed, 121 insertions, 0 deletions
diff --git a/devel/ruby-racc/Makefile b/devel/ruby-racc/Makefile new file mode 100644 index 00000000000..e5373790faa --- /dev/null +++ b/devel/ruby-racc/Makefile @@ -0,0 +1,72 @@ +# $NetBSD: Makefile,v 1.1.1.1 2001/06/30 23:26:15 taca Exp $ +# FreeBSD: ports/devel/ruby-racc/Makefile,v 1.20 2001/01/27 09:54:30 knu Exp + +DISTNAME= racc-${RACC_VERSION} +PKGNAME?= ${RUBY_PKGNAMEPREFIX}${DISTNAME} +CATEGORIES= devel +MASTER_SITES= http://www.xdsl.ne.jp/Cd/aamine/soft/ + +MAINTAINER= taca@netbsd.org +HOMEPAGE= http://www.xdsl.ne.jp/Cd/aamine/ +COMMENT?= LALR(1) parser generator for Ruby + +RACC_VERSION= 1.3.9 + +DIST_SUBDIR= ruby +USE_RUBY= yes +USE_RUBY_AMSTD= yes +USE_RUBY_SETUP= yes + +.if !defined(RUNTIME) +DEPENDS+= ${RUBY_PKGNAMEPREFIX}racc-runtime-${RACC_VERSION}:../../devel/ruby-racc-runtime +DEPENDS+= ${RUBY_PKGNAMEPREFIX}strscan>=0.6.1:../../devel/ruby-strscan + +REPLACE_RUBY= misc/racc2y misc/y2racc + +DOCS_EN= changes.html command.html debug.html grammer.html index.html \ + parser.html usage.html +DOCS_JA= changes.html command.html debug.html grammer.html index.html \ + parser.html usage.html +EXAMPLES= array.y array2.y calc-ja.y calc.y conflict.y hash.y lalr.y \ + syntax.y yyerr.y +.endif + +pre-patch: + ${RUBY} -i -ne '/^amstd\b/ || /^strscan\b/ || print' ${WRKSRC}/lib/PATHCONV + ${RM} -rf ${WRKSRC}/lib/amstd ${WRKSRC}/lib/strscan +.if defined(RUNTIME) + ${RUBY} -i -ne '/^racc\b/ || print' ${WRKSRC}/bin/PATHCONV + ${RM} -rf ${WRKSRC}/bin/racc + ${RUBY} -i -ne '/^strscanso\b/ || print' ${WRKSRC}/ext/PATHCONV + ${RM} -rf ${WRKSRC}/ext/strscanso + ${RUBY} -i -ne '/^racc\b/ || print' ${WRKSRC}/lib/PATHCONV + ${RM} -rf ${WRKSRC}/lib/racc +.else + ${RM} -rf ${WRKSRC}/ext + ${RUBY} -i -ne '/^raccrt\b/ || print' ${WRKSRC}/lib/PATHCONV + ${RM} -rf ${WRKSRC}/lib/raccrt +.endif + +.if defined(RUNTIME) +pre-install: + ${INSTALL_DATA_DIR} ${RUBY_SITELIBDIR}/racc + ${INSTALL_DATA_DIR} ${RUBY_SITEARCHLIBDIR}/racc +.else +post-install: + ${INSTALL_SCRIPT} ${WRKSRC}/bin/racc/racc \ + ${WRKSRC}/misc/racc2y ${WRKSRC}/misc/y2racc ${PREFIX}/bin + ${INSTALL_DATA_DIR} ${RUBY_EXAMPLESDIR}/racc +.for f in ${EXAMPLES} + ${INSTALL_DATA} ${WRKSRC}/sample/${f} ${RUBY_EXAMPLESDIR}/racc +.endfor + ${INSTALL_DATA_DIR} ${RUBY_DOCDIR}/racc/ja +.for f in ${DOCS_EN} + ${INSTALL_DATA} ${WRKSRC}/doc.en/${f} ${RUBY_DOCDIR}/racc +.endfor +.for f in ${DOCS_JA} + ${INSTALL_DATA} ${WRKSRC}/doc.ja/${f} ${RUBY_DOCDIR}/racc/ja +.endfor +.endif + +.include "../../lang/ruby-base/Makefile.common" +.include "../../mk/bsd.pkg.mk" diff --git a/devel/ruby-racc/distinfo b/devel/ruby-racc/distinfo new file mode 100644 index 00000000000..536a27cbe2e --- /dev/null +++ b/devel/ruby-racc/distinfo @@ -0,0 +1,4 @@ +$NetBSD: distinfo,v 1.1.1.1 2001/06/30 23:26:15 taca Exp $ + +SHA1 (ruby/racc-1.3.9.tar.gz) = 4eab7aec51d2492dde149b6d6560921e625a126a +Size (ruby/racc-1.3.9.tar.gz) = 91563 bytes diff --git a/devel/ruby-racc/pkg/DESCR b/devel/ruby-racc/pkg/DESCR new file mode 100644 index 00000000000..73abc0871d4 --- /dev/null +++ b/devel/ruby-racc/pkg/DESCR @@ -0,0 +1,6 @@ +Racc is an LALR(1) parser generator for Ruby. It is written in Ruby +and generates Ruby code. Almost all functions of yacc(1) is +implemented. + +Author: Minero Aoki <aamine@dp.u-netsurf.ne.jp> +WWW: http://www1.u-netsurf.ne.jp/~brew/mine/en/index.html diff --git a/devel/ruby-racc/pkg/PLIST b/devel/ruby-racc/pkg/PLIST new file mode 100644 index 00000000000..37ce4315a13 --- /dev/null +++ b/devel/ruby-racc/pkg/PLIST @@ -0,0 +1,39 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2001/06/30 23:26:15 taca Exp $ +bin/racc +bin/racc2y +bin/y2racc +${RUBY_SITELIBDIR}/racc/compiler.rb +${RUBY_SITELIBDIR}/racc/grammer.rb +${RUBY_SITELIBDIR}/racc/info.rb +${RUBY_SITELIBDIR}/racc/iset.rb +${RUBY_SITELIBDIR}/racc/output.rb +${RUBY_SITELIBDIR}/racc/raccp.rb +${RUBY_SITELIBDIR}/racc/raccs.rb +${RUBY_SITELIBDIR}/racc/state.rb +${RUBY_SITELIBDIR}/racc/ucodep.rb +${RUBY_EXAMPLESDIR}/racc/array.y +${RUBY_EXAMPLESDIR}/racc/array2.y +${RUBY_EXAMPLESDIR}/racc/calc-ja.y +${RUBY_EXAMPLESDIR}/racc/calc.y +${RUBY_EXAMPLESDIR}/racc/conflict.y +${RUBY_EXAMPLESDIR}/racc/hash.y +${RUBY_EXAMPLESDIR}/racc/lalr.y +${RUBY_EXAMPLESDIR}/racc/syntax.y +${RUBY_EXAMPLESDIR}/racc/yyerr.y +${RUBY_DOCDIR}/racc/ja/changes.html +${RUBY_DOCDIR}/racc/ja/command.html +${RUBY_DOCDIR}/racc/ja/debug.html +${RUBY_DOCDIR}/racc/ja/grammer.html +${RUBY_DOCDIR}/racc/ja/index.html +${RUBY_DOCDIR}/racc/ja/parser.html +${RUBY_DOCDIR}/racc/ja/usage.html +${RUBY_DOCDIR}/racc/changes.html +${RUBY_DOCDIR}/racc/command.html +${RUBY_DOCDIR}/racc/debug.html +${RUBY_DOCDIR}/racc/grammer.html +${RUBY_DOCDIR}/racc/index.html +${RUBY_DOCDIR}/racc/parser.html +${RUBY_DOCDIR}/racc/usage.html +@dirrm ${RUBY_EXAMPLESDIR}/racc +@dirrm ${RUBY_DOCDIR}/racc/ja +@dirrm ${RUBY_DOCDIR}/racc |