Wed Jul 21 14:39:05 2021 UTC ()
lang/ruby: switch defult Ruby's version to 2.7

Switch default Ruby's version from 2.6 to 2.7.


(taca)
diff -r1.235 -r1.236 pkgsrc/lang/ruby/rubyversion.mk

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

--- pkgsrc/lang/ruby/rubyversion.mk 2021/07/07 16:11:57 1.235
+++ pkgsrc/lang/ruby/rubyversion.mk 2021/07/21 14:39:05 1.236
@@ -1,51 +1,51 @@ @@ -1,51 +1,51 @@
1# $NetBSD: rubyversion.mk,v 1.235 2021/07/07 16:11:57 taca Exp $ 1# $NetBSD: rubyversion.mk,v 1.236 2021/07/21 14:39:05 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: 26 27 30 13# Possible values: 26 27 30
14# Default: 26 14# Default: 27
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.
28# 28#
29# Possible values: ${RUBY_VERSIONS_ACCEPTED} 29# Possible values: ${RUBY_VERSIONS_ACCEPTED}
30# Default: ${RUBY_VERSION_DEFAULT} 30# Default: ${RUBY_VERSION_DEFAULT}
31# 31#
32# === Package-settable variables === 32# === Package-settable variables ===
33# 33#
34# RUBY_VERSIONS_ACCEPTED 34# RUBY_VERSIONS_ACCEPTED
35# The Ruby versions that are acceptable for the package. 35# The Ruby versions that are acceptable for the package.
36# 36#
37# Possible values: 26 27 30 37# Possible values: 26 27 30
38# Default: 26 27 30 38# Default: 27 30 26
39# 39#
40# RUBY_VERSIONS_INCOMPATIBLE 40# RUBY_VERSIONS_INCOMPATIBLE
41# The Ruby versions that are incompatible for the package. 41# The Ruby versions that are incompatible for the package.
42# 42#
43# Possible values: 26 27 30 43# Possible values: 26 27 30
44# Default: empty 44# Default: empty
45# 45#
46# RUBY_NOVERSION 46# RUBY_NOVERSION
47# If "Yes", the package dosen't depend on any version of Ruby, such 47# If "Yes", the package dosen't depend on any version of Ruby, such
48# as editing mode for emacs. In this case, package's name would begin 48# as editing mode for emacs. In this case, package's name would begin
49# with "ruby-". Otherwise, the package's name is begin with 49# with "ruby-". Otherwise, the package's name is begin with
50# ${RUBY_PKGPREFIX}. 50# ${RUBY_PKGPREFIX}.
51# 51#
@@ -213,32 +213,32 @@ RUBY_VERSION_REQD?= ${PKGNAME_REQD:C/rub @@ -213,32 +213,32 @@ RUBY_VERSION_REQD?= ${PKGNAME_REQD:C/rub
213.endif 213.endif
214 214
215# current supported Ruby's version 215# current supported Ruby's version
216RUBY26_VERSION= 2.6.8 216RUBY26_VERSION= 2.6.8
217RUBY27_VERSION= 2.7.4 217RUBY27_VERSION= 2.7.4
218RUBY30_VERSION= 3.0.2 218RUBY30_VERSION= 3.0.2
219 219
220# current API compatible version; used for version of shared library 220# current API compatible version; used for version of shared library
221RUBY26_API_VERSION= 2.6.0 221RUBY26_API_VERSION= 2.6.0
222RUBY27_API_VERSION= 2.7.0 222RUBY27_API_VERSION= 2.7.0
223RUBY30_API_VERSION= 3.0.0 223RUBY30_API_VERSION= 3.0.0
224 224
225# 225#
226RUBY_VERSION_DEFAULT?= 26 226RUBY_VERSION_DEFAULT?= 27
227 227
228# supported Ruby's version 228# supported Ruby's version
229RUBY_VERSIONS_SUPPORTED= 26 27 30 229RUBY_VERSIONS_SUPPORTED= 26 27 30
230 230
231RUBY_VERSIONS_ACCEPTED?= 26 27 30 231RUBY_VERSIONS_ACCEPTED?= 27 30 26
232RUBY_VERSIONS_INCOMPATIBLE?= 232RUBY_VERSIONS_INCOMPATIBLE?=
233 233
234.if empty(RUBY_VERSIONS_SUPPORTED:M${RUBY_VERSION_DEFAULT}) 234.if empty(RUBY_VERSIONS_SUPPORTED:M${RUBY_VERSION_DEFAULT})
235. error Unsuported RUBY_VERSION_DEFAULT: ${RUBY_VERSION_DEFAULT} 235. error Unsuported RUBY_VERSION_DEFAULT: ${RUBY_VERSION_DEFAULT}
236.endif 236.endif
237 237
238.for rv in ${RUBY_VERSIONS_ACCEPTED} 238.for rv in ${RUBY_VERSIONS_ACCEPTED}
239. if empty(RUBY_VERSIONS_INCOMPATIBLE:M${rv}) 239. if empty(RUBY_VERSIONS_INCOMPATIBLE:M${rv})
240_RUBY_VERSIONS_ACCEPTED+= ${rv} 240_RUBY_VERSIONS_ACCEPTED+= ${rv}
241. endif 241. endif
242.endfor 242.endfor
243 243
244.if defined(RUBY_VERSION_REQD) 244.if defined(RUBY_VERSION_REQD)