mruby 1.0.0
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
36bb15b7f0
commit
2d2f7c52a2
1 changed files with 24 additions and 0 deletions
24
Formula/mruby.rb
Normal file
24
Formula/mruby.rb
Normal file
|
@ -0,0 +1,24 @@
|
|||
require "formula"
|
||||
|
||||
class Mruby < Formula
|
||||
homepage "http://www.mruby.org"
|
||||
url "https://github.com/mruby/mruby/archive/1.0.0.zip"
|
||||
sha1 "48861f5e01019fd82da4543c01d163fc03ec4643"
|
||||
|
||||
head "https://github.com/mruby/mruby.git"
|
||||
|
||||
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
|
Loading…
Reference in a new issue