diff options
Diffstat (limited to 'meta-oe/recipes-graphics/tesseract/tesseract-lang.inc')
-rw-r--r-- | meta-oe/recipes-graphics/tesseract/tesseract-lang.inc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/meta-oe/recipes-graphics/tesseract/tesseract-lang.inc b/meta-oe/recipes-graphics/tesseract/tesseract-lang.inc new file mode 100644 index 000000000..542cc6ed6 --- /dev/null +++ b/meta-oe/recipes-graphics/tesseract/tesseract-lang.inc | |||
@@ -0,0 +1,15 @@ | |||
1 | LICENSE = "Apache-2.0" | ||
2 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" | ||
3 | |||
4 | SRC_URI = "https://tesseract-ocr.googlecode.com/files/tesseract-ocr-${PV}.${TESSERACT_LANG}.tar.gz" | ||
5 | |||
6 | inherit allarch | ||
7 | |||
8 | do_install() { | ||
9 | install -d ${D}${datadir}/tessdata | ||
10 | cp ${WORKDIR}/tesseract-ocr/tessdata/${TESSERACT_LANG}.traineddata ${D}${datadir}/tessdata | ||
11 | } | ||
12 | |||
13 | RDEPENDS_${PN} = "tesseract" | ||
14 | |||
15 | FILES_${PN} += "${datadir}/tessdata" | ||