Skip to content

Instantly share code, notes, and snippets.

@kyohsuke
Created May 16, 2012 08:41
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save kyohsuke/2708767 to your computer and use it in GitHub Desktop.
Save kyohsuke/2708767 to your computer and use it in GitHub Desktop.
mruby install formula with Homebrew
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
@kyohsuke
Copy link
Author

wget -O /usr/local/Library/Formula/mruby.rb https://raw.github.com/gist/2708767/mruby.rb && brew install --HEAD mruby

@kbrock
Copy link

kbrock commented Jul 12, 2013

you can also run directly from here:

brew install --HEAD https://raw.github.com/gist/2708767/mruby.rb

@kyohsuke
Copy link
Author

👍 ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment