diff options
| author | Adam Vandenberg | 2012-08-27 21:57:08 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2012-08-27 21:57:08 -0700 |
| commit | 325c7d1cedd02b7136421086d2d2d2686ac48a07 (patch) | |
| tree | 92939a2d87251f4fbc7ad7146b696c5db3552504 /Library/Formula | |
| parent | c8378d73b1ebacdba0f57fb082c213b6f2e9a572 (diff) | |
| download | homebrew-325c7d1cedd02b7136421086d2d2d2686ac48a07.tar.bz2 | |
gromacs: use new dsl
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/gromacs.rb | 16 |
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" |
