Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tesseract 5.4.0 #173888

Merged
merged 2 commits into from
Jun 7, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 8 additions & 9 deletions Formula/t/tesseract.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
class Tesseract < Formula

Check warning on line 1 in Formula/t/tesseract.rb

View workflow job for this annotation

GitHub Actions / macOS 14-arm64

`brew linkage --cached --test --strict tesseract` failed on macOS Sonoma (14) on Apple Silicon!

Indirect dependencies with linkage: fontconfig freetype gettext glib harfbuzz

Check warning on line 1 in Formula/t/tesseract.rb

View workflow job for this annotation

GitHub Actions / macOS 13-arm64

`brew linkage --cached --test --strict tesseract` failed on macOS Ventura (13) on Apple Silicon!

Indirect dependencies with linkage: fontconfig freetype gettext glib harfbuzz

Check warning on line 1 in Formula/t/tesseract.rb

View workflow job for this annotation

GitHub Actions / macOS 14-x86_64

`brew linkage --cached --test --strict tesseract` failed on macOS Sonoma (14)!

Indirect dependencies with linkage: fontconfig freetype gettext glib harfbuzz

Check warning on line 1 in Formula/t/tesseract.rb

View workflow job for this annotation

GitHub Actions / macOS 13-x86_64

`brew linkage --cached --test --strict tesseract` failed on macOS Ventura (13)!

Indirect dependencies with linkage: fontconfig freetype gettext glib harfbuzz

Check warning on line 1 in Formula/t/tesseract.rb

View workflow job for this annotation

GitHub Actions / Linux

`brew linkage --cached --test --strict tesseract` failed on Linux!

Indirect dependencies with linkage: fontconfig glib harfbuzz

Check warning on line 1 in Formula/t/tesseract.rb

View workflow job for this annotation

GitHub Actions / macOS 12-arm64

`brew linkage --cached --test --strict tesseract` failed on macOS Monterey (12) on Apple Silicon!

Indirect dependencies with linkage: fontconfig freetype gettext glib harfbuzz

Check warning on line 1 in Formula/t/tesseract.rb

View workflow job for this annotation

GitHub Actions / macOS 12-x86_64

`brew linkage --cached --test --strict tesseract` failed on macOS Monterey (12)!

Indirect dependencies with linkage: fontconfig freetype gettext glib harfbuzz
desc "OCR (Optical Character Recognition) engine"
homepage "https://github.com/tesseract-ocr/"
url "https://github.com/tesseract-ocr/tesseract/archive/refs/tags/5.3.4.tar.gz"
sha256 "141afc12b34a14bb691a939b4b122db0d51bd38feda7f41696822bacea7710c7"
url "https://github.com/tesseract-ocr/tesseract/archive/refs/tags/5.4.0.tar.gz"
sha256 "30ceffd9b86780f01cbf4eaf9b7fc59abddfcbaf5bbd52f9a633c6528cb183fd"
license "Apache-2.0"
revision 1
head "https://github.com/tesseract-ocr/tesseract.git", branch: "main"

livecheck do
Expand Down Expand Up @@ -49,11 +48,6 @@
sha256 "36f772980ff17c66a767f584a0d80bf2302a1afa585c01a226c1863afcea1392"
end

resource "test_resource" do
url "https://raw.githubusercontent.com/tesseract-ocr/test/6dd816cdaf3e76153271daf773e562e24c928bf5/testing/eurotext.tif"
sha256 "7b9bd14aba7d5e30df686fbb6f71782a97f48f81b32dc201a1b75afe6de747d6"
end

def install
# explicitly state leptonica header location, as the makefile defaults to /usr/local/include,
# which doesn't work for non-default homebrew location
Expand Down Expand Up @@ -84,7 +78,12 @@
end

test do
resource("test_resource").stage do
resource "homebrew-test_resource" do
url "https://raw.githubusercontent.com/tesseract-ocr/test/6dd816cdaf3e76153271daf773e562e24c928bf5/testing/eurotext.tif"
sha256 "7b9bd14aba7d5e30df686fbb6f71782a97f48f81b32dc201a1b75afe6de747d6"
end

resource("homebrew-test_resource").stage do
system bin/"tesseract", "./eurotext.tif", "./output", "-l", "eng"
assert_match "The (quick) [brown] {fox} jumps!\n", File.read("output.txt")
end
Expand Down
Loading