From 7b185228af6a57e16594c189ad39d004011b2153 Mon Sep 17 00:00:00 2001 From: FX Coudert Date: Sat, 13 Jan 2018 17:52:02 +0100 Subject: [PATCH] libxc: phase out :fortran --- Formula/libxc.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Formula/libxc.rb b/Formula/libxc.rb index 47e303540a..f8b17fb4fe 100644 --- a/Formula/libxc.rb +++ b/Formula/libxc.rb @@ -3,6 +3,7 @@ class Libxc < Formula homepage "http://octopus-code.org/wiki/Libxc" url "http://www.tddft.org/programs/octopus/down.php?file=libxc/3.0.1/libxc-3.0.1.tar.gz" sha256 "836692f2ab60ec3aca0cca105ed5d0baa7d182be07cc9d0daa7b80ee1362caf7" + revision 1 bottle do cellar :any @@ -11,14 +12,13 @@ class Libxc < Formula sha256 "6618cfcb1cd1a7d69991e97fbc1cda0d67b0dc1f99232057cc0cac9895e031e6" => :el_capitan end - depends_on :fortran + depends_on "gcc" # for gfortran def install system "./configure", "--prefix=#{prefix}", "--enable-shared", - "FCCPP=#{ENV.fc} -E -x c", - "CC=#{ENV.cc}", - "CFLAGS=-pipe" + "FCCPP=gfortran -E -x c", + "CC=#{ENV.cc}" system "make", "install" end @@ -42,8 +42,8 @@ class Libxc < Formula use xc_f90_lib_m end program lxctest EOS - ENV.fortran - system ENV.fc, "test.f90", "-L#{lib}", "-lxc", "-I#{include}", "-o", "ftest" + system "gfortran", "test.f90", "-L#{lib}", "-lxc", "-I#{include}", + "-o", "ftest" system "./ftest" end end