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"
|
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"
|
url "http://www.tddft.org/programs/octopus/down.php?file=libxc/3.0.1/libxc-3.0.1.tar.gz"
|
||||||
sha256 "836692f2ab60ec3aca0cca105ed5d0baa7d182be07cc9d0daa7b80ee1362caf7"
|
sha256 "836692f2ab60ec3aca0cca105ed5d0baa7d182be07cc9d0daa7b80ee1362caf7"
|
||||||
|
revision 1
|
||||||
|
|
||||||
bottle do
|
bottle do
|
||||||
cellar :any
|
cellar :any
|
||||||
|
@ -11,14 +12,13 @@ class Libxc < Formula
|
||||||
sha256 "6618cfcb1cd1a7d69991e97fbc1cda0d67b0dc1f99232057cc0cac9895e031e6" => :el_capitan
|
sha256 "6618cfcb1cd1a7d69991e97fbc1cda0d67b0dc1f99232057cc0cac9895e031e6" => :el_capitan
|
||||||
end
|
end
|
||||||
|
|
||||||
depends_on :fortran
|
depends_on "gcc" # for gfortran
|
||||||
|
|
||||||
def install
|
def install
|
||||||
system "./configure", "--prefix=#{prefix}",
|
system "./configure", "--prefix=#{prefix}",
|
||||||
"--enable-shared",
|
"--enable-shared",
|
||||||
"FCCPP=#{ENV.fc} -E -x c",
|
"FCCPP=gfortran -E -x c",
|
||||||
"CC=#{ENV.cc}",
|
"CC=#{ENV.cc}"
|
||||||
"CFLAGS=-pipe"
|
|
||||||
system "make", "install"
|
system "make", "install"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -42,8 +42,8 @@ class Libxc < Formula
|
||||||
use xc_f90_lib_m
|
use xc_f90_lib_m
|
||||||
end program lxctest
|
end program lxctest
|
||||||
EOS
|
EOS
|
||||||
ENV.fortran
|
system "gfortran", "test.f90", "-L#{lib}", "-lxc", "-I#{include}",
|
||||||
system ENV.fc, "test.f90", "-L#{lib}", "-lxc", "-I#{include}", "-o", "ftest"
|
"-o", "ftest"
|
||||||
system "./ftest"
|
system "./ftest"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue