21 lines
622 B
Ruby
21 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"
|
|
version "1.8"
|
|
sha256 "d70a85f5b945104340d56f48ec17bcf544e3bb3c35b1b3d58d230be699e557ba"
|
|
|
|
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
|