diff options
| author | Charlie Sharpsteen | 2011-05-04 13:25:00 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2011-08-13 11:48:10 -0700 |
| commit | d0c379d39c22119eec993059eb891fb3975184ab (patch) | |
| tree | f4b22d273474781bdfe5ab32bd29330e9dcf25b3 | |
| parent | 86c5ddb3d9aa9629bed83d57f6c89b17d97a12c4 (diff) | |
| download | homebrew-d0c379d39c22119eec993059eb891fb3975184ab.tar.bz2 | |
diffpdf 1.2.2
DiffPDF is a handy tool that can show visual and textual differences between
two PDF files. It uses Poppler to access PDF files and Qt for a GUI.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
| -rw-r--r-- | Library/Formula/diffpdf.rb | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/Library/Formula/diffpdf.rb b/Library/Formula/diffpdf.rb new file mode 100644 index 000000000..1a1b19168 --- /dev/null +++ b/Library/Formula/diffpdf.rb @@ -0,0 +1,34 @@ +require 'formula' + +def poppler_has_qt4? + poppler = Formula.factory('poppler') + not Dir[poppler.include + '**/*qt4.h'].empty? +end + +class Diffpdf < Formula + homepage 'http://www.qtrac.eu/diffpdf.html' + url 'http://www.qtrac.eu/diffpdf-1.2.2.tar.gz' + md5 '1c35151d9216e2225aa921e1faef91ca' + + depends_on 'qt' + depends_on 'poppler' + + def install + if poppler_has_qt4? + # Generate makefile and disable .app creation + system 'qmake -spec macx-g++ CONFIG-=app_bundle' + system 'make' + + bin.install 'diffpdf' + man1.install 'diffpdf.1' + else + onoe <<-EOS.undent + Could not locate header files for poppler-qt4. This probably means that Poppler + was not installed with support for Qt. Try reinstalling Poppler using the + `--with-qt4` option. + EOS + + exit 1 + end + end +end |
