diff options
| author | Adam Vandenberg | 2012-02-12 22:17:17 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2012-02-12 22:17:17 -0800 |
| commit | 0b48e79b6e767c76ada1de43aab1aa79b36d6954 (patch) | |
| tree | b0133adf765c3c4912de24b654946c60ce71f8de /Library/Formula | |
| parent | abf4ea80637c48ffd12a8442da9a64c5c7680d27 (diff) | |
| download | homebrew-0b48e79b6e767c76ada1de43aab1aa79b36d6954.tar.bz2 | |
diffpdf: style update
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/diffpdf.rb | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/Library/Formula/diffpdf.rb b/Library/Formula/diffpdf.rb index 98eba8fe1..a76260b1d 100644 --- a/Library/Formula/diffpdf.rb +++ b/Library/Formula/diffpdf.rb @@ -13,36 +13,33 @@ class Diffpdf < Formula depends_on 'qt' depends_on 'poppler' + # The location of Poppler library/include paths is hardcoded in the project file + # which causes builds to fail if Homebrew is not installed to /usr/local. def patches - # Fix library and header search paths. DATA end 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 + unless poppler_has_qt4? 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 + + # Generate makefile and disable .app creation + system 'qmake -spec macx-g++ CONFIG-=app_bundle' + system 'make' + + bin.install 'diffpdf' + man1.install 'diffpdf.1' end end __END__ -The location of Poppler library/include paths is hardcoded in the project file -which causes builds to fail if Homebrew is not installed to /usr/local. - diff --git a/diffpdf.pro b/diffpdf.pro index 1566ed7..7d37a3d 100644 --- a/diffpdf.pro |
