diff options
| author | ojab | 2015-02-25 17:04:52 +0800 |
|---|---|---|
| committer | Xu Cheng | 2015-02-25 17:32:47 +0800 |
| commit | 4de3899d414d83629ed3308e58d88e6ff77dc340 (patch) | |
| tree | 26615268d3f83ad81774831f7edeed81067b6d76 | |
| parent | 62ff66cb21a6937f47ab475c823bb087523081b0 (diff) | |
| download | homebrew-4de3899d414d83629ed3308e58d88e6ff77dc340.tar.bz2 | |
mupdf-tools 1.6 (new formula)
Closes #36602.
Closes #37179.
Signed-off-by: Xu Cheng <xucheng@me.com>
| -rw-r--r-- | Library/Formula/mupdf-tools.rb | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Library/Formula/mupdf-tools.rb b/Library/Formula/mupdf-tools.rb new file mode 100644 index 000000000..7eb8db6ca --- /dev/null +++ b/Library/Formula/mupdf-tools.rb @@ -0,0 +1,23 @@ +class MupdfTools < Formula + homepage "http://mupdf.com" + url "http://mupdf.com/downloads/mupdf-1.6-source.tar.gz" + sha1 "491d7a3b131589791c7df6dd8161c6bfe41ce74a" + head "git://git.ghostscript.com/mupdf.git" + + 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}/mudraw -t #{pdf} 2>/dev/null") + end +end |
