Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 1 | SUMMARY = "tesseract-ocr language files" |
| 2 | |
| 3 | LICENSE = "Apache-2.0" |
| 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=9648bd7af63bd3cc4f5ac046d12c49e4" |
| 5 | |
Brad Bishop | 779d0ac | 2019-09-27 08:23:48 -0400 | [diff] [blame] | 6 | SRCREV = "590567f20dc044f6948a8e2c61afc714c360ad0e" |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 7 | SRC_URI = "git://github.com/tesseract-ocr/tessdata.git" |
Brad Bishop | 779d0ac | 2019-09-27 08:23:48 -0400 | [diff] [blame] | 8 | |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 9 | S = "${WORKDIR}/git" |
| 10 | |
| 11 | inherit allarch |
| 12 | |
| 13 | do_install() { |
| 14 | install -d ${D}${datadir}/tessdata |
Brad Bishop | 779d0ac | 2019-09-27 08:23:48 -0400 | [diff] [blame] | 15 | cp -R --no-dereference --preserve=mode,links -v ${S}/*.traineddata ${D}${datadir}/tessdata |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 16 | } |
| 17 | |
| 18 | python 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 Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 21 | pn = d.getVar('PN') |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 22 | d.appendVar('RDEPENDS_' + pn, ' '+' '.join(pkgs)) |
| 23 | } |
| 24 | |
| 25 | PACKAGES_DYNAMIC += "^${BPN}-.*" |
| 26 | ALLOW_EMPTY_${PN} = "1" |