blob: 7bf7ade237e552ef7ee41c8abee3a083c6a82bfb (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
 | 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
    system "make", "-C", "lib"
    system "make", "-C", "clit18"
    bin.install "clit18/clit"
  end
end
 |