pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/ruby lang/ruby: add RUBYGEM_VERBOSE



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2ab00ec9e034
branches:  trunk
changeset: 444624:2ab00ec9e034
user:      taca <taca%pkgsrc.org@localhost>
date:      Mon Jan 11 06:51:27 2021 +0000

description:
lang/ruby: add RUBYGEM_VERBOSE

Add RUBYGEM_VERBOSE user-settable variable.  It is useful for developers.


RUBYGEM_VERBOSE
        Execute gem with verbose option.
                Possible values: Yes No
                Default: No

diffstat:

 lang/ruby/gem-vars.mk |   4 +++-
 lang/ruby/gem.mk      |  12 +++++++++++-
 2 files changed, 14 insertions(+), 2 deletions(-)

diffs (48 lines):

diff -r e3c18ad23f34 -r 2ab00ec9e034 lang/ruby/gem-vars.mk
--- a/lang/ruby/gem-vars.mk     Mon Jan 11 05:49:48 2021 +0000
+++ b/lang/ruby/gem-vars.mk     Mon Jan 11 06:51:27 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: gem-vars.mk,v 1.10 2020/12/19 14:41:16 taca Exp $
+# $NetBSD: gem-vars.mk,v 1.11 2021/01/11 06:51:27 taca Exp $
 #
 # This Makefile fragment defines various make(1) variables for Ruby gems
 # support.
@@ -6,6 +6,8 @@
 .if !defined(_RUBYGEM_VARS_MK)
 _RUBYGEM_VARS_MK=      # defined
 
+RUBYGEM_VERBOSE?=      No
+
 # Specify GEM_PATH
 GEM_PATH?=     ${PREFIX}/${GEM_HOME}
 
diff -r e3c18ad23f34 -r 2ab00ec9e034 lang/ruby/gem.mk
--- a/lang/ruby/gem.mk  Mon Jan 11 05:49:48 2021 +0000
+++ b/lang/ruby/gem.mk  Mon Jan 11 06:51:27 2021 +0000
@@ -1,8 +1,15 @@
-# $NetBSD: gem.mk,v 1.43 2020/12/19 14:41:16 taca Exp $
+# $NetBSD: gem.mk,v 1.44 2021/01/11 06:51:27 taca Exp $
 #
 # This Makefile fragment is intended to be included by packages that build
 # and install Ruby gems.
 #
+# === User-settable variables ===
+#
+# RUBYGEM_VERBOSE
+#      Execute gem with verbose option.
+#              Possible values: Yes No
+#              Default: No
+#
 # Package-settable variables:
 #
 # OVERRIDE_GEMSPEC
@@ -270,6 +277,9 @@
 _RUBYGEM_OPTIONS+=     ${RUBYGEM_INSTALL_ROOT_OPTION}
 _RUBYGEM_OPTIONS+=     --ignore-dependencies
 _RUBYGEM_OPTIONS+=     --local ${WRKSRC}/${GEM_NAME}.gem
+.if !empty(RUBYGEM_VERBOSE:M[Yy][Ee][Ss])
+_RUBYGEM_OPTIONS+=     -V
+.endif
 .if !empty(RUBY_BUILD_DOCUMENT:M[nN][oO])
 _RUBYGEM_OPTIONS+=     --no-document
 .endif



Home | Main Index | Thread Index | Old Index