Basically Formulae are now classes that get dynamically loaded by the brew script. This gives me more flexability.
21 lines
581 B
Ruby
21 lines
581 B
Ruby
require 'brewkit'
|
|
|
|
class Fftw <Formula
|
|
@homepage='http://www.fftw.org'
|
|
@url='http://www.fftw.org/fftw-3.2.1.tar.gz'
|
|
@md5='712d3f33625a0a76f5758648d4b925f7'
|
|
|
|
def install
|
|
configure=<<-EOS
|
|
./configure --enable-shared --disable-debug --prefix='#{prefix}'
|
|
--enable-threads --enable-single --enable-sse
|
|
--disable-dependency-tracking
|
|
--disable-fortran
|
|
EOS
|
|
system configure.gsub("\n", ' ').strip.squeeze(' ')
|
|
system "make install"
|
|
|
|
#wtf file?
|
|
(prefix+'share'+'info'+'dir').unlink
|
|
end
|
|
end |