homebrew-core/Formula/factor.rb

27 lines
702 B
Ruby
Raw Normal View History

require 'formula'
2009-09-30 19:32:27 +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
class Factor <Formula
head 'git://github.com/slavapestov/factor.git'
2009-09-30 19:32:27 +00:00
homepage 'http://factorcode.org/'
def install
# 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
2009-09-30 19:32:27 +00:00
end
2009-09-30 19:32:27 +00:00
def caveats
"Cocoa app installed to #{libexec}/Factor.app.\n\n"\
2009-09-30 19:32:27 +00:00
"Makes use of 'factor.image' in the same folder."
end
end