homebrew-core/Formula/clamav.rb

26 lines
642 B
Ruby
Raw Normal View History

require "formula"
2011-03-10 05:11:03 +00:00
class Clamav < Formula
homepage "http://www.clamav.net/"
url "https://downloads.sourceforge.net/clamav/clamav-0.98.3.tar.gz"
sha1 "32f0a0675f8023b20e1d19fe8592e330674d0551"
head "https://github.com/vrtadmin/clamav-devel"
skip_clean "share"
def install
(share/"clamav").mkpath
2012-08-31 19:24:38 +00:00
args = %W{--disable-dependency-tracking
--prefix=#{prefix}
--disable-zlib-vcheck
--libdir=#{lib}
--sysconfdir=#{etc}}
2012-08-31 19:24:38 +00:00
args << "--with-zlib=#{MacOS.sdk_path}/usr" unless MacOS::CLT.installed?
system "./configure", *args
system "make", "install"
end
end