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'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '0fa9aead468bd8640c49374d46d78d2a3e79489f'
|
2011-10-08 19:55:56 +00:00
|
|
|
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
|
|
|
|
|
2014-04-17 04:19:51 +00:00
|
|
|
system "make", "-C", "lib"
|
|
|
|
system "make", "-C", "clit18"
|
|
|
|
bin.install "clit18/clit"
|
2011-10-08 19:55:56 +00:00
|
|
|
end
|
|
|
|
end
|