homebrew-core/Formula/convertlit.rb
BrewTestBot 95884bae22 Formula files style updates.
Closes Homebrew/homebrew#42407.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-03 14:21:42 +01:00

20 lines
622 B
Ruby

class Convertlit < Formula
desc "Convert Microsoft Reader format eBooks into open format"
homepage "http://www.convertlit.com/"
url "http://www.convertlit.com/clit18src.zip"
sha256 "d70a85f5b945104340d56f48ec17bcf544e3bb3c35b1b3d58d230be699e557ba"
version "1.8"
depends_on "libtommath"
def install
inreplace "clit18/Makefile" do |s|
s.gsub! "-I ../libtommath-0.30", "#{HOMEBREW_PREFIX}/include"
s.gsub! "../libtommath-0.30/libtommath.a", "#{HOMEBREW_PREFIX}/lib/libtommath.a"
end
system "make", "-C", "lib"
system "make", "-C", "clit18"
bin.install "clit18/clit"
end
end