homebrew-core/Formula/clamav.rb

32 lines
1,005 B
Ruby
Raw Normal View History

require "formula"
2011-03-10 05:11:03 +00:00
class Clamav < Formula
homepage "http://www.clamav.net/"
2014-06-25 03:37:04 +00:00
head "https://github.com/vrtadmin/clamav-devel"
url "https://downloads.sourceforge.net/clamav/clamav-0.98.4.tar.gz"
sha1 "f1003d04f34efb0aede05395d3c7cc22c944e4ef"
bottle do
2014-09-29 01:46:17 +00:00
revision 1
sha1 "3cec3e85844d54a629a735a4cd035475af1a62b4" => :mavericks
sha1 "2f7e1f591e956369eae6446e4a5aeb4ee79940e4" => :mountain_lion
sha1 "07e9159ecbf0aa90dd56a7ee9d728b7bb77d5b6b" => :lion
end
depends_on "openssl"
2014-07-20 21:39:43 +00:00
skip_clean "share/clamav"
def install
(share/"clamav").mkpath
2014-05-20 04:53:12 +00:00
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--libdir=#{lib}",
"--sysconfdir=#{etc}",
"--disable-zlib-vcheck",
"--with-zlib=#{MacOS.sdk_path}/usr",
"--with-openssl=#{Formula["openssl"].opt_prefix}"
system "make", "install"
end
end