/julia.rb Secret
Created
March 11, 2012 22:34
This file contains 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 Julia < Formula | |
homepage 'http://julialang.org/' | |
url 'https://github.com/JuliaLang/julia.git', :using => :git | |
version '0-prerelease' | |
md5 '' | |
def install | |
ENV.fortran | |
ENV.deparallelize | |
ENV.no_optimization | |
ENV.gcc_4_2 | |
# Currently homebrew isn't adding an llvm fortran, but that'd have to go | |
# too, if it was: FC F77 | |
bad_flags = %w[CC CFLAGS CXX CXXFLAGS LD FCFLAGS FFLAGS] | |
bad_flags.each { |e| ENV.delete e } | |
system "make PREFIX=#{prefix}" | |
system "make PREFIX=#{prefix} install" | |
end | |
def test | |
system "make test" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment