From 105bb8cbc5396c1a66efb684d0780c628019ffd8 Mon Sep 17 00:00:00 2001 From: Dominyk Tiller Date: Sun, 4 Feb 2018 03:21:33 +0000 Subject: [PATCH] clamav: fix installation when CLT isn't installed (#23647) Also update head url. Fixes https://github.com/Homebrew/homebrew-core/issues/23509. --- Formula/clamav.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Formula/clamav.rb b/Formula/clamav.rb index 15f595ff50..1a3116badb 100644 --- a/Formula/clamav.rb +++ b/Formula/clamav.rb @@ -11,7 +11,7 @@ class Clamav < Formula end head do - url "https://github.com/vrtadmin/clamav-devel.git" + url "https://github.com/Cisco-Talos/clamav-devel.git" depends_on "automake" => :build depends_on "autoconf" => :build @@ -42,6 +42,7 @@ class Clamav < Formula args << "--with-pcre=#{Formula["pcre"].opt_prefix}" if build.with? "pcre" args << "--disable-yara" if build.without? "yara" args << "--without-pcre" if build.without? "pcre" + args << "--with-zlib=#{MacOS.sdk_path}/usr" unless MacOS::CLT.installed? pkgshare.mkpath system "autoreconf", "-fvi" if build.head?