From 444ea944e939e6cf4f603ca578bb7177df1ccb0d Mon Sep 17 00:00:00 2001 From: Colin Dean Date: Mon, 3 Mar 2014 18:49:40 -0500 Subject: mruby 1.0.0 Signed-off-by: Mike McQuaid --- Library/Formula/mruby.rb | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Library/Formula/mruby.rb (limited to 'Library/Formula') diff --git a/Library/Formula/mruby.rb b/Library/Formula/mruby.rb new file mode 100644 index 000000000..2c3f4e253 --- /dev/null +++ b/Library/Formula/mruby.rb @@ -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 -- cgit v1.2.3