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: change for --no-document option



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ac0085b935d2
branches:  trunk
changeset: 416371:ac0085b935d2
user:      taca <taca%pkgsrc.org@localhost>
date:      Thu Oct 24 14:39:37 2019 +0000

description:
lang/ruby: change for --no-document option

Replace RUBY_BUILD_RDOC and RUBY_BUILD_RI with RUBY_BUILD_DOCUMENT since
rdoc's --no-rdoc and --no-ri options are deprecated almost 8 years ago
and these options are replaced with -no-document option.

No package should be changed.

diffstat:

 lang/ruby/gem.mk         |   9 +++------
 lang/ruby/rubyversion.mk |  16 ++++------------
 2 files changed, 7 insertions(+), 18 deletions(-)

diffs (65 lines):

diff -r 5d5d27167e36 -r ac0085b935d2 lang/ruby/gem.mk
--- a/lang/ruby/gem.mk  Thu Oct 24 13:00:07 2019 +0000
+++ b/lang/ruby/gem.mk  Thu Oct 24 14:39:37 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: gem.mk,v 1.39 2019/02/09 15:22:46 taca Exp $
+# $NetBSD: gem.mk,v 1.40 2019/10/24 14:39:37 taca Exp $
 #
 # This Makefile fragment is intended to be included by packages that build
 # and install Ruby gems.
@@ -258,11 +258,8 @@
 _RUBYGEM_OPTIONS+=     ${RUBYGEM_INSTALL_ROOT_OPTION}
 _RUBYGEM_OPTIONS+=     --ignore-dependencies
 _RUBYGEM_OPTIONS+=     --local ${WRKSRC}/${GEM_NAME}.gem
-.if !empty(RUBY_BUILD_RI:M[nN][oO])
-_RUBYGEM_OPTIONS+=     --no-ri
-.endif
-.if !empty(RUBY_BUILD_RDOC:M[nN][oO])
-_RUBYGEM_OPTIONS+=     --no-rdoc
+.if !empty(RUBY_BUILD_DOCUMENT:M[nN][oO])
+_RUBYGEM_OPTIONS+=     --no-document
 .endif
 .if !empty(CONFIGURE_ARGS) || !empty(RUBY_EXTCONF_ARGS)
 _RUBYGEM_OPTIONS+=     --
diff -r 5d5d27167e36 -r ac0085b935d2 lang/ruby/rubyversion.mk
--- a/lang/ruby/rubyversion.mk  Thu Oct 24 13:00:07 2019 +0000
+++ b/lang/ruby/rubyversion.mk  Thu Oct 24 14:39:37 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: rubyversion.mk,v 1.211 2019/10/02 13:44:34 taca Exp $
+# $NetBSD: rubyversion.mk,v 1.212 2019/10/24 14:39:37 taca Exp $
 #
 
 # This file determines which Ruby version is used as a dependency for
@@ -13,20 +13,13 @@
 #              Possible values: 22 24 25 26
 #              Default: 24
 #
-# RUBY_BUILD_RDOC
-#      Build rdoc of this package and so that install formated
+# RUBY_BUILD_DOCUMENT
+#      Build documentation of this package and so that install formated
 #      documentation.  It is also used in each package.
 #
 #              Possible values: Yes No
 #              Default: Yes
 #
-# RUBY_BUILD_RI
-#      Build ri format of this package so that ri command would be
-#      display class/module definitions.  It is also used in each package.
-#
-#              Possible values: Yes No
-#              Default: Yes
-#
 # === Infrastructure variables ===
 #
 # RUBY_VERSION_REQD
@@ -425,8 +418,7 @@
 RUBY_NAME=             ruby
 .endif
 
-RUBY_BUILD_RDOC?=      Yes
-RUBY_BUILD_RI?=                Yes
+RUBY_BUILD_DOCUMENT?=  Yes
 
 RUBY?=                 ${PREFIX}/bin/${RUBY_NAME}
 RAKE?=                 ${PREFIX}/bin/${RAKE_NAME}



Home | Main Index | Thread Index | Old Index