blob: 75c2bc00e241bf14d63c1247b12ac7e678a55f5d [file] [log] [blame]
Patrick Williamsddad1a12017-02-23 20:36:32 -06001SUMMARY = "tesseract-ocr language files"
2
3LICENSE = "Apache-2.0"
4LIC_FILES_CHKSUM = "file://COPYING;md5=9648bd7af63bd3cc4f5ac046d12c49e4"
5
Brad Bishop779d0ac2019-09-27 08:23:48 -04006SRCREV = "590567f20dc044f6948a8e2c61afc714c360ad0e"
Patrick Williamsddad1a12017-02-23 20:36:32 -06007SRC_URI = "git://github.com/tesseract-ocr/tessdata.git"
Brad Bishop779d0ac2019-09-27 08:23:48 -04008
Patrick Williamsddad1a12017-02-23 20:36:32 -06009S = "${WORKDIR}/git"
10
11inherit allarch
12
13do_install() {
14 install -d ${D}${datadir}/tessdata
Brad Bishop779d0ac2019-09-27 08:23:48 -040015 cp -R --no-dereference --preserve=mode,links -v ${S}/*.traineddata ${D}${datadir}/tessdata
Patrick Williamsddad1a12017-02-23 20:36:32 -060016}
17
18python populate_packages_prepend () {
19 tessdata_dir= d.expand('${datadir}/tessdata')
20 pkgs = do_split_packages(d, tessdata_dir, '^([a-z_]*)\.*', '${BPN}-%s', 'tesseract-ocr language files for %s', extra_depends='')
Brad Bishop6e60e8b2018-02-01 10:27:11 -050021 pn = d.getVar('PN')
Patrick Williamsddad1a12017-02-23 20:36:32 -060022 d.appendVar('RDEPENDS_' + pn, ' '+' '.join(pkgs))
23}
24
25PACKAGES_DYNAMIC += "^${BPN}-.*"
26ALLOW_EMPTY_${PN} = "1"