02def32b00
Closes Homebrew/homebrew#11830. [jn: use -std=gnu89 instead of fails_with] Signed-off-by: Jack Nagel <jacknagel@gmail.com>
22 lines
617 B
Ruby
22 lines
617 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'
|
|
md5 'c54fe284181df90e0520810797821287'
|
|
|
|
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
|