homebrew-core/Formula/gocr.rb

21 lines
555 B
Ruby
Raw Normal View History

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