diff options
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.bb | 34 |
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 @@ | |||
1 | SUMMARY = "A GObject-based Exiv2 wrapper" | ||
2 | LICENSE = "GPL-2.0-only" | ||
3 | LIC_FILES_CHKSUM = "file://COPYING;md5=625f055f41728f84a8d7938acc35bdc2" | ||
4 | |||
5 | DEPENDS = "exiv2 python3-pygobject-native" | ||
6 | |||
7 | GTKDOC_MESON_OPTION = "gtk_doc" | ||
8 | |||
9 | inherit gnomebase gobject-introspection gtk-doc python3native vala | ||
10 | |||
11 | SRC_URI[archive.sha256sum] = "606c28aaae7b1f3ef5c8eabe5e7dffd7c5a1c866d25b7671fb847fe287a72b8b" | ||
12 | |||
13 | EXTRA_OEMESON = " \ | ||
14 | ${@bb.utils.contains('GI_DATA_ENABLED', 'True', '-Dvapi=true', '-Dvapi=false', d)} \ | ||
15 | " | ||
16 | |||
17 | PACKAGES =+ "${PN}-python3" | ||
18 | FILES:${PN}-python3 = "${PYTHON_SITEPACKAGES_DIR}" | ||
19 | RDEPENDS:${PN}-python3 = "${PN}" | ||
20 | |||
21 | PACKAGE_PREPROCESS_FUNCS += "src_package_preprocess" | ||
22 | src_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 | |||
28 | do_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 | } | ||