aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/mruby.rb
blob: 72ca2649818c36c343f9bbb36c45bd9d5daed5e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
require "formula"

class Mruby < Formula
  homepage "http://www.mruby.org"
  url "https://github.com/mruby/mruby/archive/1.0.0.tar.gz"
  sha1 "6d4cb1b3594b1c609cc3e39d458d2ff27e4f9b4d"

  head "https://github.com/mruby/mruby.git"

  bottle do
    cellar :any
    revision 1
    sha1 "0c35394977329935628dbc4c104f2bb435ca6501" => :mavericks
    sha1 "1205fd6c0d6ea2caff16e276e86b9b876ae354f6" => :mountain_lion
    sha1 "d7c75455a7d02d97eaf0926ed70c5520848e13b4" => :lion
  end

  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

    prefix.install "include"
  end

  test do
    system "#{bin}/mruby", "-e", "true"
  end
end