aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorCliff Rowley2013-11-20 02:03:44 +0000
committerMike McQuaid2013-11-20 15:33:21 +0000
commita355c67d8ef66fd209b64d60bd2fa0a29d3ebe98 (patch)
tree28a8639997d9087a61fa219b60de570dd40419ab /Library
parent5b3410b6d14bbb82eb8b31048fece1eaed2510bb (diff)
downloadhomebrew-a355c67d8ef66fd209b64d60bd2fa0a29d3ebe98.tar.bz2
wkhtmltopdf: link against libc++ on Mavericks
Closes #24532. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/wkhtmltopdf.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/Library/Formula/wkhtmltopdf.rb b/Library/Formula/wkhtmltopdf.rb
index f677137a1..82a056d08 100644
--- a/Library/Formula/wkhtmltopdf.rb
+++ b/Library/Formula/wkhtmltopdf.rb
@@ -24,7 +24,13 @@ class Wkhtmltopdf < Formula
inreplace 'src/image/image.pro', 'x86', Hardware::CPU.arch_64_bit
end
- system 'qmake', '-spec', 'macx-g++'
+ if MacOS.version >= :mavericks && ENV.compiler == :clang
+ spec = 'unsupported/macx-clang-libc++'
+ else
+ spec = 'macx-g++'
+ end
+
+ system 'qmake', '-spec', spec
system 'make'
ENV['DYLD_LIBRARY_PATH'] = './bin'
`bin/wkhtmltopdf --manpage > wkhtmltopdf.1`