diff options
| author | Adam Vandenberg | 2009-09-21 11:40:27 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2009-09-21 13:06:20 -0700 |
| commit | 86c2a45ded97d6b9cea30676f582458bb83b1e5c (patch) | |
| tree | b1942c6d37ff82d7f8d72b4f37dc68c7a4c331b1 /Library/Formula/python.rb | |
| parent | 28f045d5b3fb5f3c754188afd60670ad37bd84db (diff) | |
| download | homebrew-86c2a45ded97d6b9cea30676f582458bb83b1e5c.tar.bz2 | |
Build Python against Readline 6
Diffstat (limited to 'Library/Formula/python.rb')
| -rw-r--r-- | Library/Formula/python.rb | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/Library/Formula/python.rb b/Library/Formula/python.rb index c1d15a887..bcce621c4 100644 --- a/Library/Formula/python.rb +++ b/Library/Formula/python.rb @@ -1,33 +1,12 @@ 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' # You can build Python without readline, but you really don't want to. - depends_on Readline.new + depends_on 'readline' => :recommended def skip_clean? path path == bin+'python' or path == bin+'python2.6' or # if you strip these, it can't load modules |
