summaryrefslogtreecommitdiff
path: root/textproc/ruby-html-parser
diff options
context:
space:
mode:
Diffstat (limited to 'textproc/ruby-html-parser')
-rw-r--r--textproc/ruby-html-parser/Makefile18
-rw-r--r--textproc/ruby-html-parser/pkg-descr1
-rw-r--r--textproc/ruby-html-parser/pkg-plist6
3 files changed, 15 insertions, 10 deletions
diff --git a/textproc/ruby-html-parser/Makefile b/textproc/ruby-html-parser/Makefile
index 63606372933c..ebb3d32bb41c 100644
--- a/textproc/ruby-html-parser/Makefile
+++ b/textproc/ruby-html-parser/Makefile
@@ -1,6 +1,6 @@
-# New ports collection makefile for: Ruby-html-parser
-# Date created: 7 Aug 2000
-# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
+# New ports collection makefile for: Ruby-html-parser
+# Date created: 7 Aug 2000
+# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
#
# $FreeBSD$
#
@@ -22,12 +22,16 @@ NO_BUILD= yes
PLIST_SUB= RUBY_VER="${RUBY_VER}" RUBY_ARCH="${RUBY_ARCH}"
-RUBY= ${LOCALBASE}/bin/ruby
-RUBY_VER= 1.4
-RUBY_ARCH= ${ARCH}-freebsd${OSREL}
+RUBY?= ${LOCALBASE}/bin/ruby
+RUBY_VER?= 1.4
+RUBY_ARCH?= ${ARCH}-freebsd${OSREL}
+
+MODULES= formatter.rb html-parser.rb sgml-parser.rb
do-install:
- @cd ${WRKSRC}; ${RUBY} install.rb
+.for f in ${MODULES}
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/lib/ruby/site_ruby/${RUBY_VER}/
+.endfor
.if !defined(NOPORTDOCS)
${MKDIR} ${PREFIX}/share/doc/ruby/html-parser
${INSTALL_DATA} ${WRKSRC}/README.html ${PREFIX}/share/doc/ruby/html-parser/
diff --git a/textproc/ruby-html-parser/pkg-descr b/textproc/ruby-html-parser/pkg-descr
index 86f3fe102857..7e308b7db1f8 100644
--- a/textproc/ruby-html-parser/pkg-descr
+++ b/textproc/ruby-html-parser/pkg-descr
@@ -2,4 +2,5 @@ The html-parser package is a Ruby implementation of the Python's SGML
parser (sgmllib.py), HTML parser (htmllib.py) and Formatter
(formatter.py).
+Author: Takahiro Maebashi <maebashi@iij.ad.jp>
WWW: http://www.jin.gr.jp/~nahi/Ruby/html-parser/README.html
diff --git a/textproc/ruby-html-parser/pkg-plist b/textproc/ruby-html-parser/pkg-plist
index 79190f3860f0..8f7bb694a3a3 100644
--- a/textproc/ruby-html-parser/pkg-plist
+++ b/textproc/ruby-html-parser/pkg-plist
@@ -1,5 +1,5 @@
-lib/ruby/site_ruby/formatter.rb
-lib/ruby/site_ruby/html-parser.rb
-lib/ruby/site_ruby/sgml-parser.rb
+lib/ruby/site_ruby/%%RUBY_VER%%/formatter.rb
+lib/ruby/site_ruby/%%RUBY_VER%%/html-parser.rb
+lib/ruby/site_ruby/%%RUBY_VER%%/sgml-parser.rb
share/doc/ruby/html-parser/README.html
@dirrm share/doc/ruby/html-parser