diff options
| author | Adam Vandenberg | 2014-03-01 23:25:32 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2014-03-01 23:25:32 -0800 |
| commit | ff8a7aa4d414277bfba47943baa4e456d34730c4 (patch) | |
| tree | 819c3bcc5b7df9f1d9730de4ed2eaa14ca5bb7bc /Library/Formula | |
| parent | 6d8d6f1c454f9117c0ecf39c7d809df6b542300e (diff) | |
| download | homebrew-ff8a7aa4d414277bfba47943baa4e456d34730c4.tar.bz2 | |
Move wkhtmltopdf to the boneyard
Closes #26813.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/wkhtmltopdf.rb | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/Library/Formula/wkhtmltopdf.rb b/Library/Formula/wkhtmltopdf.rb deleted file mode 100644 index 82a056d08..000000000 --- a/Library/Formula/wkhtmltopdf.rb +++ /dev/null @@ -1,44 +0,0 @@ -require 'formula' - -class Wkhtmltopdf < Formula - homepage 'http://code.google.com/p/wkhtmltopdf/' - url 'http://wkhtmltopdf.googlecode.com/files/wkhtmltopdf-0.11.0_rc1.tar.bz2' - sha1 'db03922d281856e503b3d562614e3936285728c7' - version '0.11.0_rc1' - - depends_on 'qt' - - def install - # fix that missing TEMP= include. - inreplace 'common.pri' do |s| - s.gsub! 'TEMP = $$[QT_INSTALL_LIBS] libQtGui.prl', '' - s.gsub! 'include($$join(TEMP, "/"))', '' - end - - # It tries to build universally, but Qt is bottled as 64bit => build error. - # If we are 64bit, do not compile with -arch i386. This is a Homebrew - # issue with our Qt4, not upstream, because wkhtmltopdf bundles a patched - # Qt4 that Homebrew doesn't use. - if MacOS.prefer_64_bit? - inreplace 'src/pdf/pdf.pro', 'x86', Hardware::CPU.arch_64_bit - inreplace 'src/image/image.pro', 'x86', Hardware::CPU.arch_64_bit - end - - 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` - `bin/wkhtmltoimage --manpage > wkhtmltoimage.1` - - # install binaries, libs, and man pages - bin.install Dir[ "bin/wkh*" ] - lib.install Dir[ "bin/lib*" ] - man1.install Dir[ "wkht*.1" ] - end -end |
