Skip to content

Commit

Permalink
yara 3.2.0
Browse files Browse the repository at this point in the history
Closes Homebrew/legacy-homebrew#34409. Closes Homebrew/legacy-homebrew#34509.

Signed-off-by: Tim D. Smith <git@tim-smith.us>
  • Loading branch information
DomT4 authored and tdsmith committed Nov 28, 2014
1 parent 7ac9276 commit 9e421ac
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions Formula/yara.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 9e421ac

Please sign in to comment.