summaryrefslogtreecommitdiff
path: root/textproc/ruby-syntax
diff options
context:
space:
mode:
authorminskim <minskim>2007-05-24 10:48:11 +0000
committerminskim <minskim>2007-05-24 10:48:11 +0000
commit301e06d5dbdfe2c0df560fc831fa65a040cb6611 (patch)
tree83777c7ce16479e2510fbea5fcd06b79397ea666 /textproc/ruby-syntax
parentcd45b897cb8f9919a52a0b02a688fe7cc836c149 (diff)
downloadpkgsrc-301e06d5dbdfe2c0df560fc831fa65a040cb6611.tar.gz
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.
Diffstat (limited to 'textproc/ruby-syntax')
-rw-r--r--textproc/ruby-syntax/DESCR7
-rw-r--r--textproc/ruby-syntax/Makefile17
-rw-r--r--textproc/ruby-syntax/PLIST12
-rw-r--r--textproc/ruby-syntax/distinfo5
4 files changed, 41 insertions, 0 deletions
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