From 38112a6745f82de2f6885e18a9c1307c2b56b994 Mon Sep 17 00:00:00 2001 From: Carlo Cabrera <30379873+carlocab@users.noreply.github.com> Date: Sun, 8 Sep 2024 02:50:30 +0800 Subject: [PATCH] rbenv: build an `:all` bottle We can build one if we made the `inreplace` unconditional. --- Formula/r/rbenv.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Formula/r/rbenv.rb b/Formula/r/rbenv.rb index 8e3fe67e068f..de0d2963bca5 100644 --- a/Formula/r/rbenv.rb +++ b/Formula/r/rbenv.rb @@ -21,9 +21,8 @@ class Rbenv < Formula uses_from_macos "ruby" => :test def install - inreplace "libexec/rbenv" do |s| - s.gsub! ":/usr/local/etc/rbenv.d", ":#{HOMEBREW_PREFIX}/etc/rbenv.d\\0" if HOMEBREW_PREFIX.to_s != "/usr/local" - end + # Build an `:all` bottle. + inreplace "libexec/rbenv", "/usr/local", HOMEBREW_PREFIX if build.head? # Record exact git revision for `rbenv --version` output