61b2307139
brewkit.rb changes ENV destructively, so lets not do that everytime a formula is required. Now it's possible for other tools to require a formula description without worrying about side-effects.
15 lines
433 B
Ruby
15 lines
433 B
Ruby
require 'formula'
|
|
|
|
class Llvm <Formula
|
|
@url='http://llvm.org/releases/2.5/llvm-2.5.tar.gz'
|
|
@homepage='http://llvm.org/'
|
|
@md5='55df2ea8665c8094ad2ef85187b9fc74'
|
|
|
|
def install
|
|
system "./configure", "--prefix=#{prefix}",
|
|
"--enable-targets=x86",
|
|
"--enable-optimized"
|
|
system "make"
|
|
system "make install" # seperate steps required, otherwise the build fails
|
|
end
|
|
end
|