Skip to content

Instantly share code, notes, and snippets.

@devinus
Forked from josevalim/elixir.rb
Created September 13, 2012 15:45

Revisions

  1. Devin Torres revised this gist Nov 28, 2012. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions elixir.rb
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    # Install this recipe with:
    # brew install --HEAD https://raw.github.com/gist/3715216/4f1bbf7d73d372bf9a2eeb5364142ee03bc51f55/elixir.rb
    # brew install --HEAD https://raw.github.com/gist/3715216/fcc8b4142a0010d04dc2bba6c2d7d641c137f615/elixir.rb

    require 'formula'

    @@ -48,4 +48,4 @@ def install
    def test
    system "#{bin}/elixir -v"
    end
    end
    end
  2. Devin Torres revised this gist Nov 28, 2012. 1 changed file with 6 additions and 9 deletions.
    15 changes: 6 additions & 9 deletions elixir.rb
    Original file line number Diff line number Diff line change
    @@ -26,29 +26,26 @@ def fatal?

    class Elixir < Formula
    homepage 'http://elixir-lang.org/'
    url 'https://github.com/elixir-lang/elixir/tarball/v0.6.0'
    sha1 '618e66e037c2d930428ca75a11b4e9648caffb9a'
    url 'https://github.com/elixir-lang/elixir/tarball/v0.7.1'
    sha1 '6344b7a49196581bf45e0cb2f51a4fe3e6e07aa5'

    head 'https://github.com/elixir-lang/elixir.git'

    env :userpaths

    depends_on ErlangInstalled.new

    env :userpaths

    def install
    system "make"
    bin.install Dir['bin/*'] - Dir['bin/*.bat']

    Dir['lib/*/ebin'].each do |path|
    app = File.basename(File.dirname(path))
    src = "#{path}/."
    dest = "#{lib}/#{app}/ebin"
    mkdir_p dest
    cp_r src, dest
    (lib/"#{app}").install path
    end
    end

    def test
    system "#{bin}/elixir -v"
    end
    end
    end
  3. Devin Torres revised this gist Oct 3, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion elixir.rb
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    # Install this recipe with:
    # brew install --HEAD https://raw.github.com/gist/3715216/94a0f53a704a1c522ec689b972bdc2eff9a0d686/elixir.rb
    # brew install --HEAD https://raw.github.com/gist/3715216/4f1bbf7d73d372bf9a2eeb5364142ee03bc51f55/elixir.rb

    require 'formula'

  4. Devin Torres revised this gist Oct 3, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion elixir.rb
    Original file line number Diff line number Diff line change
    @@ -31,7 +31,7 @@ class Elixir < Formula

    head 'https://github.com/elixir-lang/elixir.git'

    env :std
    env :userpaths

    depends_on ErlangInstalled.new

  5. Devin Torres revised this gist Sep 27, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion elixir.rb
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    # Install this recipe with:
    # brew install --HEAD https://raw.github.com/gist/3715216/0db354bc74a727cb395a3c26d7bbf119413a7312/elixir.rb
    # brew install --HEAD https://raw.github.com/gist/3715216/94a0f53a704a1c522ec689b972bdc2eff9a0d686/elixir.rb

    require 'formula'

  6. Devin Torres revised this gist Sep 27, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion elixir.rb
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    # Install this recipe with:
    # brew install --HEAD https://raw.github.com/gist/3715216/da937661db644879c41a8cb2b4b24a7d1e9f3b67/elixir.rb
    # brew install --HEAD https://raw.github.com/gist/3715216/0db354bc74a727cb395a3c26d7bbf119413a7312/elixir.rb

    require 'formula'

  7. Devin Torres revised this gist Sep 27, 2012. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions elixir.rb
    Original file line number Diff line number Diff line change
    @@ -31,6 +31,8 @@ class Elixir < Formula

    head 'https://github.com/elixir-lang/elixir.git'

    env :std

    depends_on ErlangInstalled.new

    def install
  8. Devin Torres revised this gist Sep 13, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion elixir.rb
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    # Install this recipe with:
    # brew install https://raw.github.com/gist/1968046/0302279edc972e9d147110bd69284d0e2becda41/elixir.rb
    # brew install --HEAD https://raw.github.com/gist/3715216/da937661db644879c41a8cb2b4b24a7d1e9f3b67/elixir.rb

    require 'formula'

  9. Devin Torres revised this gist Sep 13, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion elixir.rb
    Original file line number Diff line number Diff line change
    @@ -29,7 +29,7 @@ class Elixir < Formula
    url 'https://github.com/elixir-lang/elixir/tarball/v0.6.0'
    sha1 '618e66e037c2d930428ca75a11b4e9648caffb9a'

    head 'https://github.com/elixir-lang/elixir.git', :branch => "stable"
    head 'https://github.com/elixir-lang/elixir.git'

    depends_on ErlangInstalled.new

  10. José Valim revised this gist Aug 1, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion elixir.rb
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    # Install this recipe with:
    # brew install --HEAD https://raw.github.com/gist/1968046/0302279edc972e9d147110bd69284d0e2becda41/elixir.rb
    # brew install https://raw.github.com/gist/1968046/0302279edc972e9d147110bd69284d0e2becda41/elixir.rb

    require 'formula'

  11. José Valim revised this gist Aug 1, 2012. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion elixir.rb
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,6 @@
    # Install this recipe with:
    # brew install --HEAD https://raw.github.com/gist/1968046/0302279edc972e9d147110bd69284d0e2becda41/elixir.rb

    require 'formula'

    class ErlangInstalled < Requirement
    @@ -46,4 +49,4 @@ def install
    def test
    system "#{bin}/elixir -v"
    end
    end
    end
  12. José Valim revised this gist Aug 1, 2012. 1 changed file with 35 additions and 7 deletions.
    42 changes: 35 additions & 7 deletions elixir.rb
    Original file line number Diff line number Diff line change
    @@ -1,21 +1,49 @@
    require 'formula'

    class ErlangInstalled < Requirement
    def message; <<-EOS.undent
    Erlang is required to install.
    You can install this with:
    brew install erlang
    Or you can use an official installer from:
    http://www.erlang.org/
    EOS
    end

    def satisfied?
    which 'erl'
    end

    def fatal?
    true
    end
    end

    class Elixir < Formula
    homepage 'http://elixir-lang.org/'
    head 'https://github.com/elixir-lang/elixir.git'
    url 'https://github.com/elixir-lang/elixir/tarball/v0.6.0'
    sha1 '618e66e037c2d930428ca75a11b4e9648caffb9a'

    head 'https://github.com/elixir-lang/elixir.git', :branch => "stable"

    depends_on 'erlang'
    depends_on ErlangInstalled.new

    def install
    system "make"
    bin.install Dir['bin/*'] - Dir['bin/*.bat']

    bin.install Dir['bin/*']
    prefix.install Dir['ebin/', 'exbin/']
    Dir['lib/*/ebin'].each do |path|
    app = File.basename(File.dirname(path))
    src = "#{path}/."
    dest = "#{lib}/#{app}/ebin"
    mkdir_p dest
    cp_r src, dest
    end
    end

    def test
    system "elixir"
    system "elixirc"
    system "iex"
    system "#{bin}/elixir -v"
    end
    end
  13. @huffman huffman revised this gist Mar 3, 2012. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion elixir.rb
    Original file line number Diff line number Diff line change
    @@ -15,5 +15,7 @@ def install

    def test
    system "elixir"
    system "elixirc"
    system "iex"
    end
    end
    end
  14. @huffman huffman created this gist Mar 2, 2012.
    19 changes: 19 additions & 0 deletions elixir.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    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"
    end
    end