homebrew-core/Formula/qpdf.rb

23 lines
491 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 'http://downloads.sourceforge.net/project/qpdf/qpdf/5.0.0/qpdf-5.0.0.tar.gz'
sha1 'b2d15a1499ed98430a6248d4d8960f43474b8948'
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