diff options
| author | Adam Vandenberg | 2012-08-25 09:54:43 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2012-08-25 10:29:26 -0700 |
| commit | 718bb1f43783f3df9a412368c50224c31c57801d (patch) | |
| tree | 878f7e7db3e5d5f41543efa86913af8be3c22227 /Library/Formula | |
| parent | 95af26bb95215450aa402951b5ea1e2571ce6d7d (diff) | |
| download | homebrew-718bb1f43783f3df9a412368c50224c31c57801d.tar.bz2 | |
symphony: use new dsl
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/symphony.rb | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/Library/Formula/symphony.rb b/Library/Formula/symphony.rb index 972fa6854..233b76c6a 100644 --- a/Library/Formula/symphony.rb +++ b/Library/Formula/symphony.rb @@ -5,12 +5,8 @@ class Symphony < Formula url 'http://www.coin-or.org/download/source/SYMPHONY/SYMPHONY-5.3.3.tgz' md5 '8c34f9fa49ebff325b984408ff1f92fc' - def options - [ - ["--enable-openmp", "Enable openmp support"], - ["--with-gmpl", "Add in GNU Modeling Lang. support via GLPK"] - ] - end + option "enable-openmp", "Enable openmp support" + option "with-gmpl", "GNU Modeling Language support via GLPK" def install args = ["--disable-debug", "--disable-dependency-tracking", @@ -18,7 +14,7 @@ class Symphony < Formula "--enable-static-executable", "--prefix=#{prefix}"] - if ARGV.include? "--with-gmpl" + if build.include? "with-gmpl" # Symphony uses a patched version of GLPK for reading MPL files. # Use a private version rather than require the Homebrew version of GLPK. cd 'ThirdParty/Glpk' do @@ -30,7 +26,7 @@ class Symphony < Formula args << "--with-gmpl" end - if ARGV.include? "--enable-openmp" + if build.include? "enable-openmp" inreplace 'SYMPHONY/config', /^SYM_COMPILE_IN_LP = TRUE/, "SYM_COMPILE_IN_LP = FALSE" args << "--enable-openmp" end |
