mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-11-26 19:09:48 -05:00
No longer strips the main Python executable, as that was breaking the ability of dlopen() and thus import .so based modules. This change depends on changes to keg & formula that allow files to not be cleaned. Also, replaced a duplicate libpython2.6.a with a link (saves 6MB.)
27 lines
786 B
Ruby
27 lines
786 B
Ruby
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'
|
|
|
|
def deps
|
|
# You can build Python without readline, but you really don't want to.
|
|
LibraryDep.new 'readline'
|
|
end
|
|
|
|
def skip_clean? path
|
|
return path == bin+'python' or path == bin+'python2.6'
|
|
end
|
|
|
|
def install
|
|
system "./configure --prefix='#{prefix}' --with-framework-name=/Developer/SDKs/MacOSX10.5.sdk"
|
|
system "make"
|
|
system "make install"
|
|
|
|
# lib/python2.6/config contains a copy of libpython.a; make this a link instead
|
|
(lib+'python2.6/config/libpython2.6.a').unlink
|
|
(lib+'python2.6/config/libpython2.6.a').make_link lib+'libpython2.6.a'
|
|
end
|
|
end
|