summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2001-09-20 11:17:57 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2001-09-20 11:17:57 +0000
commit7a0aafe69ec9afff1b0b6debe9c3a10ed2ddbfde (patch)
tree82683badcfda42d6e08b20154955de586dcd238f /textproc
parentUpdate to 0.52. (diff)
Add ruby-format (FormatR), which provides Perl like formats for Ruby.
Notes
Notes: svn path=/head/; revision=48011
Diffstat (limited to 'textproc')
-rw-r--r--textproc/Makefile1
-rw-r--r--textproc/ruby-format/Makefile39
-rw-r--r--textproc/ruby-format/distinfo1
-rw-r--r--textproc/ruby-format/pkg-comment1
-rw-r--r--textproc/ruby-format/pkg-descr7
-rw-r--r--textproc/ruby-format/pkg-plist5
6 files changed, 54 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile
index da89c0e5edcc..196b8329a9d2 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -168,6 +168,7 @@
SUBDIR += rtf2htm
SUBDIR += ruby-csv
SUBDIR += ruby-erb
+ SUBDIR += ruby-format
SUBDIR += ruby-gdome
SUBDIR += ruby-html-parser
SUBDIR += ruby-htmlcompact
diff --git a/textproc/ruby-format/Makefile b/textproc/ruby-format/Makefile
new file mode 100644
index 000000000000..8c19cc3ab6b2
--- /dev/null
+++ b/textproc/ruby-format/Makefile
@@ -0,0 +1,39 @@
+# New ports collection makefile for: FormatR
+# Date created: 20 September 2001
+# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= format
+PORTVERSION= 0.9
+CATEGORIES= textproc ruby
+MASTER_SITES= http://www.crhc.uiuc.edu/~rubel/
+PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
+DISTNAME= FormatR
+DIST_SUBDIR= ruby
+
+MAINTAINER= knu@FreeBSD.org
+
+USE_RUBY= yes
+.if !defined(NOPORTDOCS)
+USE_RUBY_RD= yes
+.endif
+
+NO_WRKSUBDIR= yes
+
+do-build:
+.if !defined(NOPORTDOCS)
+ cd ${WRKSRC}; ${RUBY_RD} format.rb > format.html
+.endif
+
+do-install:
+ ${INSTALL_DATA} ${WRKSRC}/format.rb ${RUBY_SITELIBDIR}/
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${RUBY_EXAMPLESDIR}/${PORTNAME}
+ ${INSTALL_DATA} ${WRKSRC}/test_format.rb ${RUBY_EXAMPLESDIR}/${PORTNAME}/
+ ${MKDIR} ${RUBY_DOCDIR}/${PORTNAME}
+ ${INSTALL_DATA} ${WRKSRC}/format.html ${RUBY_DOCDIR}/${PORTNAME}/
+.endif
+
+.include <bsd.port.mk>
diff --git a/textproc/ruby-format/distinfo b/textproc/ruby-format/distinfo
new file mode 100644
index 000000000000..bf7350210eb5
--- /dev/null
+++ b/textproc/ruby-format/distinfo
@@ -0,0 +1 @@
+MD5 (ruby/FormatR.tar.gz) = 87becd78b1c4ccb3d47496c2b78915a8
diff --git a/textproc/ruby-format/pkg-comment b/textproc/ruby-format/pkg-comment
new file mode 100644
index 000000000000..a15eb696007e
--- /dev/null
+++ b/textproc/ruby-format/pkg-comment
@@ -0,0 +1 @@
+Perl like formats for Ruby
diff --git a/textproc/ruby-format/pkg-descr b/textproc/ruby-format/pkg-descr
new file mode 100644
index 000000000000..ce1469864aa6
--- /dev/null
+++ b/textproc/ruby-format/pkg-descr
@@ -0,0 +1,7 @@
+Class Format in module FormatR provides Perl like formats for Ruby.
+
+These are used to create output with a similar format but with
+changing values.
+
+Author: Paul Rubel <rubel@crhc.uiuc.edu>
+WWW: http://www.crhc.uiuc.edu/~rubel/FormatR.html
diff --git a/textproc/ruby-format/pkg-plist b/textproc/ruby-format/pkg-plist
new file mode 100644
index 000000000000..ede47b3d10a7
--- /dev/null
+++ b/textproc/ruby-format/pkg-plist
@@ -0,0 +1,5 @@
+%%RUBY_SITELIBDIR%%/format.rb
+%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/format/test_format.rb
+%%PORTDOCS%%@dirrm %%RUBY_EXAMPLESDIR%%/format
+%%PORTDOCS%%%%RUBY_DOCDIR%%/format/format.html
+%%PORTDOCS%%@dirrm %%RUBY_DOCDIR%%/format