2013-08-30 20:17:45 +02:00
|
|
|
require 'formula'
|
|
|
|
|
2013-09-01 00:15:20 +02:00
|
|
|
class TriqsCthybMatrix < Formula
|
2013-08-30 20:17:45 +02:00
|
|
|
homepage 'ipht.cea.fr/triqs/XXX'
|
2013-09-01 00:15:20 +02:00
|
|
|
#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'
|
2013-08-30 20:17:45 +02:00
|
|
|
#sha1 ''
|
|
|
|
|
2013-09-01 00:15:20 +02:00
|
|
|
depends_on 'cmake' => :build
|
2013-08-30 20:17:45 +02:00
|
|
|
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
|
|
|
|
|
2013-09-01 00:15:20 +02:00
|
|
|
def uninstall
|
|
|
|
system "rm /usr/local/bin/pytriqs"
|
|
|
|
end
|
|
|
|
|
2013-08-30 20:17:45 +02:00
|
|
|
end
|