aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/gocr.rb
blob: aadc45c53dc848af8928c2012a54c1bb235a97e8 (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 Gocr <Formula
  url 'http://www-e.uni-magdeburg.de/jschulen/ocr/gocr-0.48.tar.gz'
  homepage 'http://jocr.sourceforge.net/'
  md5 '9882ba9a93fcb18ab704a10da80c228c'
  
  aka :jocr

  def install
    system "./configure", "--disable-debug",
                          "--disable-dependency-tracking",
                          "--prefix=#{prefix}"
    # --mandir doesn't work correctly; fix broken Makefile
    inreplace "man/Makefile" do |s|
      s.change_make_var! 'mandir', '/share/man'
    end

    system "make install"
  end
end