summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authortaca <taca@pkgsrc.org>2004-11-28 05:59:59 +0000
committertaca <taca@pkgsrc.org>2004-11-28 05:59:59 +0000
commit65adcffccdd715b70ba9b36445c5d7a4aa47520a (patch)
tree7e360b1e6e59efca60212ea1b09b21a49a65b38c /devel
parent30860c21567dc770dd888ceb280b1ba35f2ff99b (diff)
downloadpkgsrc-65adcffccdd715b70ba9b36445c5d7a4aa47520a.tar.gz
Importing ruby16-racc, ruby-racc package for ruby16.
Racc is an LALR(1) parser generator for Ruby. It is written in Ruby and generates Ruby code. Almost all functions of yacc(1) are implemented.
Diffstat (limited to 'devel')
-rw-r--r--devel/ruby16-racc/DESCR3
-rw-r--r--devel/ruby16-racc/Makefile62
-rw-r--r--devel/ruby16-racc/PLIST51
-rw-r--r--devel/ruby16-racc/distinfo6
4 files changed, 122 insertions, 0 deletions
diff --git a/devel/ruby16-racc/DESCR b/devel/ruby16-racc/DESCR
new file mode 100644
index 00000000000..d7391bf28ad
--- /dev/null
+++ b/devel/ruby16-racc/DESCR
@@ -0,0 +1,3 @@
+Racc is an LALR(1) parser generator for Ruby. It is written in Ruby
+and generates Ruby code. Almost all functions of yacc(1) are
+implemented.
diff --git a/devel/ruby16-racc/Makefile b/devel/ruby16-racc/Makefile
new file mode 100644
index 00000000000..2eb815e8db2
--- /dev/null
+++ b/devel/ruby16-racc/Makefile
@@ -0,0 +1,62 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/11/28 05:59:59 taca Exp $
+# FreeBSD: ports/devel/ruby-racc/Makefile,v 1.20 2001/01/27 09:54:30 knu Exp
+
+DISTNAME= racc-${RACC_VERSION}-all-2
+PKGNAME= ${RUBY_PKGPREFIX}-racc-${RACC_VERSION}
+CATEGORIES= devel ruby
+MASTER_SITES= http://www.loveruby.net/archive/racc/
+
+MAINTAINER= taca@NetBSD.org
+HOMEPAGE= http://www.loveruby.net/en/racc.html
+COMMENT= LALR(1) parser generator for Ruby 1.6
+
+DEPENDS+= ${RUBY_PKGPREFIX}-strscan>=0.6.1:../../devel/ruby-strscan
+
+RUBY_VERSION= ${RUBY16_VERSION}
+USE_RUBY_SETUP= YES
+RACC_VERSION= 1.4.3
+CONFIGURE_ARGS+= --with=racc,raccrt
+WRKSRC= ${WRKDIR}/racc-${RACC_VERSION}-all
+
+DOCS= BUGS.en BUGS.ja README.en README.ja
+DOCS_EN= changes.html command.html debug.html grammar.html index.html \
+ notes.html parser.html usage.html
+DOCS_JA= changes.html command.html debug.html grammar.html index.html \
+ notes.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
+COMMANDS= racc racc2y y2racc
+
+.include "../../lang/ruby/rubyversion.mk"
+
+pre-configure:
+ ${CP} -p ${WRKSRC}/packages/racc/misc/* ${WRKSRC}/packages/racc/bin
+.if ${RUBY_NAME} != "ruby"
+.for f in ${COMMANDS}
+ ${MV} ${WRKSRC}/packages/racc/bin/$f \
+ ${WRKSRC}/packages/racc/bin/$f-${RUBY_VER}
+.endfor
+.endif
+
+post-install:
+ ${INSTALL_DATA_DIR} ${RUBY_DOCDIR}/racc/en
+.for f in ${DOCS}
+ ${INSTALL_DATA} ${WRKSRC}/packages/racc/${f} ${RUBY_DOCDIR}/racc
+.endfor
+.for f in ${DOCS_EN}
+ ${INSTALL_DATA} ${WRKSRC}/packages/racc/doc.en/${f} \
+ ${RUBY_DOCDIR}/racc/en
+.endfor
+ ${INSTALL_DATA_DIR} ${RUBY_DOCDIR}/racc/ja
+.for f in ${DOCS_JA}
+ ${INSTALL_DATA} ${WRKSRC}/packages/racc/doc.ja/${f} \
+ ${RUBY_DOCDIR}/racc/ja
+.endfor
+ ${INSTALL_DATA_DIR} ${RUBY_EXAMPLESDIR}/racc
+.for f in ${EXAMPLES}
+ ${INSTALL_DATA} ${WRKSRC}/packages/racc/sample/${f} \
+ ${RUBY_EXAMPLESDIR}/racc
+.endfor
+
+.include "../../lang/ruby/modules.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/ruby16-racc/PLIST b/devel/ruby16-racc/PLIST
new file mode 100644
index 00000000000..80eaa2b19b2
--- /dev/null
+++ b/devel/ruby16-racc/PLIST
@@ -0,0 +1,51 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/11/28 05:59:59 taca Exp $
+bin/racc-${RUBY_VER}
+bin/racc2y-${RUBY_VER}
+bin/y2racc-${RUBY_VER}
+${RUBY_SITEARCHLIBDIR}/racc/cparse.so
+@dirrm ${RUBY_SITEARCHLIBDIR}/racc
+${RUBY_SITELIBDIR}/racc/compiler.rb
+${RUBY_SITELIBDIR}/racc/grammar.rb
+${RUBY_SITELIBDIR}/racc/info.rb
+${RUBY_SITELIBDIR}/racc/iset.rb
+${RUBY_SITELIBDIR}/racc/output.rb
+${RUBY_SITELIBDIR}/racc/parser.rb
+${RUBY_SITELIBDIR}/racc/raccp.rb
+${RUBY_SITELIBDIR}/racc/raccs.rb
+${RUBY_SITELIBDIR}/racc/rubyloader.rb
+${RUBY_SITELIBDIR}/racc/state.rb
+${RUBY_SITELIBDIR}/racc/ucodep.rb
+@dirrm ${RUBY_SITELIBDIR}/racc
+${RUBY_DOCDIR}/racc/BUGS.en
+${RUBY_DOCDIR}/racc/BUGS.ja
+${RUBY_DOCDIR}/racc/README.en
+${RUBY_DOCDIR}/racc/README.ja
+${RUBY_DOCDIR}/racc/en/changes.html
+${RUBY_DOCDIR}/racc/en/command.html
+${RUBY_DOCDIR}/racc/en/debug.html
+${RUBY_DOCDIR}/racc/en/grammar.html
+${RUBY_DOCDIR}/racc/en/index.html
+${RUBY_DOCDIR}/racc/en/notes.html
+${RUBY_DOCDIR}/racc/en/parser.html
+${RUBY_DOCDIR}/racc/en/usage.html
+@dirrm ${RUBY_DOCDIR}/racc/en
+${RUBY_DOCDIR}/racc/ja/changes.html
+${RUBY_DOCDIR}/racc/ja/command.html
+${RUBY_DOCDIR}/racc/ja/debug.html
+${RUBY_DOCDIR}/racc/ja/grammar.html
+${RUBY_DOCDIR}/racc/ja/index.html
+${RUBY_DOCDIR}/racc/ja/notes.html
+${RUBY_DOCDIR}/racc/ja/parser.html
+${RUBY_DOCDIR}/racc/ja/usage.html
+@dirrm ${RUBY_DOCDIR}/racc/ja
+@dirrm ${RUBY_DOCDIR}/racc
+${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
+@dirrm ${RUBY_EXAMPLESDIR}/racc
diff --git a/devel/ruby16-racc/distinfo b/devel/ruby16-racc/distinfo
new file mode 100644
index 00000000000..091b49b243b
--- /dev/null
+++ b/devel/ruby16-racc/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/11/28 05:59:59 taca Exp $
+
+SHA1 (ruby/racc-1.4.3-all-2.tar.gz) = c73a7f25d8c4a08fbc75b210891cf78b88b6eac5
+Size (ruby/racc-1.4.3-all-2.tar.gz) = 105554 bytes
+SHA1 (ruby/racc-1.4.4.tar.gz) = 05ec265568fcf22d83b810c0377ea9edb0ca9999
+Size (ruby/racc-1.4.4.tar.gz) = 115343 bytes