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
|
|
|
|
sha1 "22bbdac4d6f903b24b1d79d64b311464fdd42161" => :mavericks
|
|
|
|
sha1 "5076d06d254730a052d88b4a9b4b2d1f630a0449" => :mountain_lion
|
|
|
|
sha1 "a88b7302f383dae1f9ca67a3fcbbd603841eec86" => :lion
|
|
|
|
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
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/mruby", "-e", "true"
|
|
|
|
end
|
|
|
|
end
|