2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-30 19:32:27 +00:00
|
|
|
|
|
|
|
# This formula installs Factor TRUNK, as there is no
|
|
|
|
# good stable release. It also takes up to and including
|
|
|
|
# "a very long time" to bootstrap the image.
|
|
|
|
|
|
|
|
class Factor <Formula
|
2009-10-09 02:59:02 +00:00
|
|
|
head 'git://github.com/slavapestov/factor.git'
|
2009-09-30 19:32:27 +00:00
|
|
|
homepage 'http://factorcode.org/'
|
|
|
|
|
|
|
|
def install
|
|
|
|
system "make"
|
2009-11-26 06:47:06 +00:00
|
|
|
curl "http://factorcode.org/images/latest/boot.unix-x86.64.image", "-O"
|
2009-09-30 19:32:27 +00:00
|
|
|
system "./factor -i=boot.unix-x86.64.image"
|
|
|
|
libexec.install "Factor.app"
|
|
|
|
libexec.install "factor.image"
|
|
|
|
end
|
2009-10-09 02:59:02 +00:00
|
|
|
|
2009-09-30 19:32:27 +00:00
|
|
|
def caveats
|
|
|
|
"Cocoa app installed to #{libexec}.\n\n"\
|
|
|
|
"Makes use of 'factor.image' in the same folder."
|
|
|
|
end
|
|
|
|
end
|