ruby-build: Disable Homebrew

This commit is contained in:
Nicolas Bachschmidt
2025-09-23 12:18:51 +02:00
committed by Renee Otten
parent 5951e2f461
commit 368f572646
2 changed files with 17 additions and 1 deletions
+5 -1
View File
@@ -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}
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."
@@ -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