From 64758dd7029b2234e67a7e0416406dc7a0600f24 Mon Sep 17 00:00:00 2001 From: Gianfranco Costamagna Date: Thu, 24 Apr 2014 11:28:45 +0200 Subject: [PATCH] ettercap: make ghostscript optional. Fixes Homebrew/homebrew#28660. Closes Homebrew/homebrew#28661. Signed-off-by: Mike McQuaid --- Formula/ettercap.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Formula/ettercap.rb b/Formula/ettercap.rb index 67e36acf89..de5f38d8ba 100644 --- a/Formula/ettercap.rb +++ b/Formula/ettercap.rb @@ -30,7 +30,7 @@ class Ettercap < Formula option "with-ipv6", "Install with IPv6 support" depends_on 'cmake' => :build - depends_on 'ghostscript' => :build + depends_on 'ghostscript' => [:build, :optional] depends_on 'pcre' depends_on 'libnet' depends_on 'curl' # require libcurl >= 7.26.0 @@ -47,6 +47,7 @@ class Ettercap < Formula args << "-DENABLE_CURSES=OFF" if build.without? "curses" args << "-DENABLE_PLUGINS=OFF" if build.without? "plugins" args << "-DENABLE_IPV6=ON" if build.with? "ipv6" + args << "-DENABLE_PDF_DOCS=ON" if build.with? "ghostscript" args << "-DENABLE_GTK=OFF" if build.without? "gtk+" args << "-DENABLE_LUA=ON" if build.with? "luajit" args << ".."