Skip to content

Instantly share code, notes, and snippets.

@janl
Created August 30, 2011 13:31
Show Gist options
  • Save janl/1180878 to your computer and use it in GitHub Desktop.
Save janl/1180878 to your computer and use it in GitHub Desktop.
> git diff
diff --git a/Library/Formula/erlang.rb b/Library/Formula/erlang.rb
index 10656a4..5267b16 100644
--- a/Library/Formula/erlang.rb
+++ b/Library/Formula/erlang.rb
@@ -27,6 +27,9 @@ class Erlang < Formula
md5 '047f246c4ecb5fadaffb7e049795d80e'
version 'R14B03'
+ bottle 'https://github.com/downloads/janl/homebrew/erlang-R14B03-bottle.tar.gz'
+ bottle_sha1 '37d7be7cf500c898837ba99d4d7db95f18b3c328'
+
head 'https://github.com/erlang/otp.git', :branch => 'dev'
# We can't strip the beam executables or any plugins, there isn't really
diff --git a/Library/Homebrew/extend/ARGV.rb b/Library/Homebrew/extend/ARGV.rb
index 3fef2dc..6e1dd00 100644
--- a/Library/Homebrew/extend/ARGV.rb
+++ b/Library/Homebrew/extend/ARGV.rb
@@ -64,10 +64,19 @@ module HomebrewArgvExtension
end
def build_from_source?
+ p '-----'
+ p flag? '--build-from-source'
+ p ENV['HOMEBREW_BUILD_FROM_SOURCE']
+ p (not MacOS.lion?)
+ p HOMEBREW_PREFIX.to_s != '/usr/local'
+ p '-----'
return true if flag? '--build-from-source' or ENV['HOMEBREW_BUILD_FROM_SOURCE'] \
or not MacOS.lion? or HOMEBREW_PREFIX.to_s != '/usr/local'
options = options_only
options.delete '--universal'
+ p (not options.empty?)
+ p options
+ p '-----'
not options.empty?
end
jan@rose /usr/local (master *)
> brew install erlang
"-----"
false
nil
false
false
"-----"
false
[]
"-----"
==> Downloading https://github.com/erlang/otp/tarball/OTP_R14B03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment