3
0
mirror of https://github.com/triqs/dft_tools synced 2024-12-25 05:43:40 +01:00
dft_tools/packaging/os_x/triqs_cthyb_matrix.rb
Olivier Parcollet e7f619ac94 brew formula for triqs and an application ok
- triqs and triqs_cthyb_matrix formula work
but unisntallation is not perfect.
2013-09-02 21:25:43 +02:00

27 lines
691 B
Ruby

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