homebrew-core/Formula/gsl.rb

31 lines
1 KiB
Ruby
Raw Normal View History

2011-03-10 05:11:03 +00:00
class Gsl < Formula
desc "Numerical library for C and C++"
homepage "https://www.gnu.org/software/gsl/"
url "http://ftpmirror.gnu.org/gsl/gsl-1.16.tar.gz"
mirror "https://ftp.gnu.org/gnu/gsl/gsl-1.16.tar.gz"
sha256 "73bc2f51b90d2a780e6d266d43e487b3dbd78945dd0b04b14ca5980fe28d2f53"
2009-10-30 10:43:47 +00:00
2014-03-13 20:13:59 +00:00
bottle do
cellar :any
2015-07-19 00:06:26 +00:00
revision 2
2015-09-21 18:49:30 +00:00
sha256 "c9e21bb886a70e58470fc026b885d8fc929656389679f0b18f2073e630406e2a" => :el_capitan
2015-07-19 00:06:26 +00:00
sha256 "15ce99a31e31584740852571f4f237195d21083f6675390dc50283429127400a" => :yosemite
sha256 "06f9197561e1425ed56820dcab37bc64c35cfaa1b98a353b7fe9d4d220701bd1" => :mavericks
sha256 "ab1f1a358a9307f81c0aea895d5ed69b7c20c24ab6d1673010f31f0d25f78ea2" => :mountain_lion
2014-03-13 20:13:59 +00:00
end
2012-08-10 04:55:01 +00:00
option :universal
2009-10-30 10:43:47 +00:00
def install
2012-08-10 04:55:01 +00:00
ENV.universal_binary if build.universal?
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
test do
system bin/"gsl-randist", "0", "20", "cauchy", "30"
2009-10-30 10:43:47 +00:00
end
end