Skip to content

Instantly share code, notes, and snippets.

@jucor
Forked from Echos/pdftk.rb
Created January 2, 2013 12:03
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 jucor/4434091 to your computer and use it in GitHub Desktop.
Save jucor/4434091 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