From edf5dc16086edcb64eb68b98f642feb9597332d1 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Tue, 4 Dec 2018 08:19:26 +0100 Subject: [PATCH] osx: sync HomeBrew formula --- osx/lldpd.rb | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/osx/lldpd.rb b/osx/lldpd.rb index 011b8828..42e81833 100644 --- a/osx/lldpd.rb +++ b/osx/lldpd.rb @@ -7,22 +7,22 @@ class Lldpd < Formula option "with-snmp", "Build SNMP subagent support" depends_on "pkg-config" => :build - depends_on "readline" depends_on "libevent" depends_on "net-snmp" if build.with? "snmp" + depends_on "readline" def install readline = Formula["readline"] - args = [ - "--prefix=#{prefix}", - "--sysconfdir=#{etc}", - "--localstatedir=#{var}", - "--with-xml", - "--with-readline", - "--with-privsep-chroot=/var/empty", - "--with-launchddaemonsdir=no", - "CPPFLAGS=-I#{readline.include} -DRONLY=1", - "LDFLAGS=-L#{readline.lib}", + args = %W[ + --prefix=#{prefix} + --sysconfdir=#{etc} + --localstatedir=#{var} + --with-launchddaemonsdir=no + --with-privsep-chroot=/var/empty + --with-readline + --with-xml + CPPFLAGS=-I#{readline.include}\ -DRONLY=1 + LDFLAGS=-L#{readline.lib} ] args << (build.with?("snmp") ? "--with-snmp" : "--without-snmp") -- 2.39.5