site  contact  subhomenews

litehtml compiled in OpenEmbedded

December 09, 2021 — BarryK

Have received feedback that Balsa email client does not work in EasyOS 3.1.13. It's email filtering is pretty weak anyway, so reckon that I will go over to Claws Mail.

Claws Mail is optionally able to view HTML emails by the 'litehtml' library. Very interesting, the developer of litehtml also has a little browser, named 'litebrowser':

https://github.com/litehtml

Overview page here:

http://www.litehtml.com/

I have compiled litehtml in OpenEmbedded, or more correctly, my 'meta-quirky' layer for OpenEmbedded. Here is the recipe, file meta-quirky/recipes-quirky/litehtml/litehtml_20211117.bb:

# Recipe created by recipetool
# recipetool create -o litehtml_20211117.bb https://distro.ibiblio.org/easyos/source/alphabetical/l/litehtml-20211117.tar.gz

LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://LICENSE;md5=55d411204c54bf2524f471635a7d306a"

SRC_URI = "https://distro.ibiblio.org/easyos/source/alphabetical/l/litehtml-${PV}.tar.gz"
SRC_URI[md5sum] = "7fe2b555e7a494f60694c67c475b2d13"
SRC_URI[sha256sum] = "c92c9c5fafccfe172700b178f447a596a749cfb373773ed8f7a2ad258c81ed75"

# vim-native has 'xxd' utility, reqd to compile...
DEPENDS = "vim-native ncurses gettext-native"

inherit cmake

EXTRA_OECMAKE = "-DBUILD_SHARED_LIBS=true"

HOMEPAGE = "https://github.com/litehtml/litehtml"
SUMMARY = "Lightweight HTML/CSS rendering engine"

Note, that 'recipetool' utility rarely creates a working recipe. It usually creates a best-guess and I then have to edit the recipe so that it works. Sometimes it requires a lot of extra editing. In this case I added dependencies and the parameter to build shared libs. And the homepage and summary.

It is very easy to try a build, as often as required:

# bitbake -c build litehtml

if failed, make changes to the recipe and do it again:

# bitake -c clean litehtml
# bitbake -c build litehtml

And yes, I have also compiled Claws Mail, in a running EasyOS 3.1.13. The only extra dependency I installed was the litehtml package. Note, the litehtml binary package has libgump in it. I will post about Claws Mail soon.   

Tags: easy