diff options
| author | Adam Vandenberg | 2011-11-15 09:06:08 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2011-11-15 09:06:08 -0800 |
| commit | 7d07a8db1869bf0fdb205bb36a6f40c679d1ad71 (patch) | |
| tree | 8a2b37866fb41bf492422ff2442cc12b3a74dc70 /Library | |
| parent | 6594f49d44617c21b12f2eeab92889e03501b23f (diff) | |
| download | homebrew-7d07a8db1869bf0fdb205bb36a6f40c679d1ad71.tar.bz2 | |
Mercurial: clean up
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/mercurial.rb | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/Library/Formula/mercurial.rb b/Library/Formula/mercurial.rb index a418d5adf..3a635ec55 100644 --- a/Library/Formula/mercurial.rb +++ b/Library/Formula/mercurial.rb @@ -19,6 +19,7 @@ class Mercurial < Formula # Skip making the docs; depends on 'docutils' module. system "make", "PREFIX=#{prefix}", "build" system "make", "PREFIX=#{prefix}", "install-bin" + # Now we have lib/python2.x/site-packages/ with Mercurial # libs in them. We want to move these out of site-packages into # a self-contained folder. Let's choose libexec. @@ -27,20 +28,12 @@ class Mercurial < Formula libexec.install Dir["#{lib}/python*/site-packages/*"] - # Move "hg" executable to libexec and symlink back to bin - # libexec.install bin+'hg' + # Symlink the hg binary into bin ln_s libexec+'hg', bin+'hg' - # Move the hg startup script into libexec too, and link it from bin - # bin.mkpath - # libexec.install HOMEBREW_PREFIX+'share/python/hg' - # ln_s libexec+'hg', bin+'hg' - # Remove the hard-coded python invocation from hg inreplace bin+'hg', %r[#!/.*/python], '#!/usr/bin/env python' - # We now have a self-contained Mercurial install. - # Install some contribs bin.install 'contrib/hgk' |
