diff options
Diffstat (limited to 'mk/tools')
-rw-r--r-- | mk/tools/replace.mk | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/mk/tools/replace.mk b/mk/tools/replace.mk index c6c2923ab09..0d431731793 100644 --- a/mk/tools/replace.mk +++ b/mk/tools/replace.mk @@ -1,4 +1,4 @@ -# $NetBSD: replace.mk,v 1.239 2012/01/14 01:52:14 hans Exp $ +# $NetBSD: replace.mk,v 1.240 2012/02/01 12:05:09 obache Exp $ # # Copyright (c) 2005 The NetBSD Foundation, Inc. # All rights reserved. @@ -404,10 +404,14 @@ TOOLS_ALIASES.gawk= awk . if !empty(PKGPATH:Mmisc/rubygems) MAKEFLAGS+= TOOLS_IGNORE.gem= . elif !empty(_TOOLS_USE_PKGSRC.gem:M[yY][eE][sS]) +. if !defined(RUBY_VER) || !empty(RUBY_VER:M18) TOOLS_DEPENDS.gem?= rubygems-[0-9]*:../../misc/rubygems +. else +TOOLS_DEPENDS.gem?= ${RUBY_BASE}>=${RUBY_VERSION}:../../lang/${RUBY_BASE} +. endif TOOLS_CREATE+= gem TOOLS_FIND_PREFIX+= TOOLS_PREFIX.gem=gem -TOOLS_PATH.gem= ${TOOLS_PREFIX.gem}/bin/gem +TOOLS_PATH.gem= ${TOOLS_PREFIX.gem}/bin/gem${RUBY_VER} . endif .endif |