pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/ruby Do not always execute ${RUBYGEM}.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/aa22cfe0e538
branches:  trunk
changeset: 363062:aa22cfe0e538
user:      taca <taca%pkgsrc.org@localhost>
date:      Wed May 31 10:27:37 2017 +0000

description:
Do not always execute ${RUBYGEM}.

Thanks for wiz@ who noted via private e-mail.

diffstat:

 lang/ruby/gem-vars.mk |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r 59afa1388e3a -r aa22cfe0e538 lang/ruby/gem-vars.mk
--- a/lang/ruby/gem-vars.mk     Wed May 31 10:24:48 2017 +0000
+++ b/lang/ruby/gem-vars.mk     Wed May 31 10:27:37 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: gem-vars.mk,v 1.6 2017/05/30 14:26:08 taca Exp $
+# $NetBSD: gem-vars.mk,v 1.7 2017/05/31 10:27:37 taca Exp $
 #
 # This Makefile fragment defines various make(1) variables for Ruby gems
 # support.
@@ -21,6 +21,8 @@
 _RUBYGEMS_MINORS=      ${RUBY_GEMS_VERSION:C/^([0-9]+)\.*//:C/\..*//}
 
 GEM_EXTSDIR_NEEDS_SUBDIR?=     yes
+
+.if exists(${RUBYGEM})
 RUBY_GEM_ARCH!=        ${RUBYGEM} environment platform | ${SED} -e 's|.*:||'
 
 .if !empty(GEM_EXTSDIR_NEEDS_SUBDIR:M[nN][oO])
@@ -34,5 +36,6 @@
 .else
 PLIST_SUBST+=          GEM_EXTSDIR="@comment "
 .endif
+.endif
 
 .endif



Home | Main Index | Thread Index | Old Index