diff options
| author | Adam Vandenberg | 2009-10-01 21:00:15 -0700 |
|---|---|---|
| committer | Max Howell | 2009-10-02 15:33:29 +0100 |
| commit | e77be445096e036eedc9d557088cc80e81b0cc53 (patch) | |
| tree | 52930855f86a0552a6706723842ba86ddf741df1 /Library/Formula | |
| parent | 14b90282e74cc1b0a5b692c023bfa0b9b6fb88cf (diff) | |
| download | homebrew-e77be445096e036eedc9d557088cc80e81b0cc53.tar.bz2 | |
Update Python to 2.6.3.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/python.rb | 27 |
1 files changed, 23 insertions, 4 deletions
diff --git a/Library/Formula/python.rb b/Library/Formula/python.rb index 278596aa6..da0581975 100644 --- a/Library/Formula/python.rb +++ b/Library/Formula/python.rb @@ -1,12 +1,19 @@ require 'brewkit' class Python <Formula - @url='http://www.python.org/ftp/python/2.6.2/Python-2.6.2.tar.bz2' - @homepage='http://www.python.org/' - @md5='245db9f1e0f09ab7e0faaa0cf7301011' + url 'http://python.org/ftp/python/2.6.3/Python-2.6.3.tar.bz2' + homepage 'http://www.python.org/' + md5 '8755fc03075b1701ca3f13932e6ade9f' # You can build Python without readline, but you really don't want to. depends_on 'readline' => :recommended + + def options + [ + ["--framework", "Do a 'Framework' build instead of a UNIX-style build."], + ["--intel", "Build for both 32 & 64 bit Intel."] + ] + end def skip_clean? path path == bin+'python' or path == bin+'python2.6' or # if you strip these, it can't load modules @@ -14,7 +21,19 @@ class Python <Formula end def install - system "./configure --prefix='#{prefix}' --with-framework-name=/Developer/SDKs/MacOSX#{MACOS_VERSION}.sdk" + args = ["--prefix=#{prefix}"] + + if ARGV.include? '--framework' + args << "--with-framework-name=/Developer/SDKs/MacOSX#{MACOS_VERSION}.sdk" + end + + if ARGV.include? '--intel' + args << "--with-universal-archs=intel" + end + + system "./configure", *args + + system "make" system "make install" |
