265de2c53d
Updated the test to exercise actual LFE code, since io:format is part of the Erlang stdlib. Closes Homebrew/homebrew#42592. Signed-off-by: Alex Dunn <dunn.alex@gmail.com>
27 lines
874 B
Ruby
27 lines
874 B
Ruby
class Lfe < Formula
|
|
desc "A Concurrent Lisp for the Erlang VM"
|
|
homepage "http://lfe.io/"
|
|
url "https://github.com/rvirding/lfe/archive/v0.9.2.tar.gz"
|
|
sha256 "9ff9661d03432a5f111266e56dcc24f24ceb633541f560333c3ff1acafc20794"
|
|
|
|
head "https://github.com/rvirding/lfe.git", :branch => "develop"
|
|
|
|
bottle do
|
|
sha256 "5e0da3e1633d5e289c9a92a684318a286dd97a417b4592bc7df34f470a1a0226" => :yosemite
|
|
sha256 "b6f986960df221080a22fba8f7f54d19a1122dbe52a6824c076ad896638fb188" => :mavericks
|
|
sha256 "26b4045d18d3a12945ac308b81e7a2755bd0c1a8f17e37056ec4f77daf042a4f" => :mountain_lion
|
|
end
|
|
|
|
depends_on "erlang"
|
|
depends_on "rebar"
|
|
|
|
def install
|
|
system "rebar", "compile"
|
|
bin.install Dir["bin/*"]
|
|
prefix.install "ebin"
|
|
end
|
|
|
|
test do
|
|
system bin/"lfe", "-eval", '"(io:format \"~p\" (list (* 2 (lists:foldl #\'+/2 0 (lists:seq 1 6)))))"'
|
|
end
|
|
end
|