From patchwork Mon Nov 30 08:48:18 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 106468 Received: from mail-dy1-f182.google.com (mail-dy1-f182.google.com [74.125.82.182]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.28608.1796028527240295055 for ; Mon, 30 Nov 2026 00:48:47 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20260707 header.b=UcwcNSG6; spf=pass (domain: gmail.com, ip: 74.125.82.182, mailfrom: raj.khem@gmail.com) Received: by mail-dy1-f182.google.com with SMTP id 5a478bee46e88-386cf1041cdso9001254eec.0 for ; Mon, 30 Nov 2026 00:48:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796028527; x=1796633327; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=guhc1Rn4JH9OXUoW4hJPS78+IwMm2Zw/2ZgpFHQ0g9k=; b=UcwcNSG6LmfmqDrpwkruLLZjO1TEbH7BFpcWN6dv1nsnhYkfDNCvjscq3P2apwTmry zrgXQEZKRawn1Mnpa6oAT3tnyzyD/Pjl8XH85JQmJhpFwaOby2YJuEWwGUFvzd1vrbaz n942cXxRtdaFF+jP4MIIIf3RCNYT3dgrIMfu6DytKUTI+GDR2bXsVWd5PZDVSSy0oPXo m9g8D6N4s0MOMt4iFX8EHsAGYpWIz85wgkAhGOGRNh1u3veqYtsDYoOURKbsdMkqfvr9 IhU3z+KS+O2tRsBk4vVL8gbeV7kUPbP+dEN+r4sAMUhMfAv4T9e6OFAkz6FY/ydceHO4 8Cuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796028527; x=1796633327; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=guhc1Rn4JH9OXUoW4hJPS78+IwMm2Zw/2ZgpFHQ0g9k=; b=niZXDdgsyu6xCGO4KxlHIBrI6jd6MRBApshsxA/HJC7FW37FG6Ka3Uh6FKsMNvuMH1 PJi5OBMG48bbbkifcwUEeMraF6Klfo0pVJEOFpctGaztkU1JOP68hcjZMRXPCgCHAxWu l+aKPVddoqUEMENH8tpVvFUVzayPdzVgcqy7xA001Tzg/Vy/u+mOOYH2wZGR6i0eso2H lCVBlrKWsispRkmsZnwfehiNHi2nA23t0sHsigT7YuZBLU7SKpQIlzNF/FB1hdOKw55e M45zQeyqoWPvWha0AULo/IJkb9WASdxB7+EdkucuzTQwZd8wkdv3QK1UbSmBVCKr7q9A QTNw== X-Gm-Message-State: APuU4Z+/CU+KYZCrk3vKo0ZUYicLdRua1+iHIZFGM8i/JdIBvO3EcLyT hkYc6kRAvh8vi6bTsK08vsr1WVXCERJABkcZeC+bzpUs6GCoobLlfS9onsIM3sAm X-Gm-Gg: AZFdTZdWmpWPzqtkLRczRYQdLDsUmiTvHBzysqRypHBmx/u+NN+m7bIc93ZmMcz4Mb1 qw8EgPMhd18KKXCcxXPbGFb+9Ng/tfX12nEOUmY5yVRwtvgeDYmTwD6axc2GrBuoXV3C3jrGbVF K1m9L8IS+jdDmiU5Rnh8ZCDMMo645+nmi11SjvQ8eh6YiyLN1VBvAZ2xuaFhFShmdz4/oqfNp2J fwMKy5OoHPitAVNpG7gSWIh8EhUu8EQpwkT+Fd2leQK0b0AjKs9Ht08g0pQvo8OLf2CgbhXfj+V sBJ5l7zRsiX6VwSSI9hcHMXmsF7srLG6RmH/6quEp7R6jUswK1Uc1f+phNkhIPc5CWyaaknSkfl zAhYRDBBUaM07NfKFseFqj/f0d1UO976TedDzxTjQtOsBG7Fr1/inOwnJA0yn1OWo5sp1kiQfl/ baSmn4J/hO7b0hVHKcpe+5nrASn1b1vuHrIavIC1uVp/uKhbgc9+bH84kdsuyAT4BO3t7YOh/sJ zgpr1JefZ2wesMzvjbQOJqIuVyrEsIZnYvN3XDBYxISM/6pu9kc+ulB2xgy0dfAYPbbhIZlfkHN KaVSImAb0Pz49f22Prv1/lumyS56PA9mlLuVsW/SSUD8gUGmZ/GklEg3zhAuNIge+SxurGER5Q8 hzg00M5DiwLrRb6yeihJcuRD14plWScDcRtI3q9npnRRvFur9rwzXT85cnsRirEAyxP6Biwu6ti YdeHKZCYIs5goUoPtb4r8kuOp+Kri9NG1MV1+6VvImtTLOP7LbMU5CVxUNj6xBrxo4ppB574WJb sONotYHoIVYWRT/TFiWHdTzg2Z2fgzxd6tosCvYNMNzzkLkkibRYH61sGRxeZqdRw44lZaQWL3D 23I2ZmU8G3hIv+Jdls7oCPDiUg== X-Received: by 2002:a05:7301:6083:b0:386:a01f:a36b with SMTP id 5a478bee46e88-386a01fa8d8mr40688099eec.35.1796028526457; Mon, 30 Nov 2026 00:48:46 -0800 (PST) Return-Path: Received: from apollo.tail3ccdd3.ts.net ([147.160.63.35]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-38566cd46c5sm122382600eec.11.2026.11.30.00.48.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Nov 2026 00:48:45 -0800 (PST) From: Khem Raj X-Google-Original-From: Khem Raj To: openembedded-devel@lists.openembedded.org Cc: Khem Raj Subject: [meta-python][PATCH 19/22] hotdoc: upgrade 0.17.4 -> 0.18.3 Date: Mon, 30 Nov 2026 00:48:18 -0800 Message-ID: <20261130084821.1501209-20-khem.raj@oss.qualcomm.com> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261130084821.1501209-1-khem.raj@oss.qualcomm.com> References: <20261130084821.1501209-1-khem.raj@oss.qualcomm.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Mon, 30 Nov 2026 08:48:54 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/133529 Notable upstream changes: - The build moved from setup.py to meson-python; cmark and the default bootstrap theme are meson subprojects, and the theme's CSS is now compiled with lessc at build time instead of being shipped prebuilt. - New feedgen extension for generating feeds (adds the feedgen dependency); cchardet and backports.entry-points-selectable are no longer used. Requires Python 3.10 or later. Recipe changes: - Build with python_mesonpy. The sdist ships cmark and the theme (at the commits the 0.18.3 tag pins) outside subprojects/, so copy them there; a symlink makes meson drop cmark's include paths. - Replace the theme's "npm install" with the npm tarballs it would resolve (and bootstrap-toc from git), build with the theme's offline option and run lessc with nodejs-native. License the bundled JavaScript libraries. - Add cmake to the meson cross file for the cmark CMake subproject. - Point cmark's LIBDIR at the installed location instead of its build directory (buildpaths QA), as the old setup.py sed did. - Backport the theme's switch from depend_files to a depfile; meson 1.12 rejects its cross-subproject depend_files. - Drop the function prototype, backports and cmark CMake 4 patches, all upstream now; rework the flex --noline patch for meson. License-Update: Add the licenses of the bundled JavaScript libraries and fonts of the default theme. AI-Generated: Uses Claude Code Signed-off-by: Khem Raj --- ...comment_scanner-Run-flex-with-noline.patch | 28 ++++ ...ment_scanner-fix-function-prototypes.patch | 32 ----- ...y-backports-dependency-on-sufficient.patch | 72 ----------- ...-via-depfile-instead-of-depend_files.patch | 120 ++++++++++++++++++ .../hotdoc/0003-CMake-4-compatibility.patch | 44 ------- ...e-flex-with-noline-option-to-prevent.patch | 39 ------ .../recipes-devtools/hotdoc/hotdoc_0.17.4.bb | 28 ---- .../recipes-devtools/hotdoc/hotdoc_0.18.3.bb | 79 ++++++++++++ 8 files changed, 227 insertions(+), 215 deletions(-) create mode 100644 meta-python/recipes-devtools/hotdoc/hotdoc/0001-c_comment_scanner-Run-flex-with-noline.patch delete mode 100644 meta-python/recipes-devtools/hotdoc/hotdoc/0001-c_comment_scanner-fix-function-prototypes.patch delete mode 100644 meta-python/recipes-devtools/hotdoc/hotdoc/0002-avoid-third-party-backports-dependency-on-sufficient.patch create mode 100644 meta-python/recipes-devtools/hotdoc/hotdoc/0002-css-track-lessc-dependencies-via-depfile-instead-of-depend_files.patch delete mode 100644 meta-python/recipes-devtools/hotdoc/hotdoc/0003-CMake-4-compatibility.patch delete mode 100644 meta-python/recipes-devtools/hotdoc/hotdoc/0004-Use-flex-with-noline-option-to-prevent.patch delete mode 100644 meta-python/recipes-devtools/hotdoc/hotdoc_0.17.4.bb create mode 100644 meta-python/recipes-devtools/hotdoc/hotdoc_0.18.3.bb diff --git a/meta-python/recipes-devtools/hotdoc/hotdoc/0001-c_comment_scanner-Run-flex-with-noline.patch b/meta-python/recipes-devtools/hotdoc/hotdoc/0001-c_comment_scanner-Run-flex-with-noline.patch new file mode 100644 index 0000000000..dc769b22ba --- /dev/null +++ b/meta-python/recipes-devtools/hotdoc/hotdoc/0001-c_comment_scanner-Run-flex-with-noline.patch @@ -0,0 +1,28 @@ +From 59b7c5d26d6141039b7c1ceb74500f8dfffd3a2d Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Sun, 29 Nov 2026 08:51:37 -0800 +Subject: [PATCH] c_comment_scanner: Run flex with --noline + +Without it the generated scanner.c contains #line directives with the +absolute path of scanner.l, which end up in the debug info and trip the +buildpaths QA check. + +Upstream-Status: Inappropriate [oe-specific] +Signed-off-by: Khem Raj +--- + hotdoc/parsers/c_comment_scanner/meson.build | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/hotdoc/parsers/c_comment_scanner/meson.build b/hotdoc/parsers/c_comment_scanner/meson.build +index 37f2caf..2fe0c75 100644 +--- a/hotdoc/parsers/c_comment_scanner/meson.build ++++ b/hotdoc/parsers/c_comment_scanner/meson.build +@@ -3,7 +3,7 @@ flex = find_program('flex', native: true) + scanner_c = custom_target( + input: 'scanner.l', + output: 'scanner.c', +- command: [flex, '-o', '@OUTPUT@', '@INPUT@'], ++ command: [flex, '--noline', '-o', '@OUTPUT@', '@INPUT@'], + ) + + py.extension_module('c_comment_scanner', diff --git a/meta-python/recipes-devtools/hotdoc/hotdoc/0001-c_comment_scanner-fix-function-prototypes.patch b/meta-python/recipes-devtools/hotdoc/hotdoc/0001-c_comment_scanner-fix-function-prototypes.patch deleted file mode 100644 index c26dde93b3..0000000000 --- a/meta-python/recipes-devtools/hotdoc/hotdoc/0001-c_comment_scanner-fix-function-prototypes.patch +++ /dev/null @@ -1,32 +0,0 @@ -Subject: [PATCH 1/2] c_comment_scanner: fix function prototypes - -scanner.l: Fix compile error as the following: - -python3-hotdoc/0.17.4/sources/hotdoc-0.17.4/hotdoc/parsers/c_comment_scanner/scanner.l:126:1: error: conflicting types for 'parse_comment'; have 'int(PyObject *)' {aka 'int(struct _object *)'} -| 126 | parse_comment (PyObject *comments) - -Upstream-Status: Backport [https://github.com/hotdoc/hotdoc/commit/adf8518431fafb78c9b47862a0a9a58824b6a421] - -Signed-off-by: Liu Yiding ---- - hotdoc/parsers/c_comment_scanner/scanner.l | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/hotdoc/parsers/c_comment_scanner/scanner.l b/hotdoc/parsers/c_comment_scanner/scanner.l -index 0408601..7bccd64 100644 ---- a/hotdoc/parsers/c_comment_scanner/scanner.l -+++ b/hotdoc/parsers/c_comment_scanner/scanner.l -@@ -34,8 +34,8 @@ - extern int yylex (PyObject *comments); - #define YY_DECL int yylex (PyObject *comments) - static int yywrap (void); --static int parse_comment (); --static int parse_define (); -+static int parse_comment (PyObject *); -+static int parse_define (PyObject *); - %} - - %option nounput --- -2.43.0 - diff --git a/meta-python/recipes-devtools/hotdoc/hotdoc/0002-avoid-third-party-backports-dependency-on-sufficient.patch b/meta-python/recipes-devtools/hotdoc/hotdoc/0002-avoid-third-party-backports-dependency-on-sufficient.patch deleted file mode 100644 index 560d1257f0..0000000000 --- a/meta-python/recipes-devtools/hotdoc/hotdoc/0002-avoid-third-party-backports-dependency-on-sufficient.patch +++ /dev/null @@ -1,72 +0,0 @@ -Subject: [PATCH 2/2] avoid third-party backports dependency on sufficiently - new python - -`backports.entry_points_selectable` backports functionality from python -3.10 to older versions of python. - -Backport this patch to solve runtime backports import problem as following: - File "/usr/lib/python3.14/site-packages/hotdoc/utils/utils.py", line 38, in - from backports.entry_points_selectable import entry_points -ModuleNotFoundError: No module named 'backports' - -Upstream-Status: Backport [https://github.com/hotdoc/hotdoc/commit/51043c3ef889e36c8232280581598b875073ded7] - -Signed-off-by: Liu Yiding ---- - hotdoc/extensions/gi/utils.py | 6 +++++- - hotdoc/utils/utils.py | 6 +++++- - setup.py | 2 +- - 3 files changed, 11 insertions(+), 3 deletions(-) - -diff --git a/hotdoc/extensions/gi/utils.py b/hotdoc/extensions/gi/utils.py -index 159c2b6..91902cb 100644 ---- a/hotdoc/extensions/gi/utils.py -+++ b/hotdoc/extensions/gi/utils.py -@@ -1,9 +1,13 @@ - import os - from collections import namedtuple - import pathlib -+import sys - import traceback - --from backports.entry_points_selectable import entry_points -+if sys.version_info >= (3, 10): -+ from importlib.metadata import entry_points -+else: -+ from backports.entry_points_selectable import entry_points - - from hotdoc.core.links import Link - from hotdoc.utils.loggable import info, debug -diff --git a/hotdoc/utils/utils.py b/hotdoc/utils/utils.py -index 518d308..aef657a 100644 ---- a/hotdoc/utils/utils.py -+++ b/hotdoc/utils/utils.py -@@ -35,7 +35,11 @@ import importlib.util - from urllib.request import urlretrieve - from pathlib import Path - --from backports.entry_points_selectable import entry_points -+if sys.version_info >= (3, 10): -+ from importlib.metadata import entry_points -+else: -+ from backports.entry_points_selectable import entry_points -+ - try: - import importlib.metadata as meta - except ImportError: -diff --git a/setup.py b/setup.py -index 5d7f131..9ee504d 100644 ---- a/setup.py -+++ b/setup.py -@@ -300,7 +300,7 @@ INSTALL_REQUIRES = [ - 'wheezy.template', - 'toposort>=1.4', - 'importlib_metadata; python_version<"3.10"', -- 'backports.entry_points_selectable', -+ 'backports.entry_points_selectable; python_version<"3.10"', - ] - - # dbus-deviation requires sphinx, which requires python 3.5 --- -2.43.0 - diff --git a/meta-python/recipes-devtools/hotdoc/hotdoc/0002-css-track-lessc-dependencies-via-depfile-instead-of-depend_files.patch b/meta-python/recipes-devtools/hotdoc/hotdoc/0002-css-track-lessc-dependencies-via-depfile-instead-of-depend_files.patch new file mode 100644 index 0000000000..94b71de49a --- /dev/null +++ b/meta-python/recipes-devtools/hotdoc/hotdoc/0002-css-track-lessc-dependencies-via-depfile-instead-of-depend_files.patch @@ -0,0 +1,120 @@ +From 551472db5280128c1666d5b862d31f6f76c92d00 Mon Sep 17 00:00:00 2001 +From: Tristan Partin +Date: Mon, 24 Aug 2026 21:45:32 +0000 +Subject: [PATCH] css: track lessc dependencies via depfile instead of + depend_files + +depend_files requires files strictly within the current (sub)project. +The parent hotdoc project passes a directory from its own source tree +(outside this subproject) as less_include_path, which was being stuffed +into depend_files alongside less_dep_files -- Meson >=1.12 now correctly +rejects this as a sandbox violation: + + ERROR: Sandbox violation: Tried to grab directory less from outside + current (sub)project. + +Beyond the crash, this was already a poor mechanism for tracking these +dependencies: less_dep_files only listed two hardcoded files +(frontend.less, sitenav.less), and less_include_path pointed at a +directory, whose mtime only changes when files are added/removed +directly inside it, not when an existing file's contents are edited -- +so real edits to shared .less partials were never reliably caught +either before or after the Meson 1.12 change. + +Use lessc's own -M flag instead, which discovers every actual import a +.less file touches (including anything found via --include-path) and +emits it as a Makefile-style dependency list. lessc-compile.py wraps +lessc to write both a depfile (from -M) and the real compiled CSS from +a single custom_target invocation, mirroring how a C compiler emits +e.g. foo.o and foo.o.d from one invocation. This gives precise, +automatic, content-aware rebuild tracking with no manual file list to +keep in sync, and no cross-subproject depend_files reference at all. + +Fixes: https://github.com/hotdoc/hotdoc/issues/328 + +Upstream-Status: Backport [https://github.com/hotdoc/hotdoc_bootstrap_theme/commit/551472db5280128c1666d5b862d31f6f76c92d00] +Signed-off-by: Khem Raj ---- - CMakeLists.txt | 11 ++--------- - extensions/CMakeLists.txt | 2 +- - 2 files changed, 3 insertions(+), 10 deletions(-) - -diff --git a/CMakeLists.txt b/CMakeLists.txt -index ff97419..45fdf6c 100755 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -1,12 +1,5 @@ --cmake_minimum_required(VERSION 2.8.9) -- --# prevent ugly developer warnings because version is set directly, not through project() --# it should be redone properly by using VERSION in project() if on CMake 3.x --if(CMAKE_MAJOR_VERSION GREATER 2) -- cmake_policy(SET CMP0048 OLD) --endif() -- --project(cmark) -+cmake_minimum_required(VERSION 3.10) -+project(cmark VERSION 0.28.3) - - include("FindAsan.cmake") - -diff --git a/extensions/CMakeLists.txt b/extensions/CMakeLists.txt -index e62d155..b6a1556 100644 ---- a/extensions/CMakeLists.txt -+++ b/extensions/CMakeLists.txt -@@ -1,4 +1,4 @@ --cmake_minimum_required(VERSION 2.8) -+cmake_minimum_required(VERSION 3.10) - set(LIBRARY "cmarkextensions") - set(LIBRARY_SOURCES - core-extensions.c --- -2.43.0 - diff --git a/meta-python/recipes-devtools/hotdoc/hotdoc/0004-Use-flex-with-noline-option-to-prevent.patch b/meta-python/recipes-devtools/hotdoc/hotdoc/0004-Use-flex-with-noline-option-to-prevent.patch deleted file mode 100644 index 6b608ff8b9..0000000000 --- a/meta-python/recipes-devtools/hotdoc/hotdoc/0004-Use-flex-with-noline-option-to-prevent.patch +++ /dev/null @@ -1,39 +0,0 @@ -Subject: [PATCH] Use flex with --noline option to prevent adding #line to c file - -To fix following do_package QA Issue: - -do_package_qa:QA Issue: File /usr/src/debug/hotdoc/0.17.4/hotdoc/parsers/c_comment_scanner/scanner.c in package hotdoc-src contains reference to TMPDIR [buildpaths] - -Also drop the verbose=1 keyword from the spawn.spawn() call: newer -setuptools/distutils' spawn() forwards **kwargs directly to -subprocess.check_call(), which does not accept a verbose argument, -causing do_compile to fail with: - - TypeError: Popen.__init__() got an unexpected keyword argument 'verbose' - -Upstream-Status: Inappropriate [oe-specific] - -Signed-off-by: Liu Yiding ---- - setup.py | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/setup.py b/setup.py -index 9ee504d..a2ebdb1 100644 ---- a/setup.py -+++ b/setup.py -@@ -365,10 +365,10 @@ class FlexExtension (Extension): - - self.sources.append(built_scanner_path) - if newer_group(self.__flex_sources, built_scanner_path): -- cmd = ['flex', '-o', built_scanner_path] -+ cmd = ['flex', '--noline', '-o', built_scanner_path] - for s in self.__flex_sources: - cmd.append(s) -- spawn.spawn(cmd, verbose=1) -+ spawn.spawn(cmd) - - def build_custom(self): - if self.__flex_sources: --- -2.43.0 diff --git a/meta-python/recipes-devtools/hotdoc/hotdoc_0.17.4.bb b/meta-python/recipes-devtools/hotdoc/hotdoc_0.17.4.bb deleted file mode 100644 index c7093ff717..0000000000 --- a/meta-python/recipes-devtools/hotdoc/hotdoc_0.17.4.bb +++ /dev/null @@ -1,28 +0,0 @@ -SUMMARY = "Hotdoc is a documentation framework" -DESCRIPTION = "Hotdoc is a documentation micro-framework. It provides an interface for extensions to plug upon, along with some base objects (formatters, ...)" -HOMEPAGE = "https://github.com/hotdoc/hotdoc" - -LICENSE = "LGPL-2.1-or-later" -LIC_FILES_CHKSUM = "file://COPYING;md5=90263a49bc1d9a204656fec4d5616c66" - -SRC_URI[sha256sum] = "c4d5dff647f03aa87a1d2d06035d2819edd099b91635e3b2ee390829357ae9fc" - -SRC_URI = "file://0001-c_comment_scanner-fix-function-prototypes.patch \ - file://0002-avoid-third-party-backports-dependency-on-sufficient.patch \ - file://0003-CMake-4-compatibility.patch;patchdir=cmark \ - " - -SRC_URI:append:class-target = " file://0004-Use-flex-with-noline-option-to-prevent.patch" - -DEPENDS += "libxml2 glib-2.0 json-glib" - -inherit pypi python_setuptools_build_meta pkgconfig - -#Fix LIBDIR path to fix buildpaths QA check of hotdoc/parsers/cmark.cpython-314-x86_64-linux-gnu.so -do_configure:prepend:class-target() { - sed -i -e "s#'\"%s\"' % CMARK_BUILD_DIR#'\"${PYTHON_SITEPACKAGES_DIR}/${PN}\"'#" ${S}/setup.py -} - -RDEPENDS:${PN} += "clang python3-appdirs python3-cchardet python3-dbus-deviation python3-lxml python3-networkx python3-pkgconfig python3-pyyaml python3-schema python3-toposort python3-wheezy-template" - -BBCLASSEXTEND = "native" diff --git a/meta-python/recipes-devtools/hotdoc/hotdoc_0.18.3.bb b/meta-python/recipes-devtools/hotdoc/hotdoc_0.18.3.bb new file mode 100644 index 0000000000..259936c767 --- /dev/null +++ b/meta-python/recipes-devtools/hotdoc/hotdoc_0.18.3.bb @@ -0,0 +1,79 @@ +SUMMARY = "Hotdoc is a documentation framework" +DESCRIPTION = "Hotdoc is a documentation micro-framework. It provides an interface for extensions to plug upon, along with some base objects (formatters, ...)" +HOMEPAGE = "https://github.com/hotdoc/hotdoc" + +# The default theme bundles these JavaScript libraries and fonts +THEME_NPM = "${S}/hotdoc/hotdoc_bootstrap_theme/node_modules" + +LICENSE = "LGPL-2.1-or-later AND MIT AND (GPL-2.0-only OR MIT)" +LIC_FILES_CHKSUM = "file://COPYING;md5=90263a49bc1d9a204656fec4d5616c66 \ + file://${THEME_NPM}/anchor-js/anchor.js;beginline=1;endline=5;md5=50c1b2cde48b467258801814ab02c0fa \ + file://${THEME_NPM}/bootstrap/LICENSE;md5=daaa3d40b9f79d0c80027c05116c083c \ + file://${THEME_NPM}/bootstrap-toc/LICENSE.md;md5=d4aca557b9ca213572c14d68f962834c \ + file://${THEME_NPM}/compare-versions/LICENSE;md5=0e2a8ffba75c439b2928fa0fe67769fb \ + file://${THEME_NPM}/jquery/LICENSE.txt;md5=de877aa6d744cc160ff41c26a8e4811f \ + file://${THEME_NPM}/jquery-touchswipe/LICENSE;md5=820eac125a44877b46a01496ec5716f2 \ + file://${THEME_NPM}/malihu-custom-scrollbar-plugin/jquery.mCustomScrollbar.js;beginline=10;endline=30;md5=b8beb47a18c213930a1ad9d587ada2a2 \ + file://${THEME_NPM}/mustache/LICENSE;md5=33fa3c7f27611cfb1191e5aa2bb107b1 \ + file://${THEME_NPM}/typeahead.js/LICENSE;md5=3c1e620fdfdc32344835b6b04915dab1 \ + " + +SRC_URI[sha256sum] = "cf22977cae68ca2f1e223dc901258dcbbd0e07eca924d8156c4fc94a54cad40b" + +SRC_URI += "file://0001-c_comment_scanner-Run-flex-with-noline.patch \ + file://0002-css-track-lessc-dependencies-via-depfile-instead-of-depend_files.patch;patchdir=hotdoc/hotdoc_bootstrap_theme \ + " + +# The theme's "npm install" is replaced by these, at the versions npm resolves +# for its package.json; lessc only builds the CSS and is not installed. +NPM_REGISTRY = "https://registry.npmjs.org" +NPM_UNPACK = "striplevel=1;subdir=${BP}/hotdoc/hotdoc_bootstrap_theme/node_modules" +SRC_URI += "${NPM_REGISTRY}/anchor-js/-/anchor-js-3.2.2.tgz;name=anchor-js;${NPM_UNPACK}/anchor-js \ + ${NPM_REGISTRY}/bootstrap/-/bootstrap-3.4.1.tgz;name=bootstrap;${NPM_UNPACK}/bootstrap \ + ${NPM_REGISTRY}/compare-versions/-/compare-versions-2.0.2.tgz;name=compare-versions;${NPM_UNPACK}/compare-versions \ + ${NPM_REGISTRY}/jquery/-/jquery-3.8.0.tgz;name=jquery;${NPM_UNPACK}/jquery \ + ${NPM_REGISTRY}/jquery-touchswipe/-/jquery-touchswipe-1.6.19.tgz;name=jquery-touchswipe;${NPM_UNPACK}/jquery-touchswipe \ + ${NPM_REGISTRY}/less/-/less-2.7.3.tgz;name=less;${NPM_UNPACK}/less \ + ${NPM_REGISTRY}/malihu-custom-scrollbar-plugin/-/malihu-custom-scrollbar-plugin-3.1.5.tgz;name=malihu;${NPM_UNPACK}/malihu-custom-scrollbar-plugin \ + ${NPM_REGISTRY}/mustache/-/mustache-2.3.2.tgz;name=mustache;${NPM_UNPACK}/mustache \ + ${NPM_REGISTRY}/typeahead.js/-/typeahead.js-0.11.1.tgz;name=typeahead;${NPM_UNPACK}/typeahead.js \ + git://github.com/hotdoc/bootstrap-toc.git;protocol=https;branch=gh-pages;name=bootstrap-toc;destsuffix=${BP}/hotdoc/hotdoc_bootstrap_theme/node_modules/bootstrap-toc \ + " +SRC_URI[anchor-js.sha256sum] = "176b004992c3d341e5f0891070c256862498b84736d0bd8a214f2a38ccc96e86" +SRC_URI[bootstrap.sha256sum] = "990c17dbc1560f3262b6a5404c6ed01ff5a58487b8f553663a284c37fb8ec5cc" +SRC_URI[compare-versions.sha256sum] = "38b4814feb35f7e8c4974a66d48d8a0cd26ff1099efc0e866559565c72747286" +SRC_URI[jquery.sha256sum] = "8d962d4569b757756cf21fc5f72a5185cbf299e9c5b71a6995a65f57c5a0e48f" +SRC_URI[jquery-touchswipe.sha256sum] = "378324ad430ea1b61b9237186bbe98f634ca82ae08258785aba3f5ab2248a833" +SRC_URI[less.sha256sum] = "06c0811fc8ee4db5d61d9b0e5cf5c46846264cb7b6e13cc639e51eefb15229c9" +SRC_URI[malihu.sha256sum] = "c33f961db28ef7a03222c9b032d9aa864b45b40a89169f438ad440cb5aa24897" +SRC_URI[mustache.sha256sum] = "2a755d9d05d06b12f3a90ff5a2b25f7a10081f844192f3d773f42a0101b3f256" +SRC_URI[typeahead.sha256sum] = "da9916219d539813bcbced189988fc3a569330300d1e63260251f69a7959144f" +SRCREV_bootstrap-toc = "0d481c8edf8a48c71c0fcec2f99d02613122e8c5" + +DEPENDS += "libxml2 glib-2.0 json-glib flex-native cmake-native nodejs-native" + +inherit pypi python_mesonpy pkgconfig + +EXTRA_OEMESON += "-Dhotdoc_bootstrap_theme:offline=true" + +# cmark is a CMake subproject; meson takes the host CMake only from the cross file +do_write_config:append() { + sed -i "/^\[binaries\]/a cmake = 'cmake'" ${WORKDIR}/meson.cross +} + +# meson expects the theme and cmark as wrap-git subprojects; the sdist ships +# them (at the commits the 0.18.3 tag pins) under hotdoc/ and cmark/. Copy, +# do not symlink: meson drops cmark include paths that resolve outside it. +do_configure:prepend() { + for sub in hotdoc/hotdoc_bootstrap_theme:hotdoc_bootstrap_theme cmark:cmark; do + rm -rf ${S}/subprojects/${sub#*:} + cp -a ${S}/${sub%:*} ${S}/subprojects/${sub#*:} + done + # cmark looks for extension plugins in LIBDIR, by default its build dir + sed -i -e 's#-DLIBDIR=\\"${CMAKE_BINARY_DIR}\\"#-DLIBDIR=\\"${PYTHON_SITEPACKAGES_DIR}/${BPN}\\"#' \ + ${S}/subprojects/cmark/src/CMakeLists.txt +} + +RDEPENDS:${PN} += "clang python3-appdirs python3-dbus-deviation python3-feedgen python3-lxml python3-networkx python3-pkgconfig python3-pyyaml python3-schema python3-toposort python3-wheezy-template" + +BBCLASSEXTEND = "native"