From d4fcc1716e59744b580907dcb33eddc02b7b0b87 Mon Sep 17 00:00:00 2001 From: Charlie Sharpsteen Date: Sun, 10 Oct 2010 10:04:30 -0700 Subject: [PATCH] Fixed SIP version number The build.py script which prepares SIP for configuration and installation requires the presence of Mercurial's `.hg` directory in order to determine the version number from the tag list. Without this directory it sets the SIP version number to "0.1-unknown" which causes things like PyQt to fail complaining that the SIP version number is too small. This change includes a small patch to build.py that fixes the version number so that it reads 4.11.1 which is the current version. Signed-off-by: Adam Vandenberg --- Formula/sip.rb | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/Formula/sip.rb b/Formula/sip.rb index 30fd1fb0fb..8ba5cb5aae 100644 --- a/Formula/sip.rb +++ b/Formula/sip.rb @@ -6,6 +6,12 @@ class Sip :hg homepage 'http://www.riverbankcomputing.co.uk/software/sip' + unless ARGV.include? '--HEAD' + def patches + DATA + end + end + def install # Force building against System python, because we need a Framework build. # See: http://github.com/mxcl/homebrew/issues/issue/930 @@ -23,3 +29,29 @@ class Sip