diff options
| author | Colin Dean | 2014-03-03 18:49:40 -0500 |
|---|---|---|
| committer | Mike McQuaid | 2014-03-04 14:32:29 +0000 |
| commit | 444ea944e939e6cf4f603ca578bb7177df1ccb0d (patch) | |
| tree | 11f783dc36470c38a92a4ba8274e8798357e27e5 /Library | |
| parent | d17b64a680184186a3423c60481c4ae213749544 (diff) | |
| download | homebrew-444ea944e939e6cf4f603ca578bb7177df1ccb0d.tar.bz2 | |
mruby 1.0.0
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/mruby.rb | 24 |
1 files changed, 24 insertions, 0 deletions
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 |
