blob: 2616831bfcda7e7277b2eb615bb86b919f690253 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
require 'formula'
class Yara < Formula
homepage 'http://code.google.com/p/yara-project/'
url 'https://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
ENV.append 'LDFLAGS', "-L#{Formula["pcre"].opt_lib} -lpcre"
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make install"
end
end
|