diff options
| author | Jack Nagel | 2014-06-01 12:01:06 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-06-01 12:01:23 -0500 |
| commit | ab8239a4e794d3214fe60030deb5d985f046595e (patch) | |
| tree | 2cde6f673dd6b64dac9a421656679ada4d8671ce /Library/Formula | |
| parent | 284f741b4a3ed8c6049e79376d0d833747497fa7 (diff) | |
| download | homebrew-ab8239a4e794d3214fe60030deb5d985f046595e.tar.bz2 | |
notmuch: vendor and statically link zlib 1.2.8
Closes #29497.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/notmuch.rb | 12 |
1 files changed, 12 insertions, 0 deletions
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 |
