mercurial: use install_symlink
This commit is contained in:
parent
32215410da
commit
1425dc8897
1 changed files with 3 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue