diff options
| author | Max Howell | 2009-08-01 19:44:16 +0100 |
|---|---|---|
| committer | Max Howell | 2009-08-02 01:25:01 +0100 |
| commit | 82e1688028a64471bd16870354990e5618c560e5 (patch) | |
| tree | d3a3b916556912e32d14d91cd61b31f0cf7a4286 | |
| parent | d209998e390f7a2a2f86a7f4cf9b91c58b31eb01 (diff) | |
| download | homebrew-82e1688028a64471bd16870354990e5618c560e5.tar.bz2 | |
Added Readline formula; updated Python formula.
| -rw-r--r-- | Library/Formula/python.rb | 13 | ||||
| -rw-r--r-- | Library/Formula/readline.rb | 18 |
2 files changed, 24 insertions, 7 deletions
diff --git a/Library/Formula/python.rb b/Library/Formula/python.rb index 2f70d810c..ea3da4a25 100644 --- a/Library/Formula/python.rb +++ b/Library/Formula/python.rb @@ -5,14 +5,13 @@ class Python <Formula @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 install - # TODO: - # Bring virtualenv along for the ride. - # Rename the formula to python26? - # -- one feature I plan for homebrew is one can do, eg. - # brew install -v2.6 - # and also, versioning packages in the name sucks :) --mxcl - + # Todo: Link against custom readline system "./configure --prefix='#{prefix}'" system "make" system "make install" diff --git a/Library/Formula/readline.rb b/Library/Formula/readline.rb new file mode 100644 index 000000000..b9e157064 --- /dev/null +++ b/Library/Formula/readline.rb @@ -0,0 +1,18 @@ +require 'brewkit' + +class Readline <Formula + @url='ftp://ftp.cwru.edu/pub/bash/readline-6.0.tar.gz' + @homepage='http://tiswww.case.edu/php/chet/readline/rltop.html' + + # Brew doesn't do anything with these patches, yet. + @patches=['ftp://ftp.cwru.edu/pub/bash/readline-6.0-patches/readline60-001', + 'ftp://ftp.cwru.edu/pub/bash/readline-6.0-patches/readline60-002', + 'ftp://ftp.cwru.edu/pub/bash/readline-6.0-patches/readline60-003', + 'ftp://ftp.cwru.edu/pub/bash/readline-6.0-patches/readline60-004'] + + def install + system "./configure --prefix='#{prefix}'" + system "make" + system "make install" + end +end |
