aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorTianyi Cui2010-11-20 11:38:38 +0800
committerMike McQuaid2010-11-20 12:15:07 +0000
commit31b2362cb5190d35a7ac65f9fb9b46bdcbac67f7 (patch)
treed29536f06bc3379a355aba23da66ead4d2977ae2 /Library/Formula
parent805afa14b8d1b03c8f56cd67628ffc61b9f25d2c (diff)
downloadhomebrew-31b2362cb5190d35a7ac65f9fb9b46bdcbac67f7.tar.bz2
Updated formula: factor
I made this formula working again with latest HEAD, and added the wrapper in bin. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/factor.rb21
1 files changed, 12 insertions, 9 deletions
diff --git a/Library/Formula/factor.rb b/Library/Formula/factor.rb
index 8de1664a2..c26a73597 100644
--- a/Library/Formula/factor.rb
+++ b/Library/Formula/factor.rb
@@ -1,23 +1,26 @@
require 'formula'
-# 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.
+# This formula installs Factor TRUNK.
+# One can install the latest stable release using the official DMG.
class Factor <Formula
head 'git://github.com/slavapestov/factor.git'
homepage 'http://factorcode.org/'
def install
- system "make"
- 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"
+ # The build script assume it's in a Git repository.
+ ENV['GIT_DIR']="#{@downloader.cached_location}/.git"
+ system "./build-support/factor.sh update"
+
+ libexec.install ["Factor.app", "factor.image", "factor"]
+ (bin/'factor').write <<-EOS.undent
+ #!/bin/sh
+ exec #{libexec}/factor $@
+ EOS
end
def caveats
- "Cocoa app installed to #{libexec}.\n\n"\
+ "Cocoa app installed to #{libexec}/Factor.app.\n\n"\
"Makes use of 'factor.image' in the same folder."
end
end