69.3. gtk-doc-1.36.1
The m4 macro and gtk-doc.make that GNOME-lineage autotools projects include
The build-state snapshot was taken from 1.36.1-1; this recipe is 1.36.1-2, so the size, time and contents below describe the earlier build.
1.36.1-2 · GPL-2.0-or-later · 0.1 SBU · 1.0 MiB, 67 files · 40_lang, 38 of 186 · ports/core/doctools/gtk-doc
Homepage: https://gitlab.gnome.org/GNOME/gtk-doc
Why it is in KDOS. The comment above it in script/phases/40_lang/packages.d/doctools.txt:
Here for its m4 MACRO, not its documentation: a GNOME-lineage configure.ac calls GTK_DOC_CHECK, and a missing m4 macro survives into the generated configure as a literal rather than failing at aclocal time.
gtk-doc builds the API reference of a C library from the comments in its sources, as GLib, GTK and many GNOME libraries write them. A library’s build runs its gtkdoc-* tools when it is configured with its documentation on.
The port is also needed when the documentation is off. An autotools project that uses gtk-doc runs gtkdocize before autoreconf, which links (or copies) gtk-doc.make and the gtk-doc.m4 macro into the source; without them its configure cannot be generated. gmime is built that way, running gtkdocize and then configuring with --disable-gtk-doc.
Depends on: meson, ninja, python3, python3-pygments, python3-lxml, libxslt, docbook-xsl.
Required by (2): gmime, thermald.
Sources: gtk-doc-1.36.1.tar.xz (580.1 KiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/40_lang/phase.env && kpkg install gtk-doc'
build.sh:
meson setup build --prefix=/usr --libdir=lib --buildtype=release \
-Dautotools_support=true -Dcmake_support=true \
-Dyelp_manual=false -Dtests=false
meson compile -C build
DESTDIR=$PKG meson install --no-rebuild -C build
-Dautotools_support=true,-Dcmake_support=true— Install the autotools files above and the CMake module for projects that build with CMake. Both are upstream’s defaults, stated.-Dyelp_manual=false— Build no gtk-doc user manual, which needs yelp-tools; the tree does not carry it.-Dtests=false— Build no test suite, which needs GLib, which is not in gtk-doc’sdepends, and the Python moduleparameterized, which the tree does not carry.
Programs: gtkdoc-check, gtkdoc-depscan, gtkdoc-fixxref, gtkdoc-mkdb, gtkdoc-mkhtml, gtkdoc-mkhtml2, gtkdoc-mkman, gtkdoc-mkpdf, gtkdoc-rebase, gtkdoc-scan, gtkdoc-scangobj, gtkdocize.
Directories: /usr/lib/cmake/GtkDoc, /usr/share/gtk-doc/data, /usr/share/gtk-doc/python, /usr/share/licenses/gtk-doc.
python3-pygments and python3-lxml are in depends because the tools import them every time they run: gtkdoc-mkhtml and gtkdoc-fixxref highlight code examples with Pygments, through gtkdoc/highlight.py, and gtkdoc-mkhtml2 imports lxml’s etree when it starts. Nothing else in gtk-doc’s own depends chain installs lxml, and Pygments arrives only through build-only ports (Doxygen, CMake and Sphinx, behind libxml2), so an install from prebuilt packages would otherwise lack one or both.