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