lighttpd: use new optional deps
Here's an example where we use `option` to override the default option description provided by the :optional tag.
This commit is contained in:
parent
3b1c5e368c
commit
756dbfd389
1 changed files with 2 additions and 2 deletions
|
@ -9,7 +9,7 @@ class Lighttpd < Formula
|
|||
|
||||
depends_on 'pkg-config' => :build
|
||||
depends_on 'pcre'
|
||||
depends_on 'lua' => :optional if build.include? 'with-lua'
|
||||
depends_on 'lua' => :optional
|
||||
|
||||
def install
|
||||
args = %W[
|
||||
|
@ -18,7 +18,7 @@ class Lighttpd < Formula
|
|||
--with-openssl
|
||||
--with-ldap
|
||||
]
|
||||
args << "--with-lua" if build.include? 'with-lua'
|
||||
args << "--with-lua" if build.with? 'lua'
|
||||
system "./configure", *args
|
||||
system "make install"
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue