aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorCharlie Sharpsteen2010-09-20 17:46:08 -0700
committerAdam Vandenberg2010-09-22 07:17:04 -0700
commit194b0fa6b1ed59410575e13bb91d1ae6827caa4b (patch)
treecd981d0f5ee7932cccafd3fb305499100a2c320d /Library/Formula
parentaa6a83996b01b07fd8b8c5cc90e22e9bf93ef5ec (diff)
downloadhomebrew-194b0fa6b1ed59410575e13bb91d1ae6827caa4b.tar.bz2
Altered SIP formula to install from Mercurial repos
Riverbank has a nasty habit of pulling old tarballs whenever new releases are made. New releases are made fairly often--- this leads to a state where the PyQT and SIP formulae are chronically broken due to outdated tarball links. This changeset patches the SIP formula to install from the Mercurial repository for SIP located at: http://www.riverbankcomputing.co.uk/hg/sip By default this formula installs an archived tarball from a tag corresponding to the released version of SIP. Tarballs are fetched using HTTP. If the user has Mercurial installed, bleeding-edge versions can be installed by specifying the --HEAD switch. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/sip.rb17
1 files changed, 8 insertions, 9 deletions
diff --git a/Library/Formula/sip.rb b/Library/Formula/sip.rb
index 7e3523a58..30fd1fb0f 100644
--- a/Library/Formula/sip.rb
+++ b/Library/Formula/sip.rb
@@ -1,16 +1,15 @@
require 'formula'
-# Note: this project doesn't save old releases, so it breaks often as
-# downloads disappear.
-
class Sip <Formula
- url 'http://www.riverbankcomputing.co.uk/static/Downloads/sip4/sip-4.11.1.tar.gz'
+ url 'http://www.riverbankcomputing.co.uk/hg/sip/archive/4.11.1.tar.gz'
+ md5 'dbafd7101a4e7caee6f529912a1356e5'
+ head 'http://www.riverbankcomputing.co.uk/hg/sip', :using => :hg
homepage 'http://www.riverbankcomputing.co.uk/software/sip'
- md5 'd32ae4dfea42ebf37419a0ec28b597de'
def install
# Force building against System python, because we need a Framework build.
# See: http://github.com/mxcl/homebrew/issues/issue/930
+ system "/usr/bin/python", "build.py", "prepare"
system "/usr/bin/python", "configure.py",
"--destdir=#{lib}/python",
"--bindir=#{bin}",
@@ -18,9 +17,9 @@ class Sip <Formula
system "make install"
end
- def caveats; <<-EOS
-This formula won't function until you amend your PYTHONPATH like so:
- export PYTHONPATH=#{HOMEBREW_PREFIX}/lib/python:$PYTHONPATH
-EOS
+ def caveats; <<-EOS.undent
+ This formula won't function until you amend your PYTHONPATH like so:
+ export PYTHONPATH=#{HOMEBREW_PREFIX}/lib/python:$PYTHONPATH
+ EOS
end
end