homebrew-core/Formula/yara.rb
2012-09-03 11:36:42 -07:00

22 lines
626 B
Ruby

require 'formula'
class Yara < Formula
homepage 'http://code.google.com/p/yara-project/'
url 'http://yara-project.googlecode.com/files/yara-1.6.tar.gz'
sha1 'd51fe954992a5de8ebab91b5f53d31a8e7e76503'
depends_on 'pcre'
def install
# Use of 'inline' requires gnu89 semantics
ENV.append 'CFLAGS', '-std=gnu89' if ENV.compiler == :clang
# find Homebrew's libpcre
ENV.append 'LDFLAGS', "-L#{HOMEBREW_PREFIX}/lib"
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make install"
end
end