aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAdam Vandenberg2009-09-30 12:32:27 -0700
committerAdam Vandenberg2009-10-08 17:23:00 -0700
commit2c6f6e16913ec4f0751abc181dd92f1307e0bd34 (patch)
tree507feb89638ee88c563eb53d688d7d631d6f2285 /Library/Formula
parent0dc89600e3533f0c917b684732e4df288d69357d (diff)
downloadhomebrew-2c6f6e16913ec4f0751abc181dd92f1307e0bd34.tar.bz2
Formula for Factor (trunk from git).
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/factor.rb24
1 files changed, 24 insertions, 0 deletions
diff --git a/Library/Formula/factor.rb b/Library/Formula/factor.rb
new file mode 100644
index 000000000..148b78936
--- /dev/null
+++ b/Library/Formula/factor.rb
@@ -0,0 +1,24 @@
+require 'brewkit'
+
+# 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
+ url 'git://github.com/slavapestov/factor.git'
+ version 'trunk'
+ homepage 'http://factorcode.org/'
+
+ def install
+ system "make"
+ system "curl http://factorcode.org/images/latest/boot.unix-x86.64.image -O"
+ system "./factor -i=boot.unix-x86.64.image"
+ libexec.install "Factor.app"
+ libexec.install "factor.image"
+ end
+
+ def caveats
+ "Cocoa app installed to #{libexec}.\n\n"\
+ "Makes use of 'factor.image' in the same folder."
+ end
+end