Sun Dec 15 15:37:26 2019 UTC ()
lang/ruby: change default Ruby to 2.6.x

Change default vesion of Ruby from 2.4.x to 2.6.x.

* Ruby 2.7 will be released within this year.
* Ruby 2.6.x is stable enough and actively maintained.
* Ryby 2.5.x will be in security maintenance phase after
  release of Ruby 2.7.
* Ruby 2.4.x will be EOL after 31th March 2020.


(taca)
diff -r1.213 -r1.214 pkgsrc/lang/ruby/rubyversion.mk

cvs diff -r1.213 -r1.214 pkgsrc/lang/ruby/rubyversion.mk (expand / switch to unified diff)

--- pkgsrc/lang/ruby/rubyversion.mk 2019/11/03 19:04:06 1.213
+++ pkgsrc/lang/ruby/rubyversion.mk 2019/12/15 15:37:26 1.214
@@ -1,27 +1,27 @@ @@ -1,27 +1,27 @@
1# $NetBSD: rubyversion.mk,v 1.213 2019/11/03 19:04:06 rillig Exp $ 1# $NetBSD: rubyversion.mk,v 1.214 2019/12/15 15:37:26 taca Exp $
2# 2#
3 3
4# This file determines which Ruby version is used as a dependency for 4# This file determines which Ruby version is used as a dependency for
5# a package. 5# a package.
6# 6#
7# 7#
8# === User-settable variables === 8# === User-settable variables ===
9# 9#
10# RUBY_VERSION_DEFAULT 10# RUBY_VERSION_DEFAULT
11# The preferered Ruby version to use. 11# The preferered Ruby version to use.
12# 12#
13# Possible values: 22 24 25 26 13# Possible values: 22 24 25 26
14# Default: 24 14# Default: 26
15# 15#
16# RUBY_BUILD_DOCUMENT 16# RUBY_BUILD_DOCUMENT
17# Build documentation of this package and so that install formated 17# Build documentation of this package and so that install formated
18# documentation. It is also used in each package. 18# documentation. It is also used in each package.
19# 19#
20# Possible values: Yes No 20# Possible values: Yes No
21# Default: Yes 21# Default: Yes
22# 22#
23# === Infrastructure variables === 23# === Infrastructure variables ===
24# 24#
25# RUBY_VERSION_REQD 25# RUBY_VERSION_REQD
26# Ruby version to use. This variable should not be set in 26# Ruby version to use. This variable should not be set in
27# packages. Normally it is used by bulk build tools. 27# packages. Normally it is used by bulk build tools.
@@ -209,27 +209,27 @@ RUBY_VERSION_REQD?= ${PKGNAME_REQD:C/rub @@ -209,27 +209,27 @@ RUBY_VERSION_REQD?= ${PKGNAME_REQD:C/rub
209# current supported Ruby's version 209# current supported Ruby's version
210RUBY22_VERSION= 2.2.10 210RUBY22_VERSION= 2.2.10
211RUBY24_VERSION= 2.4.9 211RUBY24_VERSION= 2.4.9
212RUBY25_VERSION= 2.5.7 212RUBY25_VERSION= 2.5.7
213RUBY26_VERSION= 2.6.5 213RUBY26_VERSION= 2.6.5
214 214
215# current API compatible version; used for version of shared library 215# current API compatible version; used for version of shared library
216RUBY22_API_VERSION= 2.2.0 216RUBY22_API_VERSION= 2.2.0
217RUBY24_API_VERSION= 2.4.0 217RUBY24_API_VERSION= 2.4.0
218RUBY25_API_VERSION= 2.5.0 218RUBY25_API_VERSION= 2.5.0
219RUBY26_API_VERSION= 2.6.0 219RUBY26_API_VERSION= 2.6.0
220 220
221# 221#
222RUBY_VERSION_DEFAULT?= 24 222RUBY_VERSION_DEFAULT?= 26
223 223
224# supported Ruby's version 224# supported Ruby's version
225RUBY_VERSIONS_SUPPORTED= 24 25 26 22 225RUBY_VERSIONS_SUPPORTED= 24 25 26 22
226 226
227RUBY_VERSIONS_ACCEPTED?= 24 25 26 227RUBY_VERSIONS_ACCEPTED?= 24 25 26
228RUBY_VERSIONS_INCOMPATIBLE?= 228RUBY_VERSIONS_INCOMPATIBLE?=
229 229
230.if empty(RUBY_VERSIONS_SUPPORTED:M${RUBY_VERSION_DEFAULT}) 230.if empty(RUBY_VERSIONS_SUPPORTED:M${RUBY_VERSION_DEFAULT})
231. error Unsuported RUBY_VERSION_DEFAULT: ${RUBY_VERSION_DEFAULT} 231. error Unsuported RUBY_VERSION_DEFAULT: ${RUBY_VERSION_DEFAULT}
232.endif 232.endif
233 233
234.for rv in ${RUBY_VERSIONS_ACCEPTED} 234.for rv in ${RUBY_VERSIONS_ACCEPTED}
235. if empty(RUBY_VERSIONS_INCOMPATIBLE:M${rv}) 235. if empty(RUBY_VERSIONS_INCOMPATIBLE:M${rv})