aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Vandenberg2012-10-27 07:46:44 -0700
committerAdam Vandenberg2012-10-27 08:00:01 -0700
commitba6e0bf4e8fa644a6e674686e2b51186a5a0a547 (patch)
tree0fed7f095f5d90a72480282b3ef5bea3b3eab13e
parent5ce75a78b8fecd702636a9466a22fb9935bfadf1 (diff)
downloadhomebrew-ba6e0bf4e8fa644a6e674686e2b51186a5a0a547.tar.bz2
Mercurial: make install self-contained
Update mercurial install to once again be self-contained in libexec
-rw-r--r--Library/Formula/mercurial.rb18
1 files changed, 6 insertions, 12 deletions
diff --git a/Library/Formula/mercurial.rb b/Library/Formula/mercurial.rb
index c5b691731..3e454b5ae 100644
--- a/Library/Formula/mercurial.rb
+++ b/Library/Formula/mercurial.rb
@@ -17,18 +17,12 @@ class Mercurial < Formula
ENV.minimal_optimization
# install the completion script
- (prefix + 'etc/bash_completion.d').install 'contrib/bash_completion' => 'hg-completion.bash'
-
- # Force the binary install path to the Cellar
- inreplace "Makefile",
- "setup.py $(PURE) install",
- "setup.py $(PURE) install --install-scripts=\"#{libexec}\""
-
- # Make Mercurial into the Cellar.
- # The documentation must be built when using HEAD
- system "make", "doc" if build.head? or build.include? 'doc'
- system "make", "PREFIX=#{prefix}", "build"
- system "make", "PREFIX=#{prefix}", "install-bin"
+ (prefix/'etc/bash_completion.d').install 'contrib/bash_completion' => 'hg-completion.bash'
+
+ system "make doc" if build.head? or build.include? 'doc'
+ system "make local"
+
+ libexec.install 'hg', 'mercurial'
# Symlink the hg binary into bin
bin.install_symlink libexec/'hg'