mxcl/homebrew — pull request #16830 by kfix (2013-01-01 23:11:04+00:00)
Title: Add a '--with-djvu' option to the Ghostscript formula to build external DjVU format drivers

tldr:
DjVU is a format for compressed scans of text documents and any included images. It achieves better compression and faster rendering than PDF versions of the same content.
DjVULibre, a free implementation for reading and writing djvu files, installs the conversion script 'djvudigital' which utilizes Ghostscript and the external 'gsdjvu' drivers to convert
PDFs and other common scanned products into DjVU. The gsdjvu drivers were released under a FOSS license that is incompatible with Ghostscript and therefore cannot be distributed with
as part of the Ghostscript source code or binaries. gsdjvu's own installation script is clunky, it is much nicer for the user if the ghostscript formula is patched to build gsdjvu.

Tested on Mountain Lion. I did some conversions of scanner created PDFs and of digitally created PDFs, no issues.