aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorCharlie Sharpsteen2011-11-29 10:02:45 -0800
committerCharlie Sharpsteen2011-11-29 10:02:45 -0800
commit22e473de98cae05d9a33b843af7352bcffa83e7b (patch)
tree4e190f5e2da4e783d4f5f997e88cc9a9e26297d7 /Library/Formula
parentc655c1722e1410701dabbfa11d2e630ec63d42dc (diff)
downloadhomebrew-22e473de98cae05d9a33b843af7352bcffa83e7b.tar.bz2
Revert "Emacs: remove the "--use-git-head" option"
This reverts commit 3b570b834b7ab50545028bc22aea1d9422b36891. Closes #8774.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/emacs.rb22
1 files changed, 21 insertions, 1 deletions
diff --git a/Library/Formula/emacs.rb b/Library/Formula/emacs.rb
index 824879712..79507799a 100644
--- a/Library/Formula/emacs.rb
+++ b/Library/Formula/emacs.rb
@@ -4,18 +4,24 @@ class Emacs < Formula
url 'http://ftpmirror.gnu.org/emacs/emacs-23.3b.tar.bz2'
md5 '917ce0054ef63773078a6e99b55df1ee'
homepage 'http://www.gnu.org/software/emacs/'
- head 'bzr://http://bzr.savannah.gnu.org/r/emacs/trunk'
fails_with_llvm "Duplicate symbol errors while linking.", :build => 2334
# Stripping on Xcode 4 causes malformed object errors
skip_clean ["bin/emacs", "bin/emacs-23.3", "bin/emacs-24.0.50"]
+ if ARGV.include? "--use-git-head"
+ head 'git://repo.or.cz/emacs.git'
+ else
+ head 'bzr://http://bzr.savannah.gnu.org/r/emacs/trunk'
+ end
+
def options
[
["--cocoa", "Build a Cocoa version of emacs"],
["--srgb", "Enable sRGB colors in the Cocoa version of emacs"],
["--with-x", "Include X11 support"],
+ ["--use-git-head", "Use repo.or.cz git mirror for HEAD builds"],
]
end
@@ -107,6 +113,20 @@ class Emacs < Formula
EOS
end
+
+ s += <<-EOS.undent
+ Because the official bazaar repository might be slow, we include an option for
+ pulling HEAD from an unofficial Git mirror:
+
+ brew install emacs --HEAD --use-git-head
+
+ There is inevitably some lag between checkins made to the official Emacs bazaar
+ repository and their appearance on the repo.or.cz mirror. See
+ http://repo.or.cz/w/emacs.git for the mirror's status. The Emacs devs do not
+ provide support for the git mirror, and they might reject bug reports filed
+ with git version information. Use it at your own risk.
+ EOS
+
return s
end
end