Skip to content

Commit

Permalink
gem command is included in ruby-1.9 and later.
Browse files Browse the repository at this point in the history
  • Loading branch information
obache committed Feb 1, 2012
1 parent 138bf7e commit 714166c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions mk/tools/replace.mk
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 714166c

Please sign in to comment.