blob: 3fbb402883f0fc88b2636166ab2f22b9586c9e15 (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
 | require 'formula'
class Qpdf < Formula
  url 'http://downloads.sourceforge.net/project/qpdf/qpdf/2.3.1/qpdf-2.3.1.tar.gz'
  homepage 'http://qpdf.sourceforge.net/'
  md5 '3d7fdbf3eccf94a3afa6454cf2732f76'
  depends_on 'pcre'
  def patches
    # Fix call to depreciated PCRE function. Can probably be removed on next
    # release. Upstream issue:
    #   http://sourceforge.net/tracker/?func=detail&aid=3489349&group_id=224196&atid=1060899
    'http://sourceforge.net/tracker/download.php?group_id=224196&atid=1060899&file_id=436172&aid=3489349'
  end
  def install
    # find Homebrew's libpcre
    ENV.append 'LDFLAGS', "-L#{HOMEBREW_PREFIX}/lib"
    system "./configure", "--prefix=#{prefix}"
    system "make"
    system "make install"
  end
end
 |