homebrew-core/Formula/pdftoedn.rb
2016-12-17 15:19:38 +01:00

37 lines
1.1 KiB
Ruby

class Pdftoedn < Formula
desc "Extract PDF document data and save the output in EDN format"
homepage "https://github.com/edporras/pdftoedn"
url "https://github.com/edporras/pdftoedn/archive/v0.34.1.tar.gz"
sha256 "d00ed04a4f58cc1163cc581cf738e53d872ea59f9e5f94fa9cc61ef59b8d9c13"
revision 4
bottle do
cellar :any
sha256 "08403abd88213e64236ef60102a7a04423bd56c542f45b275a4f9ac85f20e94d" => :sierra
sha256 "cbe0eefcea8d71ede7b41d44535ca4ed06f50e0b42e4d43f6c3a6b62f9746d65" => :el_capitan
sha256 "282eea56a7ba09207e2b02cde3970e212e66131601c0a401230039a1d0e403ff" => :yosemite
end
depends_on "automake" => :build
depends_on "autoconf" => :build
depends_on "freetype"
depends_on "libpng"
depends_on "poppler"
depends_on "boost"
depends_on "leptonica"
depends_on "openssl"
depends_on "rapidjson"
def install
ENV.cxx11
system "autoreconf", "-i"
system "./configure", "--with-openssl=#{Formula["openssl"].opt_prefix}", "--prefix=#{prefix}"
system "make"
system "make", "install"
end
test do
system "#{bin}/pdftoedn", "-o", "test.edn", test_fixtures("test.pdf")
end
end