From d9c254195091bd35b5c95f3d38c507fd2f4cf156 Mon Sep 17 00:00:00 2001 From: minskim Date: Thu, 24 May 2007 10:48:11 +0000 Subject: Import ruby-syntax. Syntax is a lexical analysis framework. It supports pluggable syntax modules, and comes with modules for Ruby, XML, and YAML. It means you can use Syntax to take a body of text representing instructions in some syntax (like Ruby), and break that text into tokens. You could conceivably use it to count the number of classes in a system, or the number of lines of code per method. But Syntax was written specifically with syntax highlighting in mind. --- textproc/ruby-syntax/DESCR | 7 +++++++ textproc/ruby-syntax/Makefile | 17 +++++++++++++++++ textproc/ruby-syntax/PLIST | 12 ++++++++++++ textproc/ruby-syntax/distinfo | 5 +++++ 4 files changed, 41 insertions(+) create mode 100644 textproc/ruby-syntax/DESCR create mode 100644 textproc/ruby-syntax/Makefile create mode 100644 textproc/ruby-syntax/PLIST create mode 100644 textproc/ruby-syntax/distinfo (limited to 'textproc') diff --git a/textproc/ruby-syntax/DESCR b/textproc/ruby-syntax/DESCR new file mode 100644 index 00000000000..1163a92056f --- /dev/null +++ b/textproc/ruby-syntax/DESCR @@ -0,0 +1,7 @@ +Syntax is a lexical analysis framework. It supports pluggable syntax +modules, and comes with modules for Ruby, XML, and YAML. It means you +can use Syntax to take a body of text representing instructions in +some syntax (like Ruby), and break that text into tokens. You could +conceivably use it to count the number of classes in a system, or the +number of lines of code per method. But Syntax was written +specifically with syntax highlighting in mind. diff --git a/textproc/ruby-syntax/Makefile b/textproc/ruby-syntax/Makefile new file mode 100644 index 00000000000..23797114b12 --- /dev/null +++ b/textproc/ruby-syntax/Makefile @@ -0,0 +1,17 @@ +# $NetBSD: Makefile,v 1.1.1.1 2007/05/24 10:48:11 minskim Exp $ + +DISTNAME= syntax-1.0.0 +PKGNAME= ${RUBY_PKGPREFIX}-${DISTNAME} +CATEGORIES= textproc ruby +MASTER_SITES= http://rubyforge.org/frs/download.php/4952/ +EXTRACT_SUFX= .tar.bz2 + +MAINTAINER= minskim@NetBSD.org +HOMEPAGE= http://syntax.rubyforge.org/ +COMMENT= Ruby lexical analysis framework + +USE_LANGUAGES= # none +USE_RUBY_SETUP= yes + +.include "../../lang/ruby/modules.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/textproc/ruby-syntax/PLIST b/textproc/ruby-syntax/PLIST new file mode 100644 index 00000000000..6eb1e53f5a4 --- /dev/null +++ b/textproc/ruby-syntax/PLIST @@ -0,0 +1,12 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2007/05/24 10:48:11 minskim Exp $ +${RUBY_SITELIBDIR}/syntax.rb +${RUBY_SITELIBDIR}/syntax/common.rb +${RUBY_SITELIBDIR}/syntax/convertors/abstract.rb +${RUBY_SITELIBDIR}/syntax/convertors/html.rb +${RUBY_SITELIBDIR}/syntax/lang/ruby.rb +${RUBY_SITELIBDIR}/syntax/lang/xml.rb +${RUBY_SITELIBDIR}/syntax/lang/yaml.rb +${RUBY_SITELIBDIR}/syntax/version.rb +@dirrm ${RUBY_SITELIBDIR}/syntax/lang +@dirrm ${RUBY_SITELIBDIR}/syntax/convertors +@dirrm ${RUBY_SITELIBDIR}/syntax diff --git a/textproc/ruby-syntax/distinfo b/textproc/ruby-syntax/distinfo new file mode 100644 index 00000000000..f68ba8d8eee --- /dev/null +++ b/textproc/ruby-syntax/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1.1.1 2007/05/24 10:48:11 minskim Exp $ + +SHA1 (syntax-1.0.0.tar.bz2) = c5c28bdb60c756120568a7c96347d6690058e9f7 +RMD160 (syntax-1.0.0.tar.bz2) = 3c34ce247b535416c8f09664209793e9089bdab2 +Size (syntax-1.0.0.tar.bz2) = 43126 bytes -- cgit v1.2.3