require 'formula' class Readline [ "ftp://ftp.gnu.org/gnu/readline/readline-6.1-patches/readline61-001", "ftp://ftp.gnu.org/gnu/readline/readline-6.1-patches/readline61-002", ]} end def install # Always build universal, per http://github.com/mxcl/homebrew/issues/issue/899 ENV.universal_binary system "./configure", "--prefix=#{prefix}", "--mandir=#{man}", "--infodir=#{info}", "--enable-multibyte" system "make install" end end