2009-10-30 10:43:47 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Gsl < Formula
|
2010-03-20 10:33:34 +00:00
|
|
|
url 'ftp://ftp.gnu.org/gnu/gsl/gsl-1.14.tar.gz'
|
2009-10-30 10:43:47 +00:00
|
|
|
homepage 'http://www.gnu.org/software/gsl/'
|
2010-03-20 10:33:34 +00:00
|
|
|
md5 'd55e7b141815412a072a3f0e12442042'
|
2009-10-30 10:43:47 +00:00
|
|
|
|
2011-04-04 11:21:00 +00:00
|
|
|
def options
|
|
|
|
[["--universal", "Build a universal binary."]]
|
|
|
|
end
|
|
|
|
|
2009-10-30 10:43:47 +00:00
|
|
|
def install
|
2011-04-21 16:42:27 +00:00
|
|
|
ENV.universal_binary if ARGV.build_universal?
|
2011-04-04 11:21:00 +00:00
|
|
|
|
|
|
|
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
|
2009-10-30 10:43:47 +00:00
|
|
|
system "make" # A GNU tool which doesn't support just make install! Shameful!
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|