ruby 3.1.0
parent
563c8bc681
commit
913d0f5aa0
|
@ -1,8 +1,8 @@
|
||||||
class Ruby < Formula
|
class Ruby < Formula
|
||||||
desc "Powerful, clean, object-oriented scripting language"
|
desc "Powerful, clean, object-oriented scripting language"
|
||||||
homepage "https://www.ruby-lang.org/"
|
homepage "https://www.ruby-lang.org/"
|
||||||
url "https://cache.ruby-lang.org/pub/ruby/3.0/ruby-3.0.3.tar.xz"
|
url "https://cache.ruby-lang.org/pub/ruby/3.1/ruby-3.1.0.tar.gz"
|
||||||
sha256 "88cc7f0f021f15c4cd62b1f922e3a401697f7943551fe45b1fdf4f2417a17a9c"
|
sha256 "50a0504c6edcb4d61ce6b8cfdbddaa95707195fab0ecd7b5e92654b2a9412854"
|
||||||
license "Ruby"
|
license "Ruby"
|
||||||
|
|
||||||
livecheck do
|
livecheck do
|
||||||
|
@ -38,8 +38,8 @@ class Ruby < Formula
|
||||||
# The exception is Rubygem security fixes, which mandate updating this
|
# The exception is Rubygem security fixes, which mandate updating this
|
||||||
# formula & the versioned equivalents and bumping the revisions.
|
# formula & the versioned equivalents and bumping the revisions.
|
||||||
resource "rubygems" do
|
resource "rubygems" do
|
||||||
url "https://rubygems.org/rubygems/rubygems-3.2.32.tgz"
|
url "https://rubygems.org/rubygems/rubygems-3.3.3.tgz"
|
||||||
sha256 "1a8223ad81c442badc4735df35d92a642401419fd107942966d4f0468a500b9c"
|
sha256 "92dbe63e8bd2f937d61e9db2d407ed6891f44fdfcb5faf4683a3f88afc7a5363"
|
||||||
end
|
end
|
||||||
|
|
||||||
def api_version
|
def api_version
|
||||||
|
@ -54,6 +54,11 @@ class Ruby < Formula
|
||||||
# otherwise `gem` command breaks
|
# otherwise `gem` command breaks
|
||||||
ENV.delete("SDKROOT")
|
ENV.delete("SDKROOT")
|
||||||
|
|
||||||
|
# Prevent `make` from trying to install headers into the SDK
|
||||||
|
# TODO: Remove this workaround when the following PR is merged/resolved:
|
||||||
|
# https://github.com/Homebrew/brew/pull/12508
|
||||||
|
inreplace "tool/mkconfig.rb", /^(\s+val = )'"\$\(SDKROOT\)"'\+/, "\\1"
|
||||||
|
|
||||||
system "./autogen.sh" if build.head?
|
system "./autogen.sh" if build.head?
|
||||||
|
|
||||||
paths = %w[libyaml openssl@1.1 readline].map { |f| Formula[f].opt_prefix }
|
paths = %w[libyaml openssl@1.1 readline].map { |f| Formula[f].opt_prefix }
|
||||||
|
|
Loading…
Reference in New Issue