blob: f96c0f49d57bfe094bdb32aa2e6940fe0ceff5bd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
require 'formula'
class Gocr < Formula
url 'http://www-e.uni-magdeburg.de/jschulen/ocr/gocr-0.49.tar.gz'
homepage 'http://jocr.sourceforge.net/'
sha1 '3db05b8970f5fabd0024fa0a0c877349b7e88cb4'
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
|