diff options
| author | Max Howell | 2009-09-21 18:42:24 +0100 |
|---|---|---|
| committer | Max Howell | 2009-09-21 18:46:28 +0100 |
| commit | b51ff87d8e1278abfbea82d0cd4b689248edb0c2 (patch) | |
| tree | a624b0d9360d5015d48500043ac0289f510ceb9f /Library/Formula/python.rb | |
| parent | f791b4475edd0d6e03103d23d066f1757afb0b72 (diff) | |
| parent | 68108e109839a901313b9933cbb1e3202aed90cf (diff) | |
| download | homebrew-b51ff87d8e1278abfbea82d0cd4b689248edb0c2.tar.bz2 | |
Merge branch 'deps'
Conflicts:
Library/Formula/imagemagick.rb
Library/Formula/taglib.rb
Library/Homebrew/brew.h.rb
Library/Homebrew/formula.rb
bin/brew
Diffstat (limited to 'Library/Formula/python.rb')
| -rw-r--r-- | Library/Formula/python.rb | 29 |
1 files changed, 24 insertions, 5 deletions
diff --git a/Library/Formula/python.rb b/Library/Formula/python.rb index d1d058644..c1d15a887 100644 --- a/Library/Formula/python.rb +++ b/Library/Formula/python.rb @@ -1,15 +1,34 @@ 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/' @md5='245db9f1e0f09ab7e0faaa0cf7301011' - def deps - # You can build Python without readline, but you really don't want to. - LibraryDep.new 'readline' - end - + # You can build Python without readline, but you really don't want to. + depends_on Readline.new + 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 |
