summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authortaca <taca>2017-04-22 18:29:31 +0000
committertaca <taca>2017-04-22 18:29:31 +0000
commit8e3e5317068bee988e2350e7059906614292d78c (patch)
tree1bd59c6f09998042eb3307bdd8f0121b02aac97f /lang
parentd0f31d7e1d64d668b199253ecc02f1f3265bd236 (diff)
downloadpkgsrc-8e3e5317068bee988e2350e7059906614292d78c.tar.gz
Add RUBY_VERSIONS_SUPPORTED, versions supported by pkgsrc.
(It should be commited before remove ruby18.)
Diffstat (limited to 'lang')
-rw-r--r--lang/ruby/rubyversion.mk11
1 files changed, 9 insertions, 2 deletions
diff --git a/lang/ruby/rubyversion.mk b/lang/ruby/rubyversion.mk
index e3fb4d75f14..36d54eab3fc 100644
--- a/lang/ruby/rubyversion.mk
+++ b/lang/ruby/rubyversion.mk
@@ -1,4 +1,4 @@
-# $NetBSD: rubyversion.mk,v 1.172 2017/04/09 15:57:00 taca Exp $
+# $NetBSD: rubyversion.mk,v 1.173 2017/04/22 18:29:31 taca Exp $
#
# This file determines which Ruby version is used as a dependency for
@@ -42,7 +42,7 @@
# The Ruby versions that are acceptable for the package.
#
# Possible values: 18 21 22 23
-# Default: 21 22 23
+# Default: 23 22 21
#
# RUBY_NOVERSION
# If "Yes", the package dosen't depend on any version of Ruby, such
@@ -253,9 +253,16 @@ RUBY_RDOC_PKGSRC_VERS= 4.2.2
#
RUBY_VERSION_DEFAULT?= 23
+# supported Ruby's version
+RUBY_VERSIONS_SUPPORTED= 23 22 21 18
+
RUBY_VERSIONS_ACCEPTED?= 23 22 21
RUBY_VERSIONS_INCOMPATIBLE?=
+.if empty(RUBY_VERSIONS_SUPPORTED:M${RUBY_VERSION_DEFAULT})
+.error Unsuported RUBY_VERSION_DEFAULT: ${RUBY_VERSION_DEFAULT}
+.endif
+
.for rv in ${RUBY_VERSIONS_ACCEPTED}
. if empty(RUBY_VERSIONS_INCOMPATIBLE:M${rv})
_RUBY_VERSIONS_ACCEPTED+= ${rv}