2009-10-29 21:02:58 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Qpdf < Formula
|
2012-05-04 18:42:42 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/qpdf/qpdf/2.3.1/qpdf-2.3.1.tar.gz'
|
2009-10-29 21:02:58 +00:00
|
|
|
homepage 'http://qpdf.sourceforge.net/'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '043cceeb74a702d4e6a6a83b0211d99f28383655'
|
2009-10-29 21:02:58 +00:00
|
|
|
|
|
|
|
depends_on 'pcre'
|
|
|
|
|
2012-05-04 18:42:42 +00:00
|
|
|
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
|
|
|
|
|
2009-10-29 21:02:58 +00:00
|
|
|
def install
|
2012-02-24 22:51:33 +00:00
|
|
|
# find Homebrew's libpcre
|
|
|
|
ENV.append 'LDFLAGS', "-L#{HOMEBREW_PREFIX}/lib"
|
|
|
|
|
2010-07-10 17:20:07 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}"
|
2009-10-29 21:02:58 +00:00
|
|
|
system "make"
|
|
|
|
system "make install"
|
|
|
|
end
|
2010-07-10 17:20:07 +00:00
|
|
|
end
|