Skip to content

Commit

Permalink
nlopt: fix audit warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ianml committed Mar 24, 2014
1 parent ed8ede4 commit 72138dd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nlopt.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ class Nlopt < Formula
def install
ENV.deparallelize
args = ["--with-cxx", "--enable-shared", "--prefix=#{prefix}"]
args += ["--without-octave"] unless build.with? 'octave'
args += ["--without-python"] unless build.with? :python
args += ["--without-octave"] if build.without? "octave"
args += ["--without-python"] if build.without? :python
if build.with? 'octave'
ENV['OCT_INSTALL_DIR'] = share/'nlopt/oct'
ENV['M_INSTALL_DIR'] = share/'nlopt/m'
Expand All @@ -35,7 +35,7 @@ def caveats
to the Octave path.
EOS
end
unless build.without? :python
if build.with? :python
python_version = `python-config --libs`.match('-lpython(\d+\.\d+)').captures.at(0)
s += <<-EOS.undent
Please add
Expand Down

0 comments on commit 72138dd

Please sign in to comment.