aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorNeel Goyal2014-04-01 11:45:36 -0400
committerMike McQuaid2014-04-02 23:13:33 +0100
commitfcec9b551d4103313855fe1f391d4c3d67a9ebbb (patch)
tree7b325caaa9e152e1e004929bfd36233a0009a036 /Library/Formula
parent5ea0330843728c2095120038b5959a4efe8fac19 (diff)
downloadhomebrew-fcec9b551d4103313855fe1f391d4c3d67a9ebbb.tar.bz2
getdns: fix optional dependencies.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/getdns.rb13
1 files changed, 8 insertions, 5 deletions
diff --git a/Library/Formula/getdns.rb b/Library/Formula/getdns.rb
index 8a410483b..1644c4e45 100644
--- a/Library/Formula/getdns.rb
+++ b/Library/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