diff options
| author | Charlie Sharpsteen | 2012-04-17 11:38:24 -0700 |
|---|---|---|
| committer | Charlie Sharpsteen | 2012-04-17 11:38:24 -0700 |
| commit | 0f881f1ffd5c5b82907e27fa491ffaabbf5abc9c (patch) | |
| tree | c0537f4ac85f032998cd4cdfb1932c7e33a54c9f /Library | |
| parent | 75f78b2ccde346b7891d1bc3bfe3c8e9d916c90c (diff) | |
| download | homebrew-0f881f1ffd5c5b82907e27fa491ffaabbf5abc9c.tar.bz2 | |
MuPDF: Add caveats and 10.6+ Requirement
The incompatibility with Leopard is now expressed as a requirement. Caveats
added explaining that the names of the command line tools have been altered to
prevent clashes with other packages.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/mupdf.rb | 32 |
1 files changed, 23 insertions, 9 deletions
diff --git a/Library/Formula/mupdf.rb b/Library/Formula/mupdf.rb index 04981736d..50aa3c102 100644 --- a/Library/Formula/mupdf.rb +++ b/Library/Formula/mupdf.rb @@ -1,10 +1,27 @@ require 'formula' +class NeedsSnowLeopard < Requirement + def satisfied? + MACOS_VERSION >= 10.6 + end + + def message; <<-EOS.undent + The version of Freetype that comes with Leopard is too old to build MuPDF + against. It is possible to get MuPDF working on Leopard using the Freetype + formula from Homebrew-Dupes and some tweaks to the Makefile. + + Doing so is left as an exercise for the reader. + EOS + end +end + class Mupdf < Formula homepage 'http://mupdf.com' url 'http://mupdf.googlecode.com/files/mupdf-0.9-source.tar.gz' md5 '76640ee16a797a27fe49cc0eaa87ce3a' + depends_on NeedsSnowLeopard.new + depends_on 'jpeg' depends_on 'openjpeg' depends_on 'jbig2dec' @@ -15,15 +32,6 @@ class Mupdf < Formula end def install - if MacOS.leopard? - raise <<-EOS.undent - The version of Freetype that comes with Leopard is too old to build - MuPDF against. It is possible to get MuPDF working on Leopard using the - Freetype formula from Homebrew-Alt and some tweaks to the Makefile. - This is left as an exercise for the reader. - EOS - end - ENV.x11 # For LibPNG and Freetype system "make install prefix=#{prefix}" @@ -34,6 +42,12 @@ class Mupdf < Formula mv bin + p, bin + ('mu' + p.basename.to_s) end end + + def caveats; <<-EOS.undent + All MuPDF command line tools have been prefixed with `mu` to prevent name + clashes with other PDF packages. + EOS + end end __END__ |
