summaryrefslogtreecommitdiff
path: root/roles/tesstrainer
diff options
context:
space:
mode:
Diffstat (limited to 'roles/tesstrainer')
-rw-r--r--roles/tesstrainer/handlers/main.yml3
-rw-r--r--roles/tesstrainer/tasks/ldlocal.yml9
-rw-r--r--roles/tesstrainer/tasks/main.yml3
-rw-r--r--roles/tesstrainer/tasks/tesseract.yml67
4 files changed, 0 insertions, 82 deletions
diff --git a/roles/tesstrainer/handlers/main.yml b/roles/tesstrainer/handlers/main.yml
deleted file mode 100644
index 12df781..0000000
--- a/roles/tesstrainer/handlers/main.yml
+++ /dev/null
@@ -1,3 +0,0 @@
----
-- name: update ld.so
- command: /sbin/ldconfig
diff --git a/roles/tesstrainer/tasks/ldlocal.yml b/roles/tesstrainer/tasks/ldlocal.yml
deleted file mode 100644
index 2fd5fac..0000000
--- a/roles/tesstrainer/tasks/ldlocal.yml
+++ /dev/null
@@ -1,9 +0,0 @@
----
-# Sets ld.so to search /usr/local/lib for libraries
-
-- name: Add local path to ld.so.conf search path
- lineinfile:
- dest: /etc/ld.so.conf.d/locallib.conf
- create: true
- line: /usr/local/lib
- notify: update ld.so
diff --git a/roles/tesstrainer/tasks/main.yml b/roles/tesstrainer/tasks/main.yml
deleted file mode 100644
index 33d6a30..0000000
--- a/roles/tesstrainer/tasks/main.yml
+++ /dev/null
@@ -1,3 +0,0 @@
----
-- include: tesseract.yml
-- include: ldlocal.yml
diff --git a/roles/tesstrainer/tasks/tesseract.yml b/roles/tesstrainer/tasks/tesseract.yml
deleted file mode 100644
index 477c0e4..0000000
--- a/roles/tesstrainer/tasks/tesseract.yml
+++ /dev/null
@@ -1,67 +0,0 @@
----
-# Installs tesseract
-
-- name: Install tesseract dependencies
- package: name={{ item }} state=present
- with_items:
- - gcc-c++
- - git
- - libjpeg-turbo-devel
- - libpng12-devel
- - libtiff-devel
- - make
- - zlib-devel
-
-- name: Install tesseract training dependencies
- package: name={{ item }} state=present
- with_items:
- - cairo-devel
- - libicu-devel
- - pango-devel
-
-- name: Clone leptonica repository
- git:
- repo: https://github.com/nickjwhite/leptonica
- dest: /home/ec2-user/src/leptonica
- version: addinstall
- depth: 1
- become: no
- register: leptclone
-
-- name: Build leptonica
- command: make -f makefile.static {{ item }}
- args:
- chdir: /home/ec2-user/src/leptonica/src
- with_items:
- - nodebug
- - SHARED=yes shared
- become: no
- when: leptclone.changed
-
-- name: Install leptonica
- command: make -f makefile.static install
- args:
- chdir: /home/ec2-user/src/leptonica/src
- when: leptclone.changed
-
-- name: Clone tesseract repository
- git:
- repo: https://github.com/nickjwhite/tesseract
- dest: /home/ec2-user/src/tesseract
- version: amibuild
- depth: 1
- become: no
- register: tessclone
-
-- name: Build tesseract and training tools
- command: make all training
- args:
- chdir: /home/ec2-user/src/tesseract/simplemake
- become: no
- when: tessclone.changed
-
-- name: Install tesseract and training tools
- command: make install install-training
- args:
- chdir: /home/ec2-user/src/tesseract/simplemake
- when: tessclone.changed