diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/mercurial.rb | 18 |
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' |
