diff options
| -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 |
