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 8, 2024
1 parent 0c46461 commit 38112a6
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
# Build an `:all` bottle.
inreplace "libexec/rbenv", "/usr/local", HOMEBREW_PREFIX

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

0 comments on commit 38112a6

Please sign in to comment.