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: add support for Ruby 3.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/60db920d42f1
branches:  trunk
changeset: 446919:60db920d42f1
user:      taca <taca%pkgsrc.org@localhost>
date:      Sun Feb 14 14:30:07 2021 +0000

description:
lang/ruby: add support for Ruby 3.0

diffstat:

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

diffs (174 lines):

diff -r 99f390364ea7 -r 60db920d42f1 lang/ruby/rubyversion.mk
--- a/lang/ruby/rubyversion.mk  Sun Feb 14 14:23:57 2021 +0000
+++ b/lang/ruby/rubyversion.mk  Sun Feb 14 14:30:07 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: rubyversion.mk,v 1.223 2020/10/04 04:28:35 taca Exp $
+# $NetBSD: rubyversion.mk,v 1.224 2021/02/14 14:30:07 taca Exp $
 #
 
 # This file determines which Ruby version is used as a dependency for
@@ -10,7 +10,7 @@
 # RUBY_VERSION_DEFAULT
 #      The preferered Ruby version to use.
 #
-#              Possible values: 25 26 27
+#              Possible values: 25 26 27 30
 #              Default: 26
 #
 # RUBY_BUILD_DOCUMENT
@@ -34,13 +34,13 @@
 # RUBY_VERSIONS_ACCEPTED
 #      The Ruby versions that are acceptable for the package.
 #
-#              Possible values: 25 26 27
-#              Default: 25 26 27
+#              Possible values: 25 26 27 30
+#              Default: 25 26 27 30
 #
 # RUBY_VERSIONS_INCOMPATIBLE
 #      The Ruby versions that are incompatible for the package.
 #
-#              Possible values: 25 26 27
+#              Possible values: 25 26 27 30
 #              Default: empty
 #
 # RUBY_NOVERSION
@@ -68,7 +68,7 @@
 # RUBY_VER
 #      Really selected version of ruby.
 #
-#              Possible values: 25 26 27
+#              Possible values: 25 26 27 30
 #
 #      Use this variable in pkgsrc's Makefile
 #
@@ -106,7 +106,7 @@
 # RUBY_SUFFIX
 #      Extra string for each ruby commands; ruby, irb and so on.
 #
-#              Possible values: 25 26 27
+#              Possible values: 25 26 27 30
 #
 # RUBY_VERSION
 #      Version of Ruby's version.
@@ -216,19 +216,22 @@
 RUBY25_VERSION=                2.5.8
 RUBY26_VERSION=                2.6.6
 RUBY27_VERSION=                2.7.2
+RUBY30_VERSION=                3.0.0
 
 # current API compatible version; used for version of shared library
 RUBY25_API_VERSION=    2.5.0
 RUBY26_API_VERSION=    2.6.0
 RUBY27_API_VERSION=    2.7.0
+RUBY30_API_VERSION=    3.0.0
+
 
 #
 RUBY_VERSION_DEFAULT?= 26
 
 # supported Ruby's version
-RUBY_VERSIONS_SUPPORTED=       25 26 27
+RUBY_VERSIONS_SUPPORTED=       25 26 27 30
 
-RUBY_VERSIONS_ACCEPTED?=       25 26 27
+RUBY_VERSIONS_ACCEPTED?=       25 26 27 30
 RUBY_VERSIONS_INCOMPATIBLE?=
 
 .if empty(RUBY_VERSIONS_SUPPORTED:M${RUBY_VERSION_DEFAULT})
@@ -282,6 +285,7 @@
 RUBY_XML_RPC_VERSION=          0.3.0
 
 RUBY_BIGDECIMAL_VERSION=       1.3.4
+RUBY_FIDDLE_VERSION=           1.0.0
 RUBY_JSON_VERSION=             2.1.0
 RUBY_IO_CONSOLE_VERSION=       0.4.6
 RUBY_OPENSSL_VERSION=          2.1.2
@@ -313,6 +317,7 @@
 RUBY_E2MMAP_VERSION=           0.1.0
 RUBY_ETC_VERSION=              1.0.1
 RUBY_FCNTL_VERSION=            1.0.0
+RUBY_FIDDLE_VERSION=           1.0.0
 RUBY_FILEUTILS_VERSION=                1.1.0
 RUBY_FORWARDABLE_VERSION=      1.2.0
 RUBY_IO_CONSOLE_VERSION=       0.4.7
@@ -394,6 +399,59 @@
 
 RUBY_SUFFIX=   ${_RUBY_VER_MAJOR}${_RUBY_VER_MINOR}
 
+.elif ${RUBY_VER} == "30"
+RUBY_VERSION=          ${RUBY30_VERSION}
+RUBY_ABI_VERSION=      ${RUBY_VERSION}
+
+RUBY_RDOC_VERSION=     6.3.0
+
+# bundled gems
+RUBY_MINITEST_VERSION=         5.14.2
+RUBY_POWER_ASSERT_VERSION=     1.2.0
+RUBY_RAKE_VERSION=             13.0.3
+RUBY_RBS_VERSION=              1.0.0
+RUBY_REXML_VERSION=            3.2.4
+RUBY_RSS_VERSION=              0.2.9
+RUBY_TEST_UNIT_VERSION=                3.3.7
+RUBY_TYPEPROF_VERSION=         0.11.0
+
+# bundled extensions
+RUBY_BIGDECIMAL_VERSION=       3.0.0
+RUBY_DATE_VERSION=             3.1.0
+RUBY_DBM_VERSION=              1.1.0
+RUBY_DIGEST_VERSION=           3.0.0
+RUBY_ETC_VERSION=              1.2.0
+RUBY_FCNTL_VERSION=            1.0.0
+RUBY_FIDDLE_VERSION=           1.0.4
+RUBY_IO_CONSOLE_VERSION=       0.5.6
+RUBY_JSON_VERSION=             2.5.1
+RUBY_OPENSSL_VERSION=          2.2.0
+RUBY_PSYCH_VERSION=            3.3.0
+RUBY_RACC_VERSION=             1.5.1
+RUBY_STRINGIO_VERSION=         3.0.0
+RUBY_STRSCAN_VERSION=          3.0.0
+RUBY_ZLIB_VERSION=             1.1.0
+
+# bundled libraries
+RUBY_BUNDLER_VERSION=          2.2.3
+RUBY_CSV_VERSION=              3.1.9
+RUBY_DID_YOU_MEAN_VERSION=     1.5.0
+RUBY_FILEUTILS_VERSION=                1.5.0
+RUBY_FORWARDABLE_VERSION=      1.3.2
+RUBY_GETOPTLONG_VERSION=       0.1.1
+RUBY_IPADDR_VERSION=           1.2.2
+RUBY_ERB_VERSION=              2.2.0
+RUBY_IRB_VERSION=              1.3.0
+RUBY_LOGGER_VERSION=           1.4.3
+RUBY_MATRIX_VERSION=           0.3.1
+RUBY_MUTEX_M_VERSION=          0.1.1
+RUBY_OSTRUCT_VERSION=          0.3.1
+RUBY_PRIME_VERSION=            0.1.2
+RUBY_TRACER_VERSION=           0.1.1
+RUBY_WEBRICK_VERSION=          1.6.0
+
+RUBY_SUFFIX=   ${_RUBY_VER_MAJOR}${_RUBY_VER_MINOR}
+
 .else
 PKG_FAIL_REASON+=      "Unknown Ruby version specified: ${RUBY_VER}."
 .endif
@@ -599,15 +657,19 @@
        ${PLIST_RUBY_DIRS:S,DIR="${PREFIX}/,DIR=",} \
        RUBY_MAJOR_MINOR=${RUBY_MAJOR_MINOR} RUBY_NAME=${RUBY_NAME} \
        RUBY_RAKE_VERSION=${RUBY_RAKE_VERSION} \
+       RUBY_RBS_VERSION=${RUBY_RBS_VERSION} \
        RUBY_RDOC_VERSION=${RUBY_RDOC_VERSION} \
+       RUBY_TYPEPROF_VERSION=${RUBY_TYPEPROF_VERSION} \
        RUBY_BIGDECIMAL_VERSION=${RUBY_BIGDECIMAL_VERSION} \
        RUBY_BUNDLER_VERSION=${RUBY_BUNDLER_VERSION} \
        RUBY_CMATH_VERSION=${RUBY_CMATH_VERSION} \
        RUBY_CSV_VERSION=${RUBY_CSV_VERSION} \
        RUBY_DATE_VERSION=${RUBY_DATE_VERSION} \
        RUBY_DBM_VERSION=${RUBY_DBM_VERSION} \
+       RUBY_DIGEST_VERSION=${RUBY_DIGEST_VERSION} \
        RUBY_E2MMAP_VERSION=${RUBY_E2MMAP_VERSION} \
        RUBY_ETC_VERSION=${RUBY_ETC_VERSION} \
+       RUBY_ERB_VERSION=${RUBY_ERB_VERSION} \
        RUBY_FCNTL_VERSION=${RUBY_FCNTL_VERSION} \
        RUBY_FILEUTILS_VERSION=${RUBY_FILEUTILS_VERSION} \
        RUBY_FORWARDABLE_VERSION=${RUBY_FORWARDABLE_VERSION} \



Home | Main Index | Thread Index | Old Index