Skip to content

Commit

Permalink
mupdf 1.11
Browse files Browse the repository at this point in the history
  • Loading branch information
fxcoudert committed May 2, 2017
1 parent ac194bb commit dd67b60
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions Formula/mupdf.rb
@@ -1,8 +1,9 @@
class Mupdf < Formula
desc "Lightweight PDF and XPS viewer"
homepage "https://mupdf.com"
url "https://mupdf.com/downloads/mupdf-1.10a-source.tar.gz"
sha256 "aacc1f36b9180f562022ef1ab3439b009369d944364f3cff8a2a898834e3a836"
homepage "https://mupdf.com/"
url "https://mupdf.com/downloads/mupdf-1.11-source.tar.gz"
sha256 "209474a80c56a035ce3f4958a63373a96fad75c927c7b1acdc553fc85855f00a"
head "https://git.ghostscript.com/mupdf.git"

bottle do
cellar :any_skip_relocation
Expand All @@ -19,16 +20,19 @@ class Mupdf < Formula
:because => "mupdf and mupdf-tools install the same binaries."

def install
# Work around bug: https://bugs.ghostscript.com/show_bug.cgi?id=697842
inreplace "Makerules", "RANLIB_CMD := xcrun", "RANLIB_CMD = xcrun"

system "make", "install",
"build=release",
"verbose=yes",
"CC=#{ENV.cc}",
"prefix=#{prefix}"
"prefix=#{prefix}",
"HAVE_GLFW=no" # Do not build OpenGL viewer: https://bugs.ghostscript.com/show_bug.cgi?id=697842
bin.install_symlink "mutool" => "mudraw"
end

test do
pdf = test_fixtures("test.pdf")
assert_match /Homebrew test/, shell_output("#{bin}/mudraw -F txt #{pdf}")
assert_match "Homebrew test", shell_output("#{bin}/mudraw -F txt #{test_fixtures("test.pdf")}")
end
end

0 comments on commit dd67b60

Please sign in to comment.