Initial commit

This commit is contained in:
Your Name
2026-04-23 17:07:55 +08:00
commit b7e39e063b
16725 changed files with 1625565 additions and 0 deletions
@@ -0,0 +1,26 @@
SUMMARY = "tesseract-ocr language files"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
SRCREV = "4767ea922bcc460e70b87b1d303ebdfed0897da8"
SRC_URI = "git://github.com/tesseract-ocr/tessdata.git;branch=main;protocol=https"
S = "${WORKDIR}/git"
inherit allarch
do_install() {
install -d ${D}${datadir}/tessdata
cp -R --no-dereference --preserve=mode,links -v ${S}/*.traineddata ${D}${datadir}/tessdata
}
python populate_packages:prepend () {
tessdata_dir= d.expand('${datadir}/tessdata')
pkgs = do_split_packages(d, tessdata_dir, r'^([a-z_]*)\.*', '${BPN}-%s', 'tesseract-ocr language files for %s', extra_depends='')
pn = d.getVar('PN')
d.appendVar('RDEPENDS:' + pn, ' '+' '.join(pkgs))
}
PACKAGES_DYNAMIC += "^${BPN}-.*"
ALLOW_EMPTY:${PN} = "1"
@@ -0,0 +1,21 @@
SUMMARY = "A commercial quality OCR engine "
HOMEPAGE = "https://github.com/tesseract-ocr/tesseract"
BUGTRACKER = "https://github.com/tesseract-ocr/tesseract/issues"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
SRCREV = "71af4542990adae6d9f31d6657068bc0139c6ec4"
SRC_URI = "git://github.com/${BPN}-ocr/${BPN}.git;branch=main;protocol=https"
S = "${WORKDIR}/git"
DEPENDS = "leptonica"
EXTRA_OECONF += "LIBLEPT_HEADERSDIR=${STAGING_INCDIR}/leptonica"
inherit autotools pkgconfig
FILES:${PN} += "${datadir}/tessdata"
RRECOMMENDS:${PN} += "tesseract-lang-eng"