aboutsummaryrefslogtreecommitdiff
path: root/Mk
diff options
context:
space:
mode:
authorPhilip M. Gollucci <pgollucci@FreeBSD.org>2010-08-31 03:28:05 +0000
committerPhilip M. Gollucci <pgollucci@FreeBSD.org>2010-08-31 03:28:05 +0000
commitd2e84b418d3dcf7df02eb196cba4a91b8a909e4c (patch)
tree188bc290b5f03ec07daf32bd2fbe2e6dce1f91cc /Mk
parent4e2a10c5ee9c1a005f00cc78b0e0e0d0a1fe23b5 (diff)
downloadports-d2e84b418d3dcf7df02eb196cba4a91b8a909e4c.tar.gz
ports-d2e84b418d3dcf7df02eb196cba4a91b8a909e4c.zip
Notes
Diffstat (limited to 'Mk')
-rw-r--r--Mk/bsd.ruby.mk11
1 files changed, 6 insertions, 5 deletions
diff --git a/Mk/bsd.ruby.mk b/Mk/bsd.ruby.mk
index e9458242572f..520fd5ee9c6d 100644
--- a/Mk/bsd.ruby.mk
+++ b/Mk/bsd.ruby.mk
@@ -137,6 +137,7 @@ Ruby_Include_MAINTAINER= stas@FreeBSD.org
#
RUBY_DEFAULT_VER?= 1.8
+RAKE_VER= 0.8.7
RUBY_VER?= ${RUBY_DEFAULT_VER}
@@ -534,12 +535,12 @@ RUN_DEPENDS+= ${DEPEND_RUBY_ICONV}
.endif
.if defined(USE_RAKE)
-. if ${RUBY_VER} == 1.8
BUILD_DEPENDS+= ${LOCALBASE}/bin/rake:${PORTSDIR}/devel/rubygem-rake
-RAKE_BIN= ${LOCALBASE}/bin/rake
-. else
-RAKE_BIN= ${LOCALBASE}/bin/${RUBY_VER:S/.//}
-. endif
+.if ${RUBY_VER} == 1.8
+RAKE_BIN= ${LOCALBASE}/bin/rake
+.else
+RAKE_BIN= ${GEM_LIB_DIR}/bin/rake${RUBY_VER:S/.//}
+.endif
.endif
.if defined(USE_RUBY_AMSTD)