From ccf120c4557d5af9924bda0baa6523bfe04f9bc3 Mon Sep 17 00:00:00 2001 From: FX Coudert Date: Fri, 12 Jan 2018 12:39:09 +0100 Subject: [PATCH] veclibfort: phase out :fortran --- Formula/veclibfort.rb | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Formula/veclibfort.rb b/Formula/veclibfort.rb index 575683060099b..6e1e75ebe7273 100644 --- a/Formula/veclibfort.rb +++ b/Formula/veclibfort.rb @@ -3,7 +3,7 @@ class Veclibfort < Formula homepage "https://github.com/mcg1969/vecLibFort" url "https://github.com/mcg1969/vecLibFort/archive/0.4.2.tar.gz" sha256 "c61316632bffa1c76e3c7f92b11c9def4b6f41973ecf9e124d68de6ae37fbc85" - revision 4 + revision 5 head "https://github.com/mcg1969/vecLibFort.git" bottle do @@ -14,7 +14,7 @@ class Veclibfort < Formula sha256 "6dcd136a00a22f25301da83534a6faf0171b391e00baf45b790d04d551c7202e" => :yosemite end - depends_on :fortran + depends_on "gcc" # for gfortran def install system "make", "all" @@ -23,9 +23,8 @@ def install end test do - ENV.fortran - system ENV.fc, "-o", "tester", "-O", pkgshare/"tester.f90", - "-L#{lib}", "-lvecLibFort" + system "gfortran", "-o", "tester", "-O", pkgshare/"tester.f90", + "-L#{lib}", "-lvecLibFort" assert_match "SLAMCH", shell_output("./tester") end end