2010-07-02 21:19:54 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Gocr < Formula
|
2010-07-02 21:19:54 +00:00
|
|
|
homepage 'http://jocr.sourceforge.net/'
|
2013-01-28 02:56:27 +00:00
|
|
|
url 'http://www-e.uni-magdeburg.de/jschulen/ocr/gocr-0.49.tar.gz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '3db05b8970f5fabd0024fa0a0c877349b7e88cb4'
|
2010-07-02 21:19:54 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
system "./configure", "--disable-debug",
|
|
|
|
"--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
2013-01-28 02:56:27 +00:00
|
|
|
|
2010-07-02 21:19:54 +00:00
|
|
|
# --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
|