Skip to content

Instantly share code, notes, and snippets.

@nicholasklick
Forked from Echos/pdftk.rb
Created August 22, 2013 16:37
Show Gist options
  • Save nicholasklick/6309662 to your computer and use it in GitHub Desktop.
Save nicholasklick/6309662 to your computer and use it in GitHub Desktop.
require 'formula'
class Pdftk < Formula
url 'http://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/pdftk-1.44-src.zip'
homepage 'http://www.pdflabs.com/'
md5 '9eb50fffcd621a627d387750c60982b4'
depends_on 'gcc' # with "--enable-java" option , required "Homebrew-alt" .
# via : https://github.com/adamv/homebrew-alt/
def install
cd "pdftk" do
system "make -f Makefile.OSX-10.6 TOOLPATH=/usr/local/bin/ VERSUFF=-4.6"
system "make -f Makefile.OSX-10.6 install TOOLPATH=/usr/local/bin/ VERSUFF=-4.6"
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment