diff --git a/ruby/ruby-build/Portfile b/ruby/ruby-build/Portfile index 63b54c9533c..61a0ca1314c 100644 --- a/ruby/ruby-build/Portfile +++ b/ruby/ruby-build/Portfile @@ -4,6 +4,7 @@ PortSystem 1.0 PortGroup github 1.0 github.setup rbenv ruby-build 20250925 v +revision 1 github.tarball_from archive categories ruby license MIT @@ -24,4 +25,7 @@ checksums rmd160 5491d1ffe926a0fc4d7524f247a30895b556a9bd \ use_configure no build {} destroot.cmd ./install.sh -destroot.env PREFIX=${destroot}${prefix} \ No newline at end of file +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." diff --git a/ruby/ruby-build/files/patch-ruby-build-no-homebrew.diff b/ruby/ruby-build/files/patch-ruby-build-no-homebrew.diff new file mode 100644 index 00000000000..be6e3e83607 --- /dev/null +++ b/ruby/ruby-build/files/patch-ruby-build-no-homebrew.diff @@ -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 +