From 4eaa40ae1f432f3fd49fef628928579cb7eba600 Mon Sep 17 00:00:00 2001
From: Mike McQuaid
Date: Wed, 10 Aug 2016 20:06:14 +0100
Subject: Enable vendored Ruby 2.0.
---
Library/Homebrew/cmd/vendor-install.sh | 6 +++++-
Library/Homebrew/manpages/brew.1.md.erb | 4 ++++
Library/Homebrew/utils/ruby.sh | 29 -----------------------------
share/doc/homebrew/Common-Issues.md | 2 +-
share/doc/homebrew/brew.1.html | 2 ++
share/man/man1/brew.1 | 4 ++++
6 files changed, 16 insertions(+), 31 deletions(-)
diff --git a/Library/Homebrew/cmd/vendor-install.sh b/Library/Homebrew/cmd/vendor-install.sh
index 90a339382..ca64789bc 100644
--- a/Library/Homebrew/cmd/vendor-install.sh
+++ b/Library/Homebrew/cmd/vendor-install.sh
@@ -8,6 +8,7 @@ source "$HOMEBREW_LIBRARY/Homebrew/utils/lock.sh"
VENDOR_DIR="$HOMEBREW_LIBRARY/Homebrew/vendor"
+# Built from https://github.com/Homebrew/homebrew-portable.
if [[ -n "$HOMEBREW_OSX" ]]
then
if [[ "$HOMEBREW_PROCESSOR" = "Intel" ]]
@@ -185,7 +186,10 @@ homebrew-vendor-install() {
if [[ -z "$VENDOR_URL" || -z "$VENDOR_SHA" ]]
then
- odie "Cannot find a vendored version of $VENDOR_NAME."
+ odie <<-EOS
+Cannot find a vendored version of $VENDOR_NAME for your $HOMEBREW_PROCESSOR
+processor on $HOMEBREW_PRODUCT!
+EOS
fi
VENDOR_VERSION="$(<"$VENDOR_DIR/portable-$VENDOR_NAME-version")"
diff --git a/Library/Homebrew/manpages/brew.1.md.erb b/Library/Homebrew/manpages/brew.1.md.erb
index affac9295..fff2bf7e5 100644
--- a/Library/Homebrew/manpages/brew.1.md.erb
+++ b/Library/Homebrew/manpages/brew.1.md.erb
@@ -151,6 +151,10 @@ can take several different forms:
directories. TextMate can handle this correctly in project mode, but many
editors will do strange things in this case.
+ * `HOMEBREW_FORCE_VENDOR_RUBY`:
+ If set, Homebrew will always use its vendored, relocatable Ruby 2.0 version
+ even if the system version of Ruby is >=2.0.
+
* `HOMEBREW_GITHUB_API_TOKEN`:
A personal access token for the GitHub API, which you can create at
Note: brew edit will open all of Homebrew as discontinuous files and
directories. TextMate can handle this correctly in project mode, but many
editors will do strange things in this case.
HOMEBREW_FORCE_VENDOR_RUBYIf set, Homebrew will always use its vendored, relocatable Ruby 2.0 version +even if the system version of Ruby is >=2.0.
HOMEBREW_GITHUB_API_TOKENA personal access token for the GitHub API, which you can create at https://github.com/settings/tokens. If set, GitHub will allow you a greater number of API requests. See diff --git a/share/man/man1/brew.1 b/share/man/man1/brew.1 index f3c5f3899..d39a35463 100644 --- a/share/man/man1/brew.1 +++ b/share/man/man1/brew.1 @@ -764,6 +764,10 @@ If set, Homebrew will use this editor when editing a single formula, or several \fINote:\fR \fBbrew edit\fR will open all of Homebrew as discontinuous files and directories\. TextMate can handle this correctly in project mode, but many editors will do strange things in this case\. . .TP +\fBHOMEBREW_FORCE_VENDOR_RUBY\fR +If set, Homebrew will always use its vendored, relocatable Ruby 2\.0 version even if the system version of Ruby is >=2\.0\. +. +.TP \fBHOMEBREW_GITHUB_API_TOKEN\fR A personal access token for the GitHub API, which you can create at \fIhttps://github\.com/settings/tokens\fR\. If set, GitHub will allow you a greater number of API requests\. See \fIhttps://developer\.github\.com/v3/#rate\-limiting\fR for more information\. Homebrew uses the GitHub API for features such as \fBbrew search\fR\. . -- cgit v1.2.3