summaryrefslogtreecommitdiff
path: root/textproc/ruby-html-parser
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2000-09-07 14:39:47 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2000-09-07 14:39:47 +0000
commit6be33926020dcfa43ec8a1bf94700238962f3b92 (patch)
treeb915338a31558eaf368cfd16cdf2b7ec1e6e80db /textproc/ruby-html-parser
parentFix the error detection routines at the end. (diff)
Update with bsd.ruby.mk. :>
Notes
Notes: svn path=/head/; revision=32391
Diffstat (limited to 'textproc/ruby-html-parser')
-rw-r--r--textproc/ruby-html-parser/Makefile21
-rw-r--r--textproc/ruby-html-parser/pkg-plist10
2 files changed, 13 insertions, 18 deletions
diff --git a/textproc/ruby-html-parser/Makefile b/textproc/ruby-html-parser/Makefile
index 84824836762b..5851fb3d1782 100644
--- a/textproc/ruby-html-parser/Makefile
+++ b/textproc/ruby-html-parser/Makefile
@@ -9,32 +9,27 @@ PORTNAME= html-parser
PORTVERSION= 19990912.p1
CATEGORIES= textproc ruby
MASTER_SITES= http://www.jin.gr.jp/~nahi/Ruby/html-parser/
-PKGNAMEPREFIX= ruby-
+PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
DISTNAME= ${PORTNAME}-${PORTVERSION:S/.//}
DIST_SUBDIR= ruby
MAINTAINER= knu@FreeBSD.org
-BUILD_DEPENDS= ruby:${PORTSDIR}/lang/ruby
-RUN_DEPENDS= ruby:${PORTSDIR}/lang/ruby
+USE_RUBY= yes
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}
-
MODULES= formatter.rb html-parser.rb sgml-parser.rb
do-install:
.for f in ${MODULES}
- ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/lib/ruby/site_ruby/${RUBY_VER}/
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_SITELIBDIR}
.endfor
.if !defined(NOPORTDOCS)
- ${MKDIR} ${PREFIX}/share/doc/ruby/html-parser
- ${INSTALL_DATA} ${WRKSRC}/README.html ${PREFIX}/share/doc/ruby/html-parser/
+ ${MKDIR} ${RUBY_DOCDIR}/html-parser
+ ${INSTALL_DATA} ${WRKSRC}/README.html ${RUBY_DOCDIR}/html-parser/
.endif
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+.include "${PORTSDIR}/Mk/bsd.ruby.mk"
+.include <bsd.port.post.mk>
diff --git a/textproc/ruby-html-parser/pkg-plist b/textproc/ruby-html-parser/pkg-plist
index 8f7bb694a3a3..e7b29450ca02 100644
--- a/textproc/ruby-html-parser/pkg-plist
+++ b/textproc/ruby-html-parser/pkg-plist
@@ -1,5 +1,5 @@
-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
+%%RUBY_SITELIBDIR%%/formatter.rb
+%%RUBY_SITELIBDIR%%/html-parser.rb
+%%RUBY_SITELIBDIR%%/sgml-parser.rb
+%%RUBY_DOCDIR%%/html-parser/README.html
+@dirrm %%RUBY_DOCDIR%%/html-parser