pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/ruby Add RUBY_VERSIONS_SUPPORTED, versions suppor...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/38451a0f1257
branches:  trunk
changeset: 361588:38451a0f1257
user:      taca <taca%pkgsrc.org@localhost>
date:      Sat Apr 22 18:29:31 2017 +0000

description:
Add RUBY_VERSIONS_SUPPORTED, versions supported by pkgsrc.
(It should be commited before remove ruby18.)

diffstat:

 lang/ruby/rubyversion.mk |  11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diffs (35 lines):

diff -r 42ae482ccaf4 -r 38451a0f1257 lang/ruby/rubyversion.mk
--- a/lang/ruby/rubyversion.mk  Sat Apr 22 18:27:04 2017 +0000
+++ b/lang/ruby/rubyversion.mk  Sat Apr 22 18:29:31 2017 +0000
@@ -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_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}



Home | Main Index | Thread Index | Old Index