2009-10-30 10:43:47 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Gsl < Formula
|
2011-09-12 16:31:30 +00:00
|
|
|
url 'http://ftpmirror.gnu.org/gsl/gsl-1.15.tar.gz'
|
2011-11-30 18:56:07 +00:00
|
|
|
mirror 'http://ftp.gnu.org/gnu/gsl/gsl-1.15.tar.gz'
|
2009-10-30 10:43:47 +00:00
|
|
|
homepage 'http://www.gnu.org/software/gsl/'
|
2011-08-13 04:02:02 +00:00
|
|
|
md5 '494ffefd90eef4ada678c306bab4030b'
|
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
|