2009-10-29 21:02:58 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Qpdf < Formula
|
2009-10-29 21:02:58 +00:00
|
|
|
homepage 'http://qpdf.sourceforge.net/'
|
2014-02-27 14:19:55 +00:00
|
|
|
url 'https://downloads.sourceforge.net/project/qpdf/qpdf/5.1.1/qpdf-5.1.1.tar.gz'
|
2014-01-16 06:52:04 +00:00
|
|
|
sha1 'e407a73bbaf6b1681e0952342e6d66a7746045c3'
|
2009-10-29 21:02:58 +00:00
|
|
|
|
|
|
|
depends_on 'pcre'
|
|
|
|
|
|
|
|
def install
|
2012-02-24 22:51:33 +00:00
|
|
|
# find Homebrew's libpcre
|
2014-03-06 05:28:31 +00:00
|
|
|
ENV.append 'LDFLAGS', "-L#{Formula["pcre"].opt_lib}"
|
2012-02-24 22:51:33 +00:00
|
|
|
|
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
|
2013-07-13 12:49:50 +00:00
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/qpdf", "--version"
|
|
|
|
end
|
2010-07-10 17:20:07 +00:00
|
|
|
end
|