aboutsummaryrefslogtreecommitdiff
path: root/devel/ruby-racc
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2002-06-08 17:40:25 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2002-06-08 17:40:25 +0000
commit747f5d83f54cea38d10d52e70ed4c04beb817a4a (patch)
tree567aa475df4f1dbad0adc8ede46f0a013b1de417 /devel/ruby-racc
parent4cb33dba944e25e58dd571f801821a810ea7a93c (diff)
downloadports-747f5d83f54cea38d10d52e70ed4c04beb817a4a.tar.gz
ports-747f5d83f54cea38d10d52e70ed4c04beb817a4a.zip
devel/ruby-racc-runtime has been replaced with lang/ruby16-shim-ruby18.
Notes
Notes: svn path=/head/; revision=60873
Diffstat (limited to 'devel/ruby-racc')
-rw-r--r--devel/ruby-racc/Makefile18
1 files changed, 8 insertions, 10 deletions
diff --git a/devel/ruby-racc/Makefile b/devel/ruby-racc/Makefile
index 36178a8e8db5..30085008c8df 100644
--- a/devel/ruby-racc/Makefile
+++ b/devel/ruby-racc/Makefile
@@ -17,21 +17,20 @@ DIST_SUBDIR= ruby
MAINTAINER= knu@FreeBSD.org
-.if !defined(RUNTIME)
-RUN_DEPENDS= ${RUBY_SITELIBDIR}/racc/parser.rb:${PORTSDIR}/devel/ruby-racc-runtime \
- ${RUBY_SITELIBDIR}/strscan.rb:${PORTSDIR}/devel/ruby-strscan
-.endif
-
USE_RUBY= yes
USE_RUBY_SETUP= yes
-.if defined(RUNTIME)
-CONFIGURE_ARGS= --with=raccrt
-.else
CONFIGURE_ARGS= --with=racc
WRKDIR_RACC= ${WRKSRC}/packages/racc
+.include <bsd.port.pre.mk>
+
+.if ${RUBY_VER} < 1.7
+RUN_DEPENDS+= ${RUBY_SITELIBDIR}/racc/parser.rb:${PORTSDIR}/lang/ruby16-shim-ruby18 \
+ ${RUBY_SITEARCHLIBDIR}/strscan.so:${PORTSDIR}/lang/ruby16-shim-ruby18
+.endif
+
post-extract:
${CP} -p ${WRKDIR_RACC}/misc/* ${WRKDIR_RACC}/bin/
@@ -43,6 +42,5 @@ do-install:
${INSTALL_DATA} ${WRKDIR_RACC}/doc.en/* ${RUBY_DOCDIR}/${PORTNAME}/
${INSTALL_DATA} ${WRKDIR_RACC}/doc.ja/* ${RUBY_DOCDIR}/${PORTNAME}/ja/
.endif
-.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>