From 522c5517e75a9ee50aa30a51722677bc67cd7495 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Wed, 26 Feb 2014 19:36:54 -0800 Subject: lldpd: use Formula[] --- Library/Formula/lldpd.rb | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/lldpd.rb b/Library/Formula/lldpd.rb index e0286b51d..ef3805ce6 100644 --- a/Library/Formula/lldpd.rb +++ b/Library/Formula/lldpd.rb @@ -1,4 +1,4 @@ -require 'formula' +Lrequire 'formula' class Lldpd < Formula homepage 'http://vincentbernat.github.io/lldpd/' @@ -15,16 +15,16 @@ class Lldpd < Formula depends_on 'jansson' if build.include? 'with-json' def install - readline = Formula.factory 'readline' - args = [ "--prefix=#{prefix}", - "--with-xml", - "--with-readline", - "--with-privsep-chroot=/var/empty", - "--with-privsep-user=nobody", - "--with-privsep-group=nogroup", - "--with-launchddaemonsdir=no", - "CPPFLAGS=-I#{readline.include} -DRONLY=1", - "LDFLAGS=-L#{readline.lib}" ] + readline = Formula["readline"] + args = ["--prefix=#{prefix}", + "--with-xml", + "--with-readline", + "--with-privsep-chroot=/var/empty", + "--with-privsep-user=nobody", + "--with-privsep-group=nogroup", + "--with-launchddaemonsdir=no", + "CPPFLAGS=-I#{readline.include} -DRONLY=1", + "LDFLAGS=-L#{readline.lib}"] args << "--with-snmp" if build.include? 'with-snmp' args << "--with-json" if build.include? 'with-json' -- cgit v1.2.3