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 | |
| 6 | PV = "3.04.00+git${SRCPV}" |
| 7 | SRCREV = "3cf1e2df1fe1d1da29295c9ef0983796c7958b7d" |
| 8 | SRC_URI = "git://github.com/tesseract-ocr/tessdata.git" |
| 9 | S = "${WORKDIR}/git" |
| 10 | |
| 11 | inherit allarch |
| 12 | |
| 13 | do_install() { |
| 14 | install -d ${D}${datadir}/tessdata |
| 15 | cp -R --no-dereference --preserve=mode,links -v ${S}/*.traineddata ${S}/*.cube.* ${S}/*.tesseract_cube.* ${D}${datadir}/tessdata |
| 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" |