summaryrefslogtreecommitdiff
path: root/japanese/rbnamazu
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2000-09-07 07:44:38 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2000-09-07 07:44:38 +0000
commit65ff91142eae892357ed74efdeeda4b9e192d834 (patch)
treef35923c34cade1490b49384542b065518c378507 /japanese/rbnamazu
parentUpdate with bsd.ruby.mk. (diff)
Update with bsd.ruby.mk.
Notes
Notes: svn path=/head/; revision=32373
Diffstat (limited to 'japanese/rbnamazu')
-rw-r--r--japanese/rbnamazu/Makefile27
-rw-r--r--japanese/rbnamazu/pkg-plist16
2 files changed, 20 insertions, 23 deletions
diff --git a/japanese/rbnamazu/Makefile b/japanese/rbnamazu/Makefile
index 68ea2298be90..9240189e57c9 100644
--- a/japanese/rbnamazu/Makefile
+++ b/japanese/rbnamazu/Makefile
@@ -13,20 +13,15 @@ DIST_SUBDIR= ruby
MAINTAINER= knu@FreeBSD.org
+RUN_DEPENDS= ${RUBY_SITELIBDIR}/optparse.rb:${PORTSDIR}/devel/ruby-optparse
+
+USE_RUBY= yes
.if !defined(NOPORTDOCS)
-BUILD_DEPENDS+= rd2:${PORTSDIR}/textproc/ruby-rdtool
+USE_RUBY_RD= yes
.endif
-RUN_DEPENDS= ruby:${PORTSDIR}/lang/ruby \
- ${LOCALBASE}/lib/ruby/site_ruby/${RUBY_VER}/optparse.rb:${PORTSDIR}/devel/ruby-optparse
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= rbnamazu.rb nmzqr.rb nmzqr.tab.rb nmzdoc.rb
RD_DOCS= rbnamazu.rd.ja rbnamazu.rd.en
@@ -34,20 +29,22 @@ do-install:
${INSTALL_SCRIPT} ${WRKSRC}/namazu.rb ${PREFIX}/bin/
${LN} -sf namazu.rb ${PREFIX}/bin/rbnamazu
.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)
.for f in ${RD_DOCS}
cd ${WRKSRC}; \
- rd2 ${f} > ${f:S/.rd/.html/}
+ ${RUBY_RD} ${f} > ${f:S/.rd/.html/}
.endfor
- ${MKDIR} ${PREFIX}/share/doc/ruby/rbnamazu/ja
+ ${MKDIR} ${RUBY_DOCDIR}/rbnamazu/ja
.for f in ${RD_DOCS:S/.rd/.html/:M*.en}
- ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/ruby/rbnamazu/
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/rbnamazu/
.endfor
.for f in ${RD_DOCS:S/.rd/.html/:M*.ja}
- ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/ruby/rbnamazu/ja/
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/rbnamazu/ja/
.endfor
.endif
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+.include "${PORTSDIR}/Mk/bsd.ruby.mk"
+.include <bsd.port.post.mk>
diff --git a/japanese/rbnamazu/pkg-plist b/japanese/rbnamazu/pkg-plist
index 7a3365fd056a..593b17b37a8f 100644
--- a/japanese/rbnamazu/pkg-plist
+++ b/japanese/rbnamazu/pkg-plist
@@ -1,10 +1,10 @@
bin/namazu.rb
bin/rbnamazu
-lib/ruby/site_ruby/%%RUBY_VER%%/nmzdoc.rb
-lib/ruby/site_ruby/%%RUBY_VER%%/nmzqr.rb
-lib/ruby/site_ruby/%%RUBY_VER%%/nmzqr.tab.rb
-lib/ruby/site_ruby/%%RUBY_VER%%/rbnamazu.rb
-share/doc/ruby/rbnamazu/ja/rbnamazu.html.ja
-share/doc/ruby/rbnamazu/rbnamazu.html.en
-@dirrm share/doc/ruby/rbnamazu/ja
-@dirrm share/doc/ruby/rbnamazu
+%%RUBY_SITELIBDIR%%/nmzdoc.rb
+%%RUBY_SITELIBDIR%%/nmzqr.rb
+%%RUBY_SITELIBDIR%%/nmzqr.tab.rb
+%%RUBY_SITELIBDIR%%/rbnamazu.rb
+%%RUBY_DOCDIR%%/rbnamazu/ja/rbnamazu.html.ja
+%%RUBY_DOCDIR%%/rbnamazu/rbnamazu.html.en
+@dirrm %%RUBY_DOCDIR%%/rbnamazu/ja
+@dirrm %%RUBY_DOCDIR%%/rbnamazu