Created
May 16, 2012 08:41
-
-
Save kyohsuke/2708767 to your computer and use it in GitHub Desktop.
mruby install formula with Homebrew
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'formula' | |
class Mruby < Formula | |
homepage 'http://www.mruby.org/' | |
head 'https://github.com/mruby/mruby.git' | |
def install | |
ENV.j1 | |
system "make" | |
system "make test" | |
bin.install "bin/mrbc", "bin/mruby", "bin/mirb" | |
include.install "include/mrbconf.h" | |
include.install "include/mruby" | |
include.install "include/mruby.h" | |
end | |
end |
you can also run directly from here:
brew install --HEAD https://raw.github.com/gist/2708767/mruby.rb
👍 ❤️
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
wget -O /usr/local/Library/Formula/mruby.rb https://raw.github.com/gist/2708767/mruby.rb && brew install --HEAD mruby