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