diff options
| author | Jack Nagel | 2014-09-25 15:27:01 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-09-25 15:27:01 -0500 |
| commit | 46489b49a5a44dd0afc32c76c16ec650750abbcb (patch) | |
| tree | aeffd65cc52e6260e78d5fb559b212b30ace3586 /Library | |
| parent | 542cbe4bbe1f582e5d56795c993aebb6dd416a9a (diff) | |
| download | homebrew-46489b49a5a44dd0afc32c76c16ec650750abbcb.tar.bz2 | |
uswgi: simplify option handling
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/uwsgi.rb | 11 |
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] |
