blob: 3839f20e91f7c464613f36f4945ad7bacf96e2bb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
require 'formula'
# 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
# The build script assumes it is in a Git repository.
ENV['GIT_DIR']="#{@downloader.cached_location}/.git"
system "./build-support/factor.sh update"
prefix.install ["Factor.app", "factor.image", "factor"]
(bin/'factor').write <<-EOS.undent
#!/bin/sh
exec #{prefix}/factor $@
EOS
end
def caveats; <<-EOS.undent
Cocoa app installed to #{prefix}/Factor.app.
Makes use of 'factor.image' in the same folder.
EOS
end
end
|