Skip to content

Commit

Permalink
Updated formula: factor
Browse files Browse the repository at this point in the history
I made this formula working again with latest HEAD, and added the
wrapper in bin.

Signed-off-by: Mike McQuaid <[email protected]>
  • Loading branch information
tianyicui authored and MikeMcQuaid committed Nov 20, 2010
1 parent 805afa1 commit 31b2362
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions Library/Formula/factor.rb
Original file line number Diff line number Diff line change
@@ -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:https://github.com/slavapestov/factor.git'
homepage 'http:https://factorcode.org/'

def install
system "make"
curl "http:https://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

0 comments on commit 31b2362

Please sign in to comment.