2014-03-03 23:49:40 +00:00
|
|
|
require "formula"
|
|
|
|
|
|
|
|
class Mruby < Formula
|
|
|
|
homepage "http://www.mruby.org"
|
2014-03-06 21:15:30 +00:00
|
|
|
url "https://github.com/mruby/mruby/archive/1.0.0.tar.gz"
|
2014-03-14 21:47:05 +00:00
|
|
|
sha1 "6d4cb1b3594b1c609cc3e39d458d2ff27e4f9b4d"
|
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
|
2014-04-29 20:25:48 +00:00
|
|
|
revision 1
|
|
|
|
sha1 "0c35394977329935628dbc4c104f2bb435ca6501" => :mavericks
|
|
|
|
sha1 "1205fd6c0d6ea2caff16e276e86b9b876ae354f6" => :mountain_lion
|
|
|
|
sha1 "d7c75455a7d02d97eaf0926ed70c5520848e13b4" => :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
|