Skip to content

Commit

Permalink
rbenv: build an :all bottle
Browse files Browse the repository at this point in the history
We can build one if we made the `inreplace` unconditional.
  • Loading branch information
carlocab committed Sep 7, 2024
1 parent 0c46461 commit 7da0c75
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Formula/r/rbenv.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
# This is needed only on non-`/usr/local` prefixes, but do it unconditionally for an :all bottle.
inreplace "libexec/rbenv", ":/usr/local/etc/rbenv.d", ":#{HOMEBREW_PREFIX}/etc/rbenv.d\\0"

if build.head?
# Record exact git revision for `rbenv --version` output
Expand Down

0 comments on commit 7da0c75

Please sign in to comment.