2014-03-03 23:49:40 +00:00
|
|
|
require "formula"
|
|
|
|
|
|
|
|
class Mruby < Formula
|
|
|
|
homepage "http://www.mruby.org"
|
2015-01-20 13:28:32 +00:00
|
|
|
url "https://github.com/mruby/mruby/archive/1.1.0.tar.gz"
|
|
|
|
sha1 "828eadbc0640d3f670a5eb24bf8d99f6bb90b5fc"
|
2014-03-03 23:49:40 +00:00
|
|
|
|
|
|
|
head "https://github.com/mruby/mruby.git"
|
|
|
|
|
2014-03-04 12:32:30 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2015-01-20 13:42:19 +00:00
|
|
|
sha1 "fc1d5229e1194203799bd2d59861d3a6919e04c9" => :yosemite
|
|
|
|
sha1 "3e5b89430eca272eff626c5bd45eb6845ba33bcc" => :mavericks
|
|
|
|
sha1 "4b3da67cad42fd5beba2ef64af5c58e3adc9ae7c" => :mountain_lion
|
2014-03-04 12:32:30 +00:00
|
|
|
end
|
|
|
|
|
2014-03-03 23:49:40 +00:00
|
|
|
depends_on "bison" => :build
|
|
|
|
|
|
|
|
def install
|
|
|
|
system "make"
|
|
|
|
|
|
|
|
cd "build/host/" do
|
|
|
|
lib.install Dir["lib/*.a"]
|
|
|
|
prefix.install %w{bin mrbgems mrblib tools}
|
|
|
|
end
|
2014-04-29 18:19:18 +00:00
|
|
|
|
|
|
|
prefix.install "include"
|
2014-03-03 23:49:40 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/mruby", "-e", "true"
|
|
|
|
end
|
|
|
|
end
|