blob: 15091d4cd4edd8b9bae40e3684441b766acf2f8f [file] [log] [blame]
Andrew Geissler595f6302022-01-24 19:11:47 +00001SUMMARY = "A GObject-based Exiv2 wrapper"
Andrew Geissler9aee5002022-03-30 16:27:02 +00002LICENSE = "GPL-2.0-only"
Andrew Geissler595f6302022-01-24 19:11:47 +00003LIC_FILES_CHKSUM = "file://COPYING;md5=625f055f41728f84a8d7938acc35bdc2"
4
5DEPENDS = "exiv2 python3-pygobject-native"
6
7GNOMEBASEBUILDCLASS = "meson"
8GTKDOC_MESON_OPTION = "gtk_doc"
9
Andrew Geissler220dafd2023-10-04 10:18:08 -050010inherit gnomebase gobject-introspection gtk-doc python3native vala
Andrew Geissler595f6302022-01-24 19:11:47 +000011
Andrew Geissler220dafd2023-10-04 10:18:08 -050012SRC_URI[archive.sha256sum] = "2a0c9cf48fbe8b3435008866ffd40b8eddb0667d2212b42396fdf688e93ce0be"
Andrew Geissler595f6302022-01-24 19:11:47 +000013
14EXTRA_OEMESON = " \
Andrew Geissler220dafd2023-10-04 10:18:08 -050015 ${@bb.utils.contains('GI_DATA_ENABLED', 'True', '-Dvapi=true', '-Dvapi=false', d)} \
Andrew Geissler595f6302022-01-24 19:11:47 +000016"
17
18PACKAGES =+ "${PN}-python3"
19FILES:${PN}-python3 = "${PYTHON_SITEPACKAGES_DIR}"
20RDEPENDS:${PN}-python3 = "${PN}"
Andrew Geissler87f5cff2022-09-30 13:13:31 -050021
22PACKAGE_PREPROCESS_FUNCS += "src_package_preprocess"
23src_package_preprocess () {
24 # Trim build paths from comments in generated sources to ensure reproducibility
25 sed -i -e "s,${B}/../${BPN}-${PV}/${BPN}/,,g" \
26 ${B}/gexiv2/gexiv2-enums.cpp
27}