Bootstrap SBCL 1.0.44 from the binaries on their download site.
This change updates the SBCL installation to the latest (stable) source release, and adds a --HEAD build option. Closes Homebrew/homebrew#3935. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
fdd98170e6
commit
3342c75999
1 changed files with 24 additions and 8 deletions
|
@ -1,21 +1,37 @@
|
|||
require 'formula'
|
||||
require 'hardware'
|
||||
|
||||
class SbclBootstrapBinaries <Formula
|
||||
url 'http://downloads.sourceforge.net/project/sbcl/sbcl/1.0.29/sbcl-1.0.29-x86-darwin-binary-r2.tar.bz2'
|
||||
md5 '6e6b027a5fd05ef0c8faee30d89ffe54'
|
||||
version "1.0.29"
|
||||
end
|
||||
|
||||
|
||||
class Sbcl <Formula
|
||||
if snow_leopard_64?
|
||||
url 'http://downloads.sourceforge.net/project/sbcl/sbcl/1.0.29/sbcl-1.0.29-x86_64-darwin-binary-r2.tar.bz2'
|
||||
md5 '47c99c60ec44e57070807c0890ba1c90'
|
||||
else
|
||||
url 'http://downloads.sourceforge.net/project/sbcl/sbcl/1.0.29/sbcl-1.0.29-x86-darwin-binary-r2.tar.bz2'
|
||||
md5 '6e6b027a5fd05ef0c8faee30d89ffe54'
|
||||
end
|
||||
version '1.0.29'
|
||||
homepage 'http://www.sbcl.org/'
|
||||
head 'git://sbcl.boinkor.net/sbcl.git'
|
||||
|
||||
url 'http://downloads.sourceforge.net/project/sbcl/sbcl/1.0.44/sbcl-1.0.44-source.tar.bz2'
|
||||
md5 'f34a3995db6e12439996096fd437f878'
|
||||
version '1.0.44'
|
||||
|
||||
skip_clean 'bin'
|
||||
skip_clean 'lib'
|
||||
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue