2013-07-30 16:09:01 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Libxc < Formula
|
|
|
|
homepage 'http://www.tddft.org/programs/octopus/wiki/index.php/Libxc'
|
|
|
|
url 'http://www.tddft.org/programs/octopus/down.php?file=libxc/libxc-2.0.2.tar.gz'
|
|
|
|
sha1 '471de56191114f4fb4d557ec366d6978c2c1312d'
|
|
|
|
|
|
|
|
depends_on :fortran
|
|
|
|
|
|
|
|
def install
|
|
|
|
system "./configure", "--prefix=#{prefix}",
|
|
|
|
"--enable-shared",
|
2013-11-16 23:37:51 +00:00
|
|
|
"FCCPP=#{ENV.fc} -E -x c",
|
2013-07-30 16:09:01 +00:00
|
|
|
"CC=#{ENV.cc}",
|
|
|
|
"CFLAGS=-pipe"
|
|
|
|
system "make"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|