New Formula: GOCR

GOCR is an OCR (Optical Character Recognition) program, developed under the
GNU Public License. It converts scanned images of text back to text files.
Joerg Schulenburg started the program, and now leads a team of developers.
GOCR can be used with different front-ends, which makes it very easy to port
to different OSes and architectures. It can open many different image formats,
and its quality have been improving in a daily basis.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>

* Fixed man install path
This commit is contained in:
Tim Kersey 2010-07-02 14:19:54 -07:00 committed by Adam Vandenberg
parent 78d82376d1
commit 9d732bf701

21
Formula/gocr.rb Normal file
View file

@ -0,0 +1,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