summaryrefslogtreecommitdiff
path: root/textproc/ruby-xmlscan
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2002-06-09 06:10:04 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2002-06-09 06:10:04 +0000
commit91a4d5dbbf4e29986ef823b3e855d1a15cae1777 (patch)
treedc15494353b20e0c6999fc20e0e9b986ba01c23f /textproc/ruby-xmlscan
parentUpdate to 0.2.27. (diff)
devel/ruby-racc-runtime has been replaced with lang/ruby16-shim-ruby18.
Reported by: make index
Notes
Notes: svn path=/head/; revision=60944
Diffstat (limited to 'textproc/ruby-xmlscan')
-rw-r--r--textproc/ruby-xmlscan/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/textproc/ruby-xmlscan/Makefile b/textproc/ruby-xmlscan/Makefile
index 7b4170cfe394..5ed1ec80747e 100644
--- a/textproc/ruby-xmlscan/Makefile
+++ b/textproc/ruby-xmlscan/Makefile
@@ -15,10 +15,15 @@ DIST_SUBDIR= ruby
MAINTAINER= knu@FreeBSD.org
BUILD_DEPENDS= racc:${PORTSDIR}/devel/ruby-racc
-RUN_DEPENDS= ${RUBY_SITELIBDIR}/racc/parser.rb:${PORTSDIR}/devel/ruby-racc-runtime
USE_RUBY= yes
+.include <bsd.port.pre.mk>
+
+.if ${RUBY_VER} < 1.7
+RUN_DEPENDS+= ${RUBY_SITELIBDIR}/racc/parser.rb:${PORTSDIR}/lang/ruby16-shim-ruby18
+.endif
+
do-build:
cd ${WRKSRC}; racc -v -g -c -o xmldtd.rb xmldtd.ry
@@ -29,4 +34,4 @@ do-install:
${INSTALL_DATA} ${WRKSRC}/README ${RUBY_DOCDIR}/${PORTNAME}/ja/
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>