Skip to content

Instantly share code, notes, and snippets.

@sj26
Created July 16, 2015 13:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sj26/4fbfedc614b4e8859683 to your computer and use it in GitHub Desktop.
Save sj26/4fbfedc614b4e8859683 to your computer and use it in GitHub Desktop.
require 'formula'
class Wkhtmltopdf < Formula
homepage 'http://wkhtmltopdf.org/'
url 'http://download.gna.org/wkhtmltopdf/0.12/0.12.2/wkhtmltox-0.12.2_osx-cocoa-x86-64.pkg'
version '0.12.2'
def install
`cat Payload | gzip -d - | cpio -id`
`tar -xvf usr/local/share/wkhtmltox-installer/app.tar.xz`
bin.install Dir[ "bin/*" ]
lib.install Dir[ "lib/*" ]
man.install Dir[ "share/man/*" ]
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment