From ab8239a4e794d3214fe60030deb5d985f046595e Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sun, 1 Jun 2014 12:01:06 -0500 Subject: notmuch: vendor and statically link zlib 1.2.8 Closes #29497. --- Library/Formula/notmuch.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'Library') diff --git a/Library/Formula/notmuch.rb b/Library/Formula/notmuch.rb index e8fec86e7..433e45641 100644 --- a/Library/Formula/notmuch.rb +++ b/Library/Formula/notmuch.rb @@ -11,7 +11,19 @@ class Notmuch < Formula depends_on "talloc" depends_on "gmime" + # Requires zlib >= 1.2.5.2 + resource "zlib" do + url "http://zlib.net/zlib-1.2.8.tar.gz" + sha1 "a4d316c404ff54ca545ea71a27af7dbc29817088" + end + def install + resource("zlib").stage do + system "./configure", "--prefix=#{buildpath}/zlib", "--static" + system "make", "install" + ENV.append_path "PKG_CONFIG_PATH", "#{buildpath}/zlib/lib/pkgconfig" + end + args = ["--prefix=#{prefix}"] if build.with? "emacs" ENV.deparallelize # Emacs and parallel builds aren't friends -- cgit v1.2.3