uswgi: simplify option handling
This commit is contained in:
parent
eae965bf76
commit
818ef34aad
1 changed files with 2 additions and 9 deletions
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue