33 lines
1000 B
Ruby
33 lines
1000 B
Ruby
class MupdfTools < Formula
|
|
desc "Lightweight PDF and XPS viewer"
|
|
homepage "http://mupdf.com"
|
|
url "http://mupdf.com/downloads/archive/mupdf-1.8-source.tar.gz"
|
|
sha256 "a2a3c64d8b24920f87cf4ea9339a25abf7388496440f13b37482d1403c33c206"
|
|
head "git://git.ghostscript.com/mupdf.git"
|
|
|
|
bottle do
|
|
cellar :any
|
|
revision 1
|
|
sha256 "7ef90b7f58164276f38a6fa90324b352960c41bfc19b57b883386add52cf0148" => :el_capitan
|
|
sha256 "2d94022c4922f42bdc64576f5893750c5ee2e0c8c545f305d4a4ac5634073ed0" => :yosemite
|
|
sha256 "d442f5e49898025714b9664ea70304ca433ca07589e360c528915efc81298f34" => :mavericks
|
|
end
|
|
|
|
depends_on :macos => :snow_leopard
|
|
depends_on "openssl"
|
|
|
|
def install
|
|
system "make", "install",
|
|
"build=release",
|
|
"verbose=yes",
|
|
"HAVE_X11=no",
|
|
"CC=#{ENV.cc}",
|
|
"prefix=#{prefix}"
|
|
end
|
|
|
|
test do
|
|
pdf = test_fixtures("test.pdf")
|
|
assert_match /Homebrew test/, shell_output("#{bin}/mutool draw -F txt #{pdf}")
|
|
end
|
|
end
|