require 'formula' class Guile :build depends_on 'libffi' depends_on 'libunistring' depends_on 'bdw-gc' depends_on 'gmp' # GNU Readline is required; libedit won't work. depends_on 'readline' def install system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}", "--with-libreadline-prefix=#{Formula.factory('readline').prefix}" system "make install" # A really messed up workaround required on OS X --mkhl lib.cd { Dir["*.dylib"].each {|p| ln_sf p, File.basename(p, ".dylib")+".so" }} end end