homebrew-core/Formula/qpdf.rb
2013-10-20 21:04:13 -07:00

22 lines
491 B
Ruby

require 'formula'
class Qpdf < Formula
homepage 'http://qpdf.sourceforge.net/'
url 'http://downloads.sourceforge.net/project/qpdf/qpdf/5.0.1/qpdf-5.0.1.tar.gz'
sha1 '41a4bd91bfbc2d3585ea229b53bfd1183186b1b3'
depends_on 'pcre'
def install
# find Homebrew's libpcre
ENV.append 'LDFLAGS', "-L#{HOMEBREW_PREFIX}/lib"
system "./configure", "--prefix=#{prefix}"
system "make"
system "make install"
end
test do
system "#{bin}/qpdf", "--version"
end
end