32 lines
886 B
Ruby
32 lines
886 B
Ruby
class Mruby < Formula
|
|
desc "Lightweight implementation of the Ruby language"
|
|
homepage "http://www.mruby.org"
|
|
url "https://github.com/mruby/mruby/archive/1.1.0.tar.gz"
|
|
sha256 "134422735eeb73e47985343e1146f40ffe50760319c6c052c5517daedc9281ac"
|
|
|
|
head "https://github.com/mruby/mruby.git"
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha256 "8d9512bb6de7d04840076ae39c548b35147dbc4fab12e945bb9b69754126bc57" => :yosemite
|
|
sha256 "6cec4dea7e5d40ffe44cbd4463ae4bbcd3fbca60aff502f87137838b00234670" => :mavericks
|
|
sha256 "81d1bf52feb9c80440318cf954d4b5235182ad5c99324572e962dd3e3729953a" => :mountain_lion
|
|
end
|
|
|
|
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
|
|
|
|
prefix.install "include"
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/mruby", "-e", "true"
|
|
end
|
|
end
|