From 3e6c0ba4fda9caba3a2916aae83c37823841f3ac Mon Sep 17 00:00:00 2001 From: ajacoutot Date: Fri, 26 Aug 2022 10:36:28 +0000 Subject: [PATCH] Revert upstream commit about export_packages for generate_gir; there is no corresponding versioned pkgconfig file which break Gir generation for graphics/libmypaint. --- graphics/babl/Makefile | 1 + graphics/babl/patches/patch-babl_meson_build | 23 ++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 graphics/babl/patches/patch-babl_meson_build diff --git a/graphics/babl/Makefile b/graphics/babl/Makefile index 581f8d11832..69581f2472e 100644 --- a/graphics/babl/Makefile +++ b/graphics/babl/Makefile @@ -3,6 +3,7 @@ COMMENT= dynamic pixel format conversion library V= 0.1.96 DISTNAME= babl-${V} EXTRACT_SUFX= .tar.xz +REVISION= 0 API_VERSION= ${V:R} SUBST_VARS= API_VERSION diff --git a/graphics/babl/patches/patch-babl_meson_build b/graphics/babl/patches/patch-babl_meson_build new file mode 100644 index 00000000000..6e2257a0688 --- /dev/null +++ b/graphics/babl/patches/patch-babl_meson_build @@ -0,0 +1,23 @@ +REVERT: +From 1cd557ce6873b08e66e0434a5ff8b2a2faa97f7b Mon Sep 17 00:00:00 2001 +From: Lukas Oberhuber +Date: Tue, 5 Jul 2022 15:07:34 +0000 +Subject: [PATCH] meson: fix export_packages for generate_gir + +This commit broke graphics/libmypaint Gir generation with: +Package babl-0.1 was not found in the pkg-config search path +(there is no lib/pkgconfig/babl-0.1.pc, only babl.pc) + +https://gitlab.gnome.org/GNOME/babl/-/issues/80 + +Index: babl/meson.build +--- babl/meson.build.orig ++++ babl/meson.build +@@ -156,7 +156,6 @@ if build_gir + namespace: 'Babl', + nsversion: api_version, + header: 'babl.h', +- export_packages: 'babl-0.1', + install: true, + ) +