aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/diffpdf.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula/diffpdf.rb')
-rw-r--r--Library/Formula/diffpdf.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/Library/Formula/diffpdf.rb b/Library/Formula/diffpdf.rb
index 235203d81..f4c72c8fc 100644
--- a/Library/Formula/diffpdf.rb
+++ b/Library/Formula/diffpdf.rb
@@ -19,7 +19,13 @@ class Diffpdf < Formula
# compilation does not fail.
system 'lrelease', 'diffpdf.pro'
# Generate makefile and disable .app creation
- system 'qmake -spec macx-g++ CONFIG-=app_bundle'
+ if MacOS.version >= :mavericks && ENV.compiler == :clang
+ spec = 'unsupported/macx-clang-libc++'
+ else
+ spec = 'macx-g++'
+ end
+
+ system 'qmake', '-spec', spec, 'CONFIG-=app_bundle'
system 'make'
bin.install 'diffpdf'