summaryrefslogtreecommitdiffstats
path: root/meta-gnome/recipes-gnome/gexiv2/gexiv2_0.14.6.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-gnome/recipes-gnome/gexiv2/gexiv2_0.14.6.bb')
-rw-r--r--meta-gnome/recipes-gnome/gexiv2/gexiv2_0.14.6.bb34
1 files changed, 34 insertions, 0 deletions
diff --git a/meta-gnome/recipes-gnome/gexiv2/gexiv2_0.14.6.bb b/meta-gnome/recipes-gnome/gexiv2/gexiv2_0.14.6.bb
new file mode 100644
index 0000000000..9d6cc7679a
--- /dev/null
+++ b/meta-gnome/recipes-gnome/gexiv2/gexiv2_0.14.6.bb
@@ -0,0 +1,34 @@
1SUMMARY = "A GObject-based Exiv2 wrapper"
2LICENSE = "GPL-2.0-only"
3LIC_FILES_CHKSUM = "file://COPYING;md5=625f055f41728f84a8d7938acc35bdc2"
4
5DEPENDS = "exiv2 python3-pygobject-native"
6
7GTKDOC_MESON_OPTION = "gtk_doc"
8
9inherit gnomebase gobject-introspection gtk-doc python3native vala
10
11SRC_URI[archive.sha256sum] = "606c28aaae7b1f3ef5c8eabe5e7dffd7c5a1c866d25b7671fb847fe287a72b8b"
12
13EXTRA_OEMESON = " \
14 ${@bb.utils.contains('GI_DATA_ENABLED', 'True', '-Dvapi=true', '-Dvapi=false', d)} \
15"
16
17PACKAGES =+ "${PN}-python3"
18FILES:${PN}-python3 = "${PYTHON_SITEPACKAGES_DIR}"
19RDEPENDS:${PN}-python3 = "${PN}"
20
21PACKAGE_PREPROCESS_FUNCS += "src_package_preprocess"
22src_package_preprocess () {
23 # Trim build paths from code in generated sources to ensure reproducibility
24 sed -i -e "s,${B}/../sources/${BP},${TARGET_DBGSRC_DIR},g" \
25 ${B}/gexiv2/gexiv2-enums.cpp
26}
27
28do_install:append() {
29 # gexiv2 harcodes usr/lib as install path, so this corrects it to actual libdir
30 if [ "${prefix}/lib" != "${libdir}" ]; then
31 mv ${D}/${prefix}/lib/* ${D}/${libdir}/
32 rm -rf ${D}/${prefix}/lib
33 fi
34}