diff mbox series

[meta-gnome,07/15] gexiv2-0.14: add recipe for the 0.14 series

Message ID 20260906093713.797648-7-f_l_k@t-online.de
State New
Headers show
Series [meta-gnome,01/15] gnome-settings-daemon: upgrade 49.1 -> 50.1 | expand

Commit Message

Markus Volk Sept. 6, 2026, 9:37 a.m. UTC
gexiv2 0.16 switched to a versioned library, pkg-config module, header
directory and GIR namespace, so it installs in parallel to 0.14. GNOME 50
applications need 0.16 while GIMP still requires gexiv2 < 0.15, so keep
the 0.14 series under its own name. The command line tool and the python
override are disabled here to avoid file clashes with the main recipe.

Build tested on corei7-64.

AI-Generated: Uses Claude Code (Claude Fable 5.1)
Signed-off-by: Markus Volk <f_l_k@t-online.de>
---
 .../gexiv2/gexiv2-0.14_0.14.6.bb              | 34 +++++++++++++++++++
 1 file changed, 34 insertions(+)
 create mode 100644 meta-gnome/recipes-gnome/gexiv2/gexiv2-0.14_0.14.6.bb
diff mbox series

Patch

diff --git a/meta-gnome/recipes-gnome/gexiv2/gexiv2-0.14_0.14.6.bb b/meta-gnome/recipes-gnome/gexiv2/gexiv2-0.14_0.14.6.bb
new file mode 100644
index 0000000000..a193831a23
--- /dev/null
+++ b/meta-gnome/recipes-gnome/gexiv2/gexiv2-0.14_0.14.6.bb
@@ -0,0 +1,34 @@ 
+SUMMARY = "A GObject-based Exiv2 wrapper"
+DESCRIPTION = "The 0.14 series of gexiv2 for applications that don't support the \
+versioned gexiv2-0.16 API yet, most notably GIMP. It installs in parallel to the \
+current gexiv2 recipe: the library, pkg-config module, header directory and GIR \
+namespace version differ. The command line tool and the python override are not \
+built here because their files would clash with the current version."
+LICENSE = "GPL-2.0-only"
+LIC_FILES_CHKSUM = "file://COPYING;md5=625f055f41728f84a8d7938acc35bdc2"
+
+DEPENDS = "exiv2"
+
+GNOMEBN = "gexiv2"
+
+GTKDOC_MESON_OPTION = "gtk_doc"
+
+inherit gnomebase gobject-introspection gtk-doc vala
+
+SRC_URI[archive.sha256sum] = "606c28aaae7b1f3ef5c8eabe5e7dffd7c5a1c866d25b7671fb847fe287a72b8b"
+
+# The command line tool and the python override would clash with the files
+# installed by the current gexiv2 recipe.
+# AI-Generated: this recipe was created with Claude Code.
+EXTRA_OEMESON = " \
+    -Dpython3=false \
+    -Dtools=false \
+    ${@bb.utils.contains('GI_DATA_ENABLED', 'True', '-Dvapi=true', '-Dvapi=false', d)} \
+"
+
+PACKAGE_PREPROCESS_FUNCS += "src_package_preprocess"
+src_package_preprocess () {
+        # Trim build paths from code in generated sources to ensure reproducibility
+        sed -i -e "s,${B}/../sources/${GNOMEBN}-${PV},${TARGET_DBGSRC_DIR},g" \
+            ${B}/gexiv2/gexiv2-enums.cpp
+}