pkgsrc-Changes archive

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

CVS commit: pkgsrc/lang/ruby



Module Name:    pkgsrc
Committed By:   taca
Date:           Wed May 31 10:27:37 UTC 2017

Modified Files:
        pkgsrc/lang/ruby: gem-vars.mk

Log Message:
Do not always execute ${RUBYGEM}.

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


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 pkgsrc/lang/ruby/gem-vars.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/lang/ruby/gem-vars.mk
diff -u pkgsrc/lang/ruby/gem-vars.mk:1.6 pkgsrc/lang/ruby/gem-vars.mk:1.7
--- pkgsrc/lang/ruby/gem-vars.mk:1.6    Tue May 30 14:26:08 2017
+++ pkgsrc/lang/ruby/gem-vars.mk        Wed May 31 10:27:37 2017
@@ -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_MAJOR=      ${RUBY_GEMS_VERSION:C/\
 _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 @@ PLIST_SUBST+=         GEM_EXTSDIR=${GEM_EXTSDIR
 .else
 PLIST_SUBST+=          GEM_EXTSDIR="@comment "
 .endif
+.endif
 
 .endif



Home | Main Index | Thread Index | Old Index