Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion ruby/ruby-build/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ PortSystem 1.0
PortGroup github 1.0

github.setup rbenv ruby-build 20250916.1 v
revision 1
github.tarball_from archive
categories ruby
license MIT
Expand All @@ -24,4 +25,7 @@ checksums rmd160 7e7d517d9e30bc34f1ed00bb8d3e729a05b53974 \
use_configure no
build {}
destroot.cmd ./install.sh
destroot.env PREFIX=${destroot}${prefix}
destroot.env PREFIX=${destroot}${prefix}
patchfiles patch-ruby-build-no-homebrew.diff

notes "This port patches ruby-build to ignore Homebrew formulae when looking for library dependencies."
12 changes: 12 additions & 0 deletions ruby/ruby-build/files/patch-ruby-build-no-homebrew.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
--- bin/ruby-build.orig 2025-09-23 11:49:15
+++ bin/ruby-build 2025-09-23 12:05:37
@@ -20,6 +20,9 @@

OLDIFS="$IFS"

+# Disable Homebrew.
+brew() { false; }
+
# Have shell functions inherit the ERR trap.
set -E