2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-30 19:32:27 +00:00
|
|
|
|
2010-11-20 03:38:38 +00:00
|
|
|
# This formula installs Factor TRUNK.
|
|
|
|
# One can install the latest stable release using the official DMG.
|
2009-09-30 19:32:27 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Factor < Formula
|
2011-05-27 05:02:55 +00:00
|
|
|
head 'https://github.com/slavapestov/factor.git'
|
2009-09-30 19:32:27 +00:00
|
|
|
homepage 'http://factorcode.org/'
|
|
|
|
|
|
|
|
def install
|
2011-02-22 04:22:45 +00:00
|
|
|
# The build script assumes it is in a Git repository.
|
2010-11-20 03:38:38 +00:00
|
|
|
ENV['GIT_DIR']="#{@downloader.cached_location}/.git"
|
|
|
|
system "./build-support/factor.sh update"
|
|
|
|
|
2011-02-22 04:22:45 +00:00
|
|
|
prefix.install ["Factor.app", "factor.image", "factor"]
|
2010-11-20 03:38:38 +00:00
|
|
|
(bin/'factor').write <<-EOS.undent
|
|
|
|
#!/bin/sh
|
2011-02-22 04:22:45 +00:00
|
|
|
exec #{prefix}/factor $@
|
2010-11-20 03:38:38 +00:00
|
|
|
EOS
|
2009-09-30 19:32:27 +00:00
|
|
|
end
|
2009-10-09 02:59:02 +00:00
|
|
|
|
2011-02-22 04:22:45 +00:00
|
|
|
def caveats; <<-EOS.undent
|
|
|
|
Cocoa app installed to #{prefix}/Factor.app.
|
|
|
|
Makes use of 'factor.image' in the same folder.
|
|
|
|
EOS
|
2009-09-30 19:32:27 +00:00
|
|
|
end
|
|
|
|
end
|