| Message ID | 20251202-svg2pdf-v1-1-bf4bd322e528@cherry.de |
|---|---|
| State | New |
| Headers | show |
| Series | buildtools-docs-tarball: add new Sphinx extension svg2pdfconverter | expand |
Hi all, On 12/2/25 5:52 PM, Quentin Schulz wrote: > From: Quentin Schulz <quentin.schulz@cherry.de> > > This will be a dependency for building the Yocto docs soon, so let's add > a recipe for it. > > This does SVG to PDF (or PNG) conversion for images used in Sphinx > projects. > > It exposes three different Sphinx extensions, each using a different > tool for the conversion: > - cairosvg, a Python module with no available recipe, > - inkscape, only available in seemingly unmaintained 3rd party layer, > - rsvg-convert, > > So we'll only support the last extension for now. > Don't bother running this through the autobuilder, this recipe was generated by "devtool add" and it's garbage. Will fix and send a v2. Sorry for the noise. Quentin
diff --git a/meta/recipes-devtools/python/python3-sphinxcontrib-svg2pdfconverter_2.0.0.bb b/meta/recipes-devtools/python/python3-sphinxcontrib-svg2pdfconverter_2.0.0.bb new file mode 100644 index 0000000000..52f9825210 --- /dev/null +++ b/meta/recipes-devtools/python/python3-sphinxcontrib-svg2pdfconverter_2.0.0.bb @@ -0,0 +1,19 @@ +SUMMARY = "Sphinx SVG to PDF or PNG converter extension" +HOMEPAGE = "https://github.com/missinglinkelectronics/sphinxcontrib-svg2pdfconverter" +LICENSE = "BSD-2-Clause" +LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=b11cf936853a71258d4b57bb1849a3f9" + +SRC_URI[sha256sum] = "ab9c8f1080391e231812d20abf2657a69ee35574563b1014414f953964a95fa3" + +inherit pypi python_setuptools_build_meta + +PYPI_PACKAGE = "sphinxcontrib-svg2pdfconverter" + +RDEPENDS:${PN} = "python3-sphinx" +# Only support sphinxcontrib.rsvgconverter for now. +# As cairosvgconverter depends on cairosvg module, no recipe available yet +# As inkscapeconverter depends on inkscape, recipe in meta-office, 3rd-party +# layer not updated in years +RDEPENDS:${PN} += "librsvg" + +BBCLASSEXTEND = "native nativesdk"