Created
          November 13, 2012 00:20 
        
      - 
      
- 
        Save mururu/4062996 to your computer and use it in GitHub Desktop. 
    elixir-build exenv formula
  
        
  
    
      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
    
  
  
    
  | require 'formula' | |
| class ElixirBuild < Formula | |
| homepage 'https://github.com/mururu/elixir-build' | |
| url 'https://github.com/mururu/elixir-build/tarball/v20121112' | |
| sha1 '6d3ae172359e26ee94370ce309edad79c996ea78' | |
| head 'https://github.com/mururu/elixir-build.git' | |
| option "without-exenv", "Don't install as an exenv plugin" | |
| depends_on 'exenv' unless build.include? 'without-exenv' | |
| def install | |
| ENV['PREFIX'] = prefix | |
| system "./install.sh" | |
| exenv_plugins = "#{HOMEBREW_PREFIX}/var/lib/exenv/plugins" | |
| mkdir_p exenv_plugins | |
| ln_sf opt_prefix, "#{exenv_plugins}/#{name}" unless build.include? 'without-exenv' | |
| end | |
| end | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment