diff options
| author | Jack Nagel | 2013-01-26 20:45:54 -0600 |
|---|---|---|
| committer | Jack Nagel | 2013-01-26 20:45:58 -0600 |
| commit | 615cc827a47cc1965f841409a3c17caacdd3c489 (patch) | |
| tree | f80329f08b5955df004289e096a9fd8a48ca56a8 /Library/Formula | |
| parent | bf1ce533665932aeb24308830f022eb22c3d60fa (diff) | |
| download | homebrew-615cc827a47cc1965f841409a3c17caacdd3c489.tar.bz2 | |
lighttpd: use new optional deps
Here's an example where we use `option` to override the default option
description provided by the :optional tag.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/lighttpd.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Formula/lighttpd.rb b/Library/Formula/lighttpd.rb index b5447b518..e39e9a18b 100644 --- a/Library/Formula/lighttpd.rb +++ b/Library/Formula/lighttpd.rb @@ -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 |
