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/'
|
2012-04-23 14:31:39 +00:00
|
|
|
url 'http://yara-project.googlecode.com/files/yara-1.6.tar.gz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 'd51fe954992a5de8ebab91b5f53d31a8e7e76503'
|
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
|
|
|
|
ENV.append 'LDFLAGS', "-L#{HOMEBREW_PREFIX}/lib"
|
|
|
|
|
|
|
|
system "./configure", "--disable-debug",
|
|
|
|
"--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
2010-07-26 18:37:46 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|