diff options
| author | Mike McQuaid | 2014-03-06 20:40:26 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2014-03-08 00:54:35 +0000 |
| commit | 9de9f8d10e8e6d8c2d7cf7b74e6085038fc728d9 (patch) | |
| tree | 2c9f666ed5bda1fdf28f56b4637fb4d6c5ccc0a1 /Library/Formula/swi-prolog.rb | |
| parent | e6dd316f1e5988f50f524c627c38ce5473097cc1 (diff) | |
| download | homebrew-9de9f8d10e8e6d8c2d7cf7b74e6085038fc728d9.tar.bz2 | |
formulae: fix with/without usage.
Closes #27275.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula/swi-prolog.rb')
| -rw-r--r-- | Library/Formula/swi-prolog.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Formula/swi-prolog.rb b/Library/Formula/swi-prolog.rb index 90829df26..f07370733 100644 --- a/Library/Formula/swi-prolog.rb +++ b/Library/Formula/swi-prolog.rb @@ -23,7 +23,7 @@ class SwiProlog < Formula depends_on 'readline' depends_on 'gmp' - if build.include? 'with-xpce' + if build.with? "xpce" depends_on 'pkg-config' => :build depends_on :x11 depends_on 'jpeg' @@ -42,8 +42,8 @@ class SwiProlog < Formula def install args = ["--prefix=#{libexec}", "--mandir=#{man}"] - ENV.append 'DISABLE_PKGS', "jpl" unless build.include? "with-jpl" - ENV.append 'DISABLE_PKGS', "xpce" unless build.include? 'with-xpce' + ENV.append 'DISABLE_PKGS', "jpl" if build.without? "jpl" + ENV.append 'DISABLE_PKGS', "xpce" if build.without? "xpce" # SWI-Prolog's Makefiles don't add CPPFLAGS to the compile command, but do # include CIFLAGS. Setting it here. Also, they clobber CFLAGS, so including |
