3
0
mirror of https://github.com/triqs/dft_tools synced 2024-10-31 19:23:45 +01:00
dft_tools/packaging/os_x/triqs_cthyb_matrix.rb

27 lines
691 B
Ruby
Raw Normal View History

require 'formula'
class TriqsCthybMatrix < Formula
homepage 'ipht.cea.fr/triqs/XXX'
#head 'https://github.com/TRIQS/cthyb_matrix.git'
version '1.0'
url 'file:///Users/parcolle/triqs/src/cthyb_matrix', :using => :git
#url 'https://github.com/TRIQS/cthyb_matrix/XXXXX.tar.gz'
#sha1 ''
depends_on 'cmake' => :build
depends_on 'triqs'
def install
args=["-DTRIQS_PATH=/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 uninstall
system "rm /usr/local/bin/pytriqs"
end
end