aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAdam Vandenberg2012-08-27 21:57:08 -0700
committerAdam Vandenberg2012-08-27 21:57:08 -0700
commit325c7d1cedd02b7136421086d2d2d2686ac48a07 (patch)
tree92939a2d87251f4fbc7ad7146b696c5db3552504 /Library/Formula
parentc8378d73b1ebacdba0f57fb082c213b6f2e9a572 (diff)
downloadhomebrew-325c7d1cedd02b7136421086d2d2d2686ac48a07.tar.bz2
gromacs: use new dsl
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/gromacs.rb16
1 files changed, 6 insertions, 10 deletions
diff --git a/Library/Formula/gromacs.rb b/Library/Formula/gromacs.rb
index 0c4c60caa..d035313c9 100644
--- a/Library/Formula/gromacs.rb
+++ b/Library/Formula/gromacs.rb
@@ -1,23 +1,19 @@
require 'formula'
class Gromacs < Formula
- url 'ftp://ftp.gromacs.org/pub/gromacs/gromacs-4.5.5.tar.gz'
homepage 'http://www.gromacs.org/'
+ url 'ftp://ftp.gromacs.org/pub/gromacs/gromacs-4.5.5.tar.gz'
md5 '6a87e7cdfb25d81afa9fea073eb28468'
- depends_on 'fftw'
+ option 'enable-mpi', "Enables MPI support"
+ option 'enable-double',"Enables double precision"
- def options
- [
- ['--enable-mpi', "Enables MPI support"],
- ['--enable-double',"Enables double precision"]
- ]
- end
+ depends_on 'fftw'
def install
args = ["--prefix=#{prefix}"]
- args << "--enable-mpi" if ARGV.include? '--enable-mpi'
- args << "--enable-double" if ARGV.include? '--enable-double'
+ args << "--enable-mpi" if build.include? 'enable-mpi'
+ args << "--enable-double" if build.include? 'enable-double'
system "./configure", *args
system "make"