3
0
mirror of https://github.com/triqs/dft_tools synced 2024-12-25 13:53:40 +01:00

brew formula for triqs and an application ok

- triqs and triqs_cthyb_matrix formula work
but unisntallation is not perfect.
This commit is contained in:
Olivier Parcollet 2013-09-01 00:15:20 +02:00
parent 352d049137
commit e7f619ac94
2 changed files with 37 additions and 10 deletions

View File

@ -2,30 +2,50 @@ require 'formula'
class Triqs < Formula class Triqs < Formula
homepage 'ipht.cea.fr/triqs/' homepage 'ipht.cea.fr/triqs/'
head 'https://github.com/tomaok/TRIQS.git' ##Thomas'temporary fork where on-site compilation NOT required version '1.0'
url 'file:///Users/parcolle/triqs/src/libs', :using => :git
#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 #url 'https://github.com/TRIQS/TRIQS/archive/master.zip' ##once the on-site compilation requirement has been removed
#sha1 '' #sha1 ''
depends_on 'cmake' => :build depends_on 'cmake' => :build
depends_on 'gfortran' depends_on 'gfortran'
depends_on 'hdf5' #depends_on 'hdf5'
depends_on 'open-mpi' #depends_on 'open-mpi'
depends_on 'fftw' depends_on 'fftw'
depends_on 'gmp' depends_on 'gmp'
depends_on 'gsl' depends_on 'gsl'
depends_on 'python' #depends_on 'python'
depends_on 'doxygen' #depends_on 'doxygen'
depends_on 'zmq' #depends_on 'zmq'
depends_on 'boost' depends_on 'boost'
# python package needed
#depends_on :python => 'numpy'
#depends_on :python => 'scipy'
#depends_on :python => 'h5py'
#depends_on :python => 'cython'
#depends_on :python => 'matplotlib'
def install def install
args=["-DPYTHON_INTERPRETER=/usr/local/bin/python", "-DALLOW_COMPILATION_IN_SOURCES" , "-DCMAKE_INSTALL_PREFIX=/usr/local"] args=["-DPYTHON_INTERPRETER=/usr/local/bin/python", "-DALLOW_COMPILATION_IN_SOURCES=ON" , "-DCMAKE_INSTALL_PREFIX=/usr/local"]
system "cmake", ".", *args system "cmake", ".", *args
system "make -j8 " # if this fails, try separate make/make install steps system "make -j8 " # if this fails, try separate make/make install steps
system "make test" system "make test"
system "make -j8 install" # if this fails, try separate make/make install steps system "make -j8 install" # if this fails, try separate make/make install steps
end end
def caveats
s = <<-EOS.undent
**********************************************************************
Uninstalling requires to clean manually as :
find /usr/local/ -name "*triqs*" |grep -v Library |xargs rm -rf
**********************************************************************
EOS
return s
end
#def test #def test
# system "pytriqs" # system "pytriqs"
#end #end

View File

@ -1,11 +1,14 @@
require 'formula' require 'formula'
class Triqs_cthyb_matrix < Formula class TriqsCthybMatrix < Formula
homepage 'ipht.cea.fr/triqs/XXX' homepage 'ipht.cea.fr/triqs/XXX'
head 'https://github.com/TRIQS/cthyb_matrix.git' #head 'https://github.com/TRIQS/cthyb_matrix.git'
url 'https://github.com/TRIQS/cthyb_matrix/XXXXX.tar.gz' version '1.0'
url 'file:///Users/parcolle/triqs/src/cthyb_matrix', :using => :git
#url 'https://github.com/TRIQS/cthyb_matrix/XXXXX.tar.gz'
#sha1 '' #sha1 ''
depends_on 'cmake' => :build
depends_on 'triqs' depends_on 'triqs'
def install def install
@ -16,4 +19,8 @@ class Triqs_cthyb_matrix < Formula
system "make -j8 install" # if this fails, try separate make/make install steps system "make -j8 install" # if this fails, try separate make/make install steps
end end
def uninstall
system "rm /usr/local/bin/pytriqs"
end
end end