homebrew-core/Formula/gsl@1.rb

28 lines
1,018 B
Ruby
Raw Normal View History

2017-03-10 18:50:35 +00:00
class GslAT1 < Formula
desc "Numerical library for C and C++"
homepage "https://www.gnu.org/software/gsl/"
2017-04-23 05:13:20 +00:00
url "https://ftp.gnu.org/gnu/gsl/gsl-1.16.tar.gz"
mirror "https://ftpmirror.gnu.org/gsl/gsl-1.16.tar.gz"
2017-03-10 18:50:35 +00:00
sha256 "73bc2f51b90d2a780e6d266d43e487b3dbd78945dd0b04b14ca5980fe28d2f53"
2017-03-13 19:07:51 +00:00
bottle do
cellar :any
2017-09-19 14:38:10 +00:00
sha256 "f8301a30909551570a6bfd66539eee73c7ca7ef58db7dd7ae19c6a8cdba16971" => :high_sierra
2017-03-13 19:07:51 +00:00
sha256 "e637950a3f49a8fa79627a26fd3f12a97e2652dc64fd3ec0a83b8fcb08ae405f" => :sierra
sha256 "5e342feaaadaabca0b79312a69d8a3ce9686c60d1840b40affecaa011e4b634c" => :el_capitan
sha256 "642a923d212bc967a8d235eb37177f1b21a6d165b6adf14041ae5e42d37c25c2" => :yosemite
end
2017-03-10 18:50:35 +00:00
keg_only :versioned_formula
def install
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
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"
end
end