2011-10-08 19:55:56 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Convertlit < Formula
|
|
|
|
homepage 'http://www.convertlit.com/'
|
2012-02-21 06:04:21 +00:00
|
|
|
url 'http://www.convertlit.com/clit18src.zip'
|
2011-10-08 19:55:56 +00:00
|
|
|
md5 'd691d4729485fe5d73e3f0937d8fb42e'
|
|
|
|
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
|
|
|
|
|
2012-02-21 06:04:21 +00:00
|
|
|
cd "lib" do
|
|
|
|
system "make"
|
|
|
|
end
|
2012-03-08 02:11:53 +00:00
|
|
|
|
|
|
|
cd "clit18" do
|
2012-02-21 06:04:21 +00:00
|
|
|
system "make"
|
2012-03-08 02:11:53 +00:00
|
|
|
bin.install 'clit'
|
2012-02-21 06:04:21 +00:00
|
|
|
end
|
2011-10-08 19:55:56 +00:00
|
|
|
end
|
|
|
|
end
|