homebrew-core/Formula/clamav.rb
2013-04-24 14:30:30 -05:00

23 lines
587 B
Ruby

require 'formula'
class Clamav < Formula
homepage 'http://www.clamav.net/'
url 'http://downloads.sourceforge.net/clamav/clamav-0.97.8.tar.gz'
sha1 '078c0ac2b4e69d27eecd7544a8361abcd859e73c'
skip_clean 'share'
def install
(share/'clamav').mkpath
args = %W{--disable-dependency-tracking
--prefix=#{prefix}
--disable-zlib-vcheck
--libdir=#{lib}
--sysconfdir=#{etc}}
args << "--with-zlib=#{MacOS.sdk_path}/usr" unless MacOS::CLT.installed?
system "./configure", *args
system "make install"
end
end