Created
March 2, 2012 03:50
-
-
Save huffman/1955470 to your computer and use it in GitHub Desktop.
Elixir Homebrew recipe
This file contains hidden or 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
# Install this recipe with: | |
# brew install --HEAD https://raw.github.com/gist/1955470/c58bda92f07147afff64a86d0c2d8ef65adb9cd6/elixir.rb | |
require 'formula' | |
class Elixir < Formula | |
homepage 'http://elixir-lang.org/' | |
head 'https://github.com/elixir-lang/elixir.git' | |
depends_on 'erlang' | |
def install | |
system "make" | |
bin.install Dir['bin/*'] | |
prefix.install Dir['ebin/', 'exbin/'] | |
end | |
def test | |
system "elixir" | |
system "elixirc" | |
system "iex" | |
end | |
end |
@millisami Yes, this no longer works for Elixir master. I will update this soon on my fork: https://gist.github.com/1968046 I will let you know when.
@millisami the formula at https://gist.github.com/1968046 is up to date and ready to go!
@josevalim Thanks, I'll try it out.
@josevalim, yup that works. Now heading to the doc site and do play-around.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@josevalim I tried to install via the homebrew as suggested above.
After installation, when I try to fire the
iex
console, it fails to start.