blob: 892782ba940f80349419b05feb7c37b0f5847eb0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
---
# Installs tesseract
- name: Install tesseract dependencies
apt:
state: present
name:
- g++
- git
- libjpeg62-turbo-dev
- libpng-dev
- libtiff-dev
- make
- zlib1g-dev
- name: Install tesseract training dependencies
apt:
state: present
name:
- libcairo2-dev
- libicu-dev
- libpango1.0-dev
- name: Clone tesseract repository
git:
repo: https://github.com/nickjwhite/tesseract
dest: /home/{{ ansible_user }}/src/tesseract
version: amibuild
depth: 1
become: no
- name: Build tesseract and training tools
command: make all training
args:
chdir: /home/{{ ansible_user }}/src/tesseract/simplemake
become: no
- name: Install tesseract and training tools
command: make install install-training
args:
chdir: /home/{{ ansible_user }}/src/tesseract/simplemake
notify: update ld.so
|