diff options
| author | Max Howell | 2009-09-17 21:56:49 +0100 |
|---|---|---|
| committer | Max Howell | 2009-09-17 22:00:29 +0100 |
| commit | 0d1ec9641403ea2de9588ffdb22b68a23e6c2547 (patch) | |
| tree | d70bb9548e19d0b883b5efe2ed39e9efe81685f7 /Library/Formula/python.rb | |
| parent | 535086de273f6a6aa62c072890344ab02e98315e (diff) | |
| download | homebrew-0d1ec9641403ea2de9588ffdb22b68a23e6c2547.tar.bz2 | |
Python depends on a custom Readline
The idea here is that this readline is installed, but not symlinked in.
Diffstat (limited to 'Library/Formula/python.rb')
| -rw-r--r-- | Library/Formula/python.rb | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/Library/Formula/python.rb b/Library/Formula/python.rb index 0624146bc..6d92d147c 100644 --- a/Library/Formula/python.rb +++ b/Library/Formula/python.rb @@ -1,5 +1,26 @@ require 'brewkit' +class Readline <Formula + @url='ftp://ftp.gnu.org/gnu/readline/readline-5.2.tar.gz' + @homepage='http://tiswww.case.edu/php/chet/readline/rltop.html' + @md5='e39331f32ad14009b9ff49cc10c5e751' + + def patches + (1..14).collect {|n| "ftp://ftp.gnu.org/gnu/readline/readline-5.2-patches/readline52-%03d"%n} + end + + def keg_only? + true + end + + def install + system "./configure", "--prefix=#{prefix}", + "--mandir=#{man}", + "--infodir=#{info}" + system "make install" + end +end + class Python <Formula @url='http://www.python.org/ftp/python/2.6.2/Python-2.6.2.tar.bz2' @homepage='http://www.python.org/' @@ -7,9 +28,9 @@ class Python <Formula def deps # You can build Python without readline, but you really don't want to. - 'readline' + Readline.new end - + def skip_clean? path path == bin+'python' or path == bin+'python2.6' or # if you strip these, it can't load modules path == lib+'python2.6' # save a lot of time |
