summaryrefslogtreecommitdiff
path: root/japanese
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2002-08-03 09:03:49 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2002-08-03 09:03:49 +0000
commitfe8a515d5877db37bb0c2f2c9e8396ceead603cc (patch)
treef3818280cde8ba0f86c24567eb96d171dd1ecfc6 /japanese
parentUpdate to 1.7.2.2002.07.31. The optparse module has been included. (diff)
ruby-optparse is now part of ruby16-shim-ruby18.
Notes
Notes: svn path=/head/; revision=63897
Diffstat (limited to 'japanese')
-rw-r--r--japanese/rbnamazu/Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/japanese/rbnamazu/Makefile b/japanese/rbnamazu/Makefile
index 0a09e1d33d66..0a5e31c45219 100644
--- a/japanese/rbnamazu/Makefile
+++ b/japanese/rbnamazu/Makefile
@@ -13,8 +13,6 @@ DIST_SUBDIR= ruby
MAINTAINER= knu@FreeBSD.org
-RUN_DEPENDS= ${RUBY_SITELIBDIR}/optparse.rb:${PORTSDIR}/devel/ruby-optparse
-
USE_RUBY= yes
.if !defined(NOPORTDOCS)
USE_RUBY_RD= yes
@@ -25,6 +23,12 @@ NO_BUILD= yes
MODULES= rbnamazu.rb nmzqr.rb nmzqr.tab.rb nmzdoc.rb
RD_DOCS= rbnamazu.rd.ja rbnamazu.rd.en
+.include <bsd.port.pre.mk>
+
+.if ${RUBY_VER} < 1.7
+RUN_DEPENDS+= ${RUBY_SITELIBDIR}/optparse.rb:${PORTSDIR}/lang/ruby16-shim-ruby18
+.endif
+
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/namazu.rb ${PREFIX}/bin/
${LN} -sf namazu.rb ${PREFIX}/bin/rbnamazu
@@ -45,4 +49,4 @@ do-install:
.endfor
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>