require 'formula' require 'hardware' class SbclBootstrapBinaries ["patch-base-target-features.diff", "patch-make-doc.diff", "patch-posix-tests.diff", "patch-use-mach-exception-handler.diff"].map { |file_name| "#{base}/#{file_name}" } } end def install build_directory = Dir.pwd SbclBootstrapBinaries.new.brew { # We only need the binaries for bootstrapping, so don't install # anything: command = Dir.pwd + "/src/runtime/sbcl" core = Dir.pwd + "/output/sbcl.core" xc_cmdline = "#{command} --core #{core} --disable-debugger --no-userinit --no-sysinit" Dir.chdir(build_directory) system "./make.sh --prefix='#{prefix}' --xc-host='#{xc_cmdline}'" } ENV['INSTALL_ROOT'] = prefix system "sh install.sh" end end