Download raw body.
New: Ruby 4.0.0
This adds Ruby 4.0, released yesterday. Release announcement at
https://www.ruby-lang.org/en/news/2025/12/25/ruby-4-0-0-released/
I'd like to commit this with updates to ruby.port.mk to support the
ruby40 FLAVOR for Ruby ports.
Tested on amd64 since preview1. New port attached as .tar.gz,
ruby.port.mk change inline. I'll update ruby-module.5 appropriately
after commit.
OK to commit?
Thanks,
Jeremy
Index: ruby.port.mk
===================================================================
RCS file: /cvs/ports/lang/ruby/ruby.port.mk,v
retrieving revision 1.125
diff -u -p -u -p -r1.125 ruby.port.mk
--- ruby.port.mk 4 Nov 2025 01:08:13 -0000 1.125
+++ ruby.port.mk 25 Dec 2025 15:00:27 -0000
@@ -25,7 +25,7 @@ MODRUBY_HANDLE_FLAVORS ?= No
# If ruby.pork.mk should handle FLAVORs, define a separate FLAVOR
# for each ruby version.
. if !defined(FLAVORS)
-FLAVORS= ruby33 ruby34
+FLAVORS= ruby33 ruby34 ruby40
. endif
# Instead of adding flavors to the end of the package name, we use
@@ -49,11 +49,12 @@ FLAVOR = ruby34
# Check for conflicting FLAVORs and set MODRUBY_REV appropriately based
# on the FLAVOR.
-. for i in ruby33 ruby34
+. for i in ruby33 ruby34 ruby40
. if ${FLAVOR:M$i}
MODRUBY_REV = ${i:C/ruby([0-9])/\1./}
. if ${FLAVOR:N$i:Mruby33} || \
- ${FLAVOR:N$i:Mruby34}
+ ${FLAVOR:N$i:Mruby34} || \
+ ${FLAVOR:N$i:Mruby40}
ERRORS += "Fatal: Conflicting flavors used: ${FLAVOR}"
. endif
. endif
New: Ruby 4.0.0