homebrew-core/Formula/convertlit.rb
2012-09-03 11:36:42 -07:00

26 lines
572 B
Ruby

require 'formula'
class Convertlit < Formula
homepage 'http://www.convertlit.com/'
url 'http://www.convertlit.com/clit18src.zip'
sha1 '0fa9aead468bd8640c49374d46d78d2a3e79489f'
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
cd "lib" do
system "make"
end
cd "clit18" do
system "make"
bin.install 'clit'
end
end
end