libxc: phase out :fortran
This commit is contained in:
parent
9a5f50870c
commit
7b185228af
1 changed files with 6 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue