homebrew-core/Formula/qpdf.rb

23 lines
496 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Qpdf < Formula
homepage 'http://qpdf.sourceforge.net/'
url 'https://downloads.sourceforge.net/project/qpdf/qpdf/5.1.1/qpdf-5.1.1.tar.gz'
sha1 'e407a73bbaf6b1681e0952342e6d66a7746045c3'
depends_on 'pcre'
def install
# find Homebrew's libpcre
2014-03-06 05:28:31 +00:00
ENV.append 'LDFLAGS', "-L#{Formula["pcre"].opt_lib}"
system "./configure", "--prefix=#{prefix}"
system "make"
system "make install"
end
test do
system "#{bin}/qpdf", "--version"
end
end