2010-10-29 07:36:17 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Gromacs < Formula
|
2011-08-18 19:49:11 +00:00
|
|
|
url 'ftp://ftp.gromacs.org/pub/gromacs/gromacs-4.5.4.tar.gz'
|
2010-10-29 07:36:17 +00:00
|
|
|
homepage 'http://www.gromacs.org/'
|
2011-08-18 19:49:11 +00:00
|
|
|
md5 '5013de941017e014b92d41f82c7e86d6'
|
2010-10-29 07:36:17 +00:00
|
|
|
|
|
|
|
depends_on 'fftw'
|
|
|
|
|
|
|
|
def options
|
|
|
|
[
|
|
|
|
['--enable-mpi', "Enables MPI support"],
|
|
|
|
['--enable-double',"Enables double precision"]
|
|
|
|
]
|
|
|
|
end
|
|
|
|
|
|
|
|
def install
|
|
|
|
args = ["--prefix=#{prefix}"]
|
|
|
|
args << "--enable-mpi" if ARGV.include? '--enable-mpi'
|
|
|
|
args << "--enable-double" if ARGV.include? '--enable-double'
|
|
|
|
|
|
|
|
system "./configure", *args
|
|
|
|
system "make"
|
|
|
|
ENV.j1
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|