db-move: moved lib2geom from [testing] to [extra] (x86_64)
[arch-packages.git] / freetype2 / trunk / 0005-builds-meson-parse_modules_cfg.py-Handle-gxvalid-and.patch
blob1e7eb4e135e21d39aff63f525a0a517e04965f0e
1 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2 From: "Jan Alexander Steffens (heftig)" <heftig@archlinux.org>
3 Date: Thu, 9 Feb 2023 19:22:47 +0000
4 Subject: [PATCH] * builds/meson/parse_modules_cfg.py: Handle gxvalid and
5 otvalid
7 These need a name mapping similar to what was done for other modules,
8 or linking will fail.
9 ---
10 builds/meson/parse_modules_cfg.py | 6 +++++-
11 1 file changed, 5 insertions(+), 1 deletion(-)
13 diff --git a/builds/meson/parse_modules_cfg.py b/builds/meson/parse_modules_cfg.py
14 index 6030bb2098df..d48129fe72e1 100644
15 --- a/builds/meson/parse_modules_cfg.py
16 +++ b/builds/meson/parse_modules_cfg.py
17 @@ -97,8 +97,12 @@ def generate_ftmodule(lists):
19 for module in lists["AUX_MODULES"]:
20 if module in ("psaux", "psnames", "otvalid", "gxvalid"):
21 + name = {
22 + "gxvalid": "gxv",
23 + "otvalid": "otv",
24 + }.get(module, module)
25 result += (
26 - "FT_USE_MODULE( FT_Module_Class, %s_module_class )\n" % module
27 + "FT_USE_MODULE( FT_Module_Class, %s_module_class )\n" % name
30 result += "/* EOF */\n"