aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/gsl.rb
blob: 7ab5b730438ca62590bb60512bcbbc9e48ce5e8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
require 'formula'

class Gsl < Formula
  url 'http://ftpmirror.gnu.org/gsl/gsl-1.15.tar.gz'
  mirror 'http://ftp.gnu.org/gnu/gsl/gsl-1.15.tar.gz'
  homepage 'http://www.gnu.org/software/gsl/'
  md5 '494ffefd90eef4ada678c306bab4030b'

  def options
    [["--universal", "Build a universal binary."]]
  end

  def install
    ENV.universal_binary if ARGV.build_universal?

    system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
    system "make" # A GNU tool which doesn't support just make install! Shameful!
    system "make install"
  end
end