aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/yara.rb30
1 files changed, 16 insertions, 14 deletions
diff --git a/Library/Formula/yara.rb b/Library/Formula/yara.rb
index 2a6853ffd..66b7af6e6 100644
--- a/Library/Formula/yara.rb
+++ b/Library/Formula/yara.rb
@@ -1,27 +1,29 @@
-require 'formula'
+require "formula"
class Yara < Formula
- homepage 'https://github.com/plusvic/yara/'
- url 'https://github.com/plusvic/yara/archive/v3.0.0.tar.gz'
- sha1 '43e7e0df03043cab1ab8299ef7ebee4d2c5d39dc'
+ homepage "https://github.com/plusvic/yara/"
+ url "https://github.com/plusvic/yara/archive/v3.2.0.tar.gz"
+ sha1 "dd1a92b1469cd629f6cd368aec32f207375b125b"
+ head "https://github.com/plusvic/yara.git"
- depends_on 'pcre'
- depends_on 'libtool' => :build
- depends_on 'autoconf' => :build
- depends_on 'automake' => :build
+ depends_on "libtool" => :build
+ depends_on "autoconf" => :build
+ depends_on "automake" => :build
+ depends_on "pcre"
+ depends_on "openssl"
def install
- # Use of 'inline' requires gnu89 semantics
- ENV.append 'CFLAGS', '-std=gnu89' if ENV.compiler == :clang
+ # 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"
+ # find Homebrew"s libpcre
+ ENV.append "LDFLAGS", "-L#{Formula["pcre"].opt_lib} -lpcre"
system "./bootstrap.sh"
- system "./configure", "--disable-debug",
+ system "./configure", "--disable-silent-rules",
"--disable-dependency-tracking",
"--prefix=#{prefix}"
- system "make install"
+ system "make", "install"
end
test do