From 3a0ef586a49a76117c307d5b2f91227d251f1595 Mon Sep 17 00:00:00 2001 From: Neel Goyal Date: Tue, 1 Apr 2014 11:45:36 -0400 Subject: [PATCH] getdns: fix optional dependencies. --- Formula/getdns.rb | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/Formula/getdns.rb b/Formula/getdns.rb index 8a410483b49..1644c4e45ed 100644 --- a/Formula/getdns.rb +++ b/Formula/getdns.rb @@ -14,14 +14,17 @@ class Getdns < Formula depends_on "ldns" depends_on "unbound" depends_on "libidn" - depends_on "libevent" + depends_on "libevent" => :optional depends_on "libuv" => :optional + depends_on "libev" => :optional def install - system "./configure", "--disable-debug", - "--disable-dependency-tracking", - "--disable-silent-rules", - "--prefix=#{prefix}" + args = [] + args << "--with-libevent" if build.with? "libevent" + args << "--with-libev" if build.with? "libev" + args << "--with-libuv" if build.with? "libuv" + + system "./configure", "--prefix=#{prefix}", *args system "make", "install" end