tesseract: fix broken OPENCL_LIB in pkg-config file
Fixes Homebrew/homebrew#49579 Closes Homebrew/homebrew#49587. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
75875168c8
commit
f93944ab22
1 changed files with 5 additions and 0 deletions
|
@ -3,6 +3,7 @@ class Tesseract < Formula
|
||||||
homepage "https://github.com/tesseract-ocr/"
|
homepage "https://github.com/tesseract-ocr/"
|
||||||
url "https://github.com/tesseract-ocr/tesseract/archive/3.04.01.tar.gz"
|
url "https://github.com/tesseract-ocr/tesseract/archive/3.04.01.tar.gz"
|
||||||
sha256 "57f63e1b14ae04c3932a2683e4be4954a2849e17edd638ffe91bc5a2156adc6a"
|
sha256 "57f63e1b14ae04c3932a2683e4be4954a2849e17edd638ffe91bc5a2156adc6a"
|
||||||
|
revision 1
|
||||||
|
|
||||||
bottle do
|
bottle do
|
||||||
sha256 "03c047a1b844454c9f02b0b75ef95e851d5e4b017a0d5ab863bfa5b3b44d98f9" => :el_capitan
|
sha256 "03c047a1b844454c9f02b0b75ef95e851d5e4b017a0d5ab863bfa5b3b44d98f9" => :el_capitan
|
||||||
|
@ -70,6 +71,10 @@ class Tesseract < Formula
|
||||||
|
|
||||||
ENV.cxx11
|
ENV.cxx11
|
||||||
|
|
||||||
|
# Fix broken pkg-config file
|
||||||
|
# https://github.com/tesseract-ocr/tesseract/issues/241
|
||||||
|
inreplace "tesseract.pc.in", "@OPENCL_LIB@", "@OPENCL_LDFLAGS@"
|
||||||
|
|
||||||
system "./autogen.sh" if build.head?
|
system "./autogen.sh" if build.head?
|
||||||
|
|
||||||
args = %W[
|
args = %W[
|
||||||
|
|
Loading…
Reference in a new issue