haproxy: remove options

This commit is contained in:
FX Coudert 2019-01-13 18:56:31 +01:00
parent d39de675b0
commit 2c513d8711

View file

@ -13,7 +13,6 @@ class Haproxy < Formula
depends_on "openssl"
depends_on "pcre"
depends_on "lua" => :optional
def install
args = %w[
@ -27,14 +26,6 @@ class Haproxy < Formula
ADDLIB=-lcrypto
]
if build.with?("lua")
lua = Formula["lua"]
args << "USE_LUA=1"
args << "LUA_LIB=#{lua.opt_lib}"
args << "LUA_INC=#{lua.opt_include}/lua"
args << "LUA_LD_FLAGS=-L#{lua.opt_lib}"
end
# We build generic since the Makefile.osx doesn't appear to work
system "make", "CC=#{ENV.cc}", "CFLAGS=#{ENV.cflags}", "LDFLAGS=#{ENV.ldflags}", *args
man1.install "doc/haproxy.1"