2015-02-10 09:48:03 +00:00
|
|
|
class Lfe < Formula
|
2015-07-31 03:29:18 +00:00
|
|
|
desc "A Concurrent Lisp for the Erlang VM"
|
2015-02-10 09:48:03 +00:00
|
|
|
homepage "http://lfe.io/"
|
2015-06-27 05:29:40 +00:00
|
|
|
url "https://github.com/rvirding/lfe/archive/v0.9.2.tar.gz"
|
|
|
|
sha256 "9ff9661d03432a5f111266e56dcc24f24ceb633541f560333c3ff1acafc20794"
|
2015-02-10 09:48:03 +00:00
|
|
|
|
|
|
|
head "https://github.com/rvirding/lfe.git", :branch => "develop"
|
|
|
|
|
2015-02-11 10:57:56 +00:00
|
|
|
bottle do
|
2015-06-27 05:37:02 +00:00
|
|
|
sha256 "5e0da3e1633d5e289c9a92a684318a286dd97a417b4592bc7df34f470a1a0226" => :yosemite
|
|
|
|
sha256 "b6f986960df221080a22fba8f7f54d19a1122dbe52a6824c076ad896638fb188" => :mavericks
|
|
|
|
sha256 "26b4045d18d3a12945ac308b81e7a2755bd0c1a8f17e37056ec4f77daf042a4f" => :mountain_lion
|
2015-02-11 10:57:56 +00:00
|
|
|
end
|
|
|
|
|
2015-02-10 09:48:03 +00:00
|
|
|
depends_on "erlang"
|
|
|
|
depends_on "rebar"
|
|
|
|
|
|
|
|
def install
|
|
|
|
system "rebar", "compile"
|
|
|
|
bin.install Dir["bin/*"]
|
|
|
|
prefix.install "ebin"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
2015-07-31 03:29:18 +00:00
|
|
|
system bin/"lfe", "-eval", '"(io:format \"~p\" (list (* 2 (lists:foldl #\'+/2 0 (lists:seq 1 6)))))"'
|
2015-02-10 09:48:03 +00:00
|
|
|
end
|
|
|
|
end
|