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>
This commit is contained in:
parent
36da14d802
commit
e251674b9e
1 changed files with 8 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue