mirror of
https://github.com/triqs/dft_tools
synced 2024-10-31 19:23:45 +01:00
33 lines
964 B
Ruby
33 lines
964 B
Ruby
|
require 'formula'
|
||
|
|
||
|
class Triqs < Formula
|
||
|
homepage 'ipht.cea.fr/triqs/'
|
||
|
head 'https://github.com/tomaok/TRIQS.git' ##Thomas'temporary fork where on-site compilation NOT required
|
||
|
#url 'https://github.com/TRIQS/TRIQS/archive/master.zip' ##once the on-site compilation requirement has been removed
|
||
|
#sha1 ''
|
||
|
|
||
|
depends_on 'cmake' => :build
|
||
|
depends_on 'gfortran'
|
||
|
depends_on 'hdf5'
|
||
|
depends_on 'open-mpi'
|
||
|
depends_on 'fftw'
|
||
|
depends_on 'gmp'
|
||
|
depends_on 'gsl'
|
||
|
depends_on 'python'
|
||
|
depends_on 'doxygen'
|
||
|
depends_on 'zmq'
|
||
|
depends_on 'boost'
|
||
|
|
||
|
def install
|
||
|
args=["-DPYTHON_INTERPRETER=/usr/local/bin/python", "-DALLOW_COMPILATION_IN_SOURCES" , "-DCMAKE_INSTALL_PREFIX=/usr/local"]
|
||
|
system "cmake", ".", *args
|
||
|
system "make -j8 " # if this fails, try separate make/make install steps
|
||
|
system "make test"
|
||
|
system "make -j8 install" # if this fails, try separate make/make install steps
|
||
|
end
|
||
|
|
||
|
#def test
|
||
|
# system "pytriqs"
|
||
|
#end
|
||
|
end
|