Skip to content

Instantly share code, notes, and snippets.

@dch
Forked from mrflip/kindlegen.rb
Created November 13, 2012 08:25
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save dch/4064648 to your computer and use it in GitHub Desktop.
Save dch/4064648 to your computer and use it in GitHub Desktop.
Updated kindlegen recipe for homebrew
require 'formula'
class Kindlegen < Formula
url 'http://s3.amazonaws.com/kindlegen/KindleGen_Mac_i386_v2_7.zip'
homepage 'http://www.amazon.com/gp/feature.html?docId=1000234621'
md5 'b041f83c720ff7b9181e576c0a82140c'
version '2.7'
skip_clean 'bin'
def install
bin.install Dir['kindlegen']
end
def test
system "kindlegen"
end
def caveats; <<-EOS
We agreed to the KindleGen License Agreement for you by downloading KindleGen.
If this is unacceptable you should uninstall.
License information at:
http://www.amazon.com/gp/feature.html?ie=UTF8&docId=1000234621
EOS
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment