From ba6e0bf4e8fa644a6e674686e2b51186a5a0a547 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Sat, 27 Oct 2012 07:46:44 -0700 Subject: Mercurial: make install self-contained Update mercurial install to once again be self-contained in libexec --- Library/Formula/mercurial.rb | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) (limited to 'Library') 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' -- cgit v1.2.3