aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-graphics/tesseract
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-graphics/tesseract')
-rw-r--r--meta-oe/recipes-graphics/tesseract/tesseract-lang.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta-oe/recipes-graphics/tesseract/tesseract-lang.inc b/meta-oe/recipes-graphics/tesseract/tesseract-lang.inc
index 7f69eb174f..c40c71d344 100644
--- a/meta-oe/recipes-graphics/tesseract/tesseract-lang.inc
+++ b/meta-oe/recipes-graphics/tesseract/tesseract-lang.inc
@@ -3,11 +3,13 @@ LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5
SRC_URI = "https://tesseract-ocr.googlecode.com/files/tesseract-ocr-${PV}.${TESSERACT_LANG}.tar.gz"
+S = "${WORKDIR}/tesseract-ocr"
+
inherit allarch
do_install() {
install -d ${D}${datadir}/tessdata
- cp ${WORKDIR}/tesseract-ocr/tessdata/${TESSERACT_LANG}.traineddata ${D}${datadir}/tessdata
+ cp ${S}/tessdata/${TESSERACT_LANG}.traineddata ${D}${datadir}/tessdata
}
FILES_${PN} += "${datadir}/tessdata"