aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorSamuel John2013-08-08 11:58:37 +0200
committerSamuel John2013-08-08 11:58:37 +0200
commit58bda4058eb8a3320b4d463951e64061b276c4da (patch)
treee698dbfc5afc67e33a36778222b88d0b50324096 /Library/Formula
parent14a315e3580a70238278e9b55cf0404f87d315ad (diff)
downloadhomebrew-58bda4058eb8a3320b4d463951e64061b276c4da.tar.bz2
sip: We don't need sip and sip3 binaries
They are both identical. Difference lies in the config and libs.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/sip.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/Library/Formula/sip.rb b/Library/Formula/sip.rb
index 9acbb03c8..8824e6ec7 100644
--- a/Library/Formula/sip.rb
+++ b/Library/Formula/sip.rb
@@ -20,9 +20,7 @@ class Sip < Formula
# The python block is run once for each python (2.x and 3.x if requested)
python do
- # To have sip (for 2.x) and sip3 for python3, we rename the sip binary:
- inreplace "configure.py", 'os.path.join(opts.sipbindir, "sip")', "os.path.join(opts.sipbindir, 'sip3')" if python3
-
+ # Note the binary `sip` is the same for python 2.x and 3.x
# Set --destdir such that the python modules will be in the HOMEBREWPREFIX/lib/pythonX.Y/site-packages
system python, "configure.py",
"--destdir=#{lib}/#{python.xy}/site-packages",
@@ -30,7 +28,6 @@ class Sip < Formula
"--incdir=#{include}",
"--sipdir=#{HOMEBREW_PREFIX}/share/sip#{python.if3then3}"
system "make"
- bin.install 'sipgen/sip' => 'sip3' if python3
system "make install"
system "make clean"
end