diff options
| author | Capi Etheriel | 2012-06-09 17:11:56 -0300 | 
|---|---|---|
| committer | Adam Vandenberg | 2012-06-11 21:37:07 -0700 | 
| commit | 90f333308923ddecccde1c7530aa11272f31a692 (patch) | |
| tree | fd05efda2c4d15516d01527e9f8f6eefef158d38 /Library/Formula/lighttpd.rb | |
| parent | 905321caf2030f03a41c19dfbc9ad619ca0e88e6 (diff) | |
| download | homebrew-90f333308923ddecccde1c7530aa11272f31a692.tar.bz2 | |
lighttpd: add lua option
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/lighttpd.rb')
| -rw-r--r-- | Library/Formula/lighttpd.rb | 18 | 
1 files changed, 14 insertions, 4 deletions
diff --git a/Library/Formula/lighttpd.rb b/Library/Formula/lighttpd.rb index 8fa273d16..6e47bcba3 100644 --- a/Library/Formula/lighttpd.rb +++ b/Library/Formula/lighttpd.rb @@ -1,17 +1,27 @@  require 'formula'  class Lighttpd < Formula +  homepage 'http://www.lighttpd.net/'    url 'http://download.lighttpd.net/lighttpd/releases-1.4.x/lighttpd-1.4.30.tar.bz2'    sha256 '0d795597e4666dbf6ffe44b4a42f388ddb44736ddfab0b1ac091e5bb35212c2d' -  homepage 'http://www.lighttpd.net/'    depends_on 'pkg-config' => :build    depends_on 'pcre' +  depends_on 'lua' if ARGV.include? '--with-lua' + +  def options +    [['--with-lua', 'Include Lua scripting support for mod_magnet']] +  end    def install -    system "./configure", "--disable-dependency-tracking", -                          "--prefix=#{prefix}", -                          "--with-openssl", "--with-ldap" +    args = %W[ +      --disable-dependency-tracking +      --prefix=#{prefix} +      --with-openssl +      --with-ldap +    ] +    args << "--with-lua" if ARGV.include? '--with-lua' +    system "./configure", *args      system "make install"    end  end  | 
