aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJonathan Groß2010-10-29 09:36:17 +0200
committerAdam Vandenberg2010-10-29 07:15:55 -0700
commitc36d432dd558ee978ecd4da74c3d450bbe4263e6 (patch)
tree39b7883a52a30aeceb78ffcd93e6d423364bdfd4 /Library/Formula
parentf816827dedd4b54b661aded8fcf2b60d46c7bd4b (diff)
downloadhomebrew-c36d432dd558ee978ecd4da74c3d450bbe4263e6.tar.bz2
new Formula: Gromacs 4.5.1
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/gromacs.rb27
1 files changed, 27 insertions, 0 deletions
diff --git a/Library/Formula/gromacs.rb b/Library/Formula/gromacs.rb
new file mode 100644
index 000000000..be90bcfbc
--- /dev/null
+++ b/Library/Formula/gromacs.rb
@@ -0,0 +1,27 @@
+require 'formula'
+
+class Gromacs <Formula
+ url 'ftp://ftp.gromacs.org/pub/gromacs/gromacs-4.5.1.tar.gz'
+ homepage 'http://www.gromacs.org/'
+ md5 'd4b737b0bea8a9390d2c3ad9b159914d'
+
+ 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