From 5ce75a78b8fecd702636a9466a22fb9935bfadf1 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Sat, 27 Oct 2012 07:45:59 -0700 Subject: Mercurial: fix install warning --- Library/Formula/mercurial.rb | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/Library/Formula/mercurial.rb b/Library/Formula/mercurial.rb index b38da6eea..c5b691731 100644 --- a/Library/Formula/mercurial.rb +++ b/Library/Formula/mercurial.rb @@ -30,16 +30,11 @@ class Mercurial < Formula 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. - libexec.install Dir["#{lib}/python*/site-packages/*"] - # Symlink the hg binary into bin - bin.install_symlink libexec+'hg' + bin.install_symlink libexec/'hg' # Remove the hard-coded python invocation from hg - inreplace bin+'hg', %r[^#!.*$], '#!/usr/bin/env python' + inreplace bin/'hg', %r[^#!.*$], '#!/usr/bin/env python' # Install some contribs bin.install 'contrib/hgk' -- cgit v1.2.3