homebrew-core/Formula/convertlit.rb

32 lines
1.6 KiB
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"
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "0ef0e8a30545af331a8acbc7280dfaa41fab75a0bb87a2bf05b84e5ebdc8db2e"
sha256 cellar: :any_skip_relocation, big_sur: "4a70dcf4f3bc3b2806794651f1cbbf9effe317ea3d29b06339595bae0d6e71b9"
sha256 cellar: :any_skip_relocation, catalina: "72966d25e505751ac86204848a68cc6a9e3b1e0e57340f348a853bfeca72c2d3"
sha256 cellar: :any_skip_relocation, mojave: "7d06d34736082be89b9e6c0db2fa42c4d2b4fb15469bef2922003d3d299680c8"
sha256 cellar: :any_skip_relocation, high_sierra: "f41e31b1f6f53d1441bf670e75e0315f6a0f0e938de75e9973678ed565b6b4b8"
sha256 cellar: :any_skip_relocation, sierra: "43e28e7711f27843223b29d351ba0ce03a4deee76bbc99c4bdac50969b8eaeb7"
sha256 cellar: :any_skip_relocation, el_capitan: "66b05c2c6371f16620c82b31b507413556b511b859644322c65f4ceea4a83a64"
sha256 cellar: :any_skip_relocation, yosemite: "024a9fdb4b58a3e04c12ec300facbac636b3510f8726726c4be93c60cf272ab1"
end
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