aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-09-25 15:27:01 -0500
committerJack Nagel2014-09-25 15:27:01 -0500
commit46489b49a5a44dd0afc32c76c16ec650750abbcb (patch)
treeaeffd65cc52e6260e78d5fb559b212b30ace3586 /Library
parent542cbe4bbe1f582e5d56795c993aebb6dd416a9a (diff)
downloadhomebrew-46489b49a5a44dd0afc32c76c16ec650750abbcb.tar.bz2
uswgi: simplify option handling
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/uwsgi.rb11
1 files changed, 2 insertions, 9 deletions
diff --git a/Library/Formula/uwsgi.rb b/Library/Formula/uwsgi.rb
index 1a2d8eb85..51fd2b643 100644
--- a/Library/Formula/uwsgi.rb
+++ b/Library/Formula/uwsgi.rb
@@ -45,15 +45,8 @@ class Uwsgi < Formula
def install
%w{CFLAGS LDFLAGS}.each { |e| ENV.append e, "-arch #{MacOS.preferred_arch}" }
- json = "yajl"
- if build.with? "jansson"
- json = "jansson"
- end
-
- yaml = "embedded"
- if build.with? "libyaml"
- yaml = "libyaml"
- end
+ json = build.with?("jansson") ? "jansson" : "yajl"
+ yaml = build.with?("libyaml") ? "libyaml" : "embedded"
(buildpath/"buildconf/brew.ini").write <<-EOS.undent
[uwsgi]