diff options
| author | Adam Vandenberg | 2012-02-12 14:46:07 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2012-02-12 20:09:00 -0800 |
| commit | 89ad7abcda3492d773c9bc7ea8d912589330a4a1 (patch) | |
| tree | 147aebd32a3f374b6f6d7424c0d29b314a201d14 /Library | |
| parent | 8ffeef1959b3c77f650b813e658eed149b1d65e4 (diff) | |
| download | homebrew-89ad7abcda3492d773c9bc7ea8d912589330a4a1.tar.bz2 | |
mercurial: use install_symlink
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/mercurial.rb | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/Library/Formula/mercurial.rb b/Library/Formula/mercurial.rb index f61753d6d..9ff0d2514 100644 --- a/Library/Formula/mercurial.rb +++ b/Library/Formula/mercurial.rb @@ -1,8 +1,8 @@ require 'formula' class Mercurial < Formula - url 'http://mercurial.selenic.com/release/mercurial-2.1.tar.gz' homepage 'http://mercurial.selenic.com/' + url 'http://mercurial.selenic.com/release/mercurial-2.1.tar.gz' sha1 'f649a0b33e0cafb3e5867a2e970f41eb887d3fab' head 'http://selenic.com/repo/hg', :using => :hg @@ -35,13 +35,10 @@ class Mercurial < Formula # 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. - bin.mkpath - libexec.mkpath - libexec.install Dir["#{lib}/python*/site-packages/*"] # Symlink the hg binary into bin - ln_s libexec+'hg', bin+'hg' + bin.install_symlink libexec+'hg' # Remove the hard-coded python invocation from hg inreplace bin+'hg', %r[#!/.*/python/.*], '#!/usr/bin/env python' @@ -51,7 +48,7 @@ class Mercurial < Formula # Install man pages man1.install 'doc/hg.1' - man5.install ['doc/hgignore.5', 'doc/hgrc.5'] + man5.install 'doc/hgignore.5', 'doc/hgrc.5' end def caveats |
