homebrew-core/Formula/yara.rb

24 lines
658 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Yara < Formula
homepage 'http://code.google.com/p/yara-project/'
url 'http://yara-project.googlecode.com/files/yara-1.7.tar.gz'
sha1 '25e90b79275124db3e592ccac1d44a9bba35d7ea'
depends_on 'pcre'
def install
# Use of 'inline' requires gnu89 semantics
ENV.append 'CFLAGS', '-std=gnu89' if ENV.compiler == :clang
# find Homebrew's libpcre
2013-04-04 22:22:26 +00:00
ENV.append 'LDFLAGS',
"-L#{Formula.factory('pcre').opt_prefix}/lib -lpcre"
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make install"
end
end