From 85809279ceef66e68b25eac8c3918bee6762f6cc Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 25 Feb 2024 17:40:36 +0000 Subject: gentoo auto-resync : 25:02:2024 - 17:40:36 --- net-mail/mu/files/mu-1.12.0-cld2-opt.patch | 36 ++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 net-mail/mu/files/mu-1.12.0-cld2-opt.patch (limited to 'net-mail/mu/files') diff --git a/net-mail/mu/files/mu-1.12.0-cld2-opt.patch b/net-mail/mu/files/mu-1.12.0-cld2-opt.patch new file mode 100644 index 000000000000..124675868670 --- /dev/null +++ b/net-mail/mu/files/mu-1.12.0-cld2-opt.patch @@ -0,0 +1,36 @@ +https://github.com/djcb/mu/pull/2632 + +--- a/meson.build ++++ b/meson.build +@@ -189,11 +189,11 @@ else + endif + + # optionally, use Compact Language Detector2 if we can find it. +-cld2_dep = meson.get_compiler('cpp').find_library('cld2', required: false) +-if cld2_dep.found() ++cld2_dep = meson.get_compiler('cpp').find_library('cld2', required: get_option('cld2')) ++if not get_option('cld2').disabled() and cld2_dep.found() + config_h_data.set('HAVE_CLD2', 1) + else +- message('CLD2 not found; no support for language detection') ++ message('CLD2 not found or disabled; no support for language detection') + endif + + # note: these are for the unit-tests +--- a/meson_options.txt ++++ b/meson_options.txt +@@ -24,6 +24,11 @@ option('guile', + value: 'auto', + description: 'build the guile scripting support (requires guile-3.x)') + ++option('cld2', ++ type : 'feature', ++ value: 'auto', ++ description: 'Compact Language Detector2') ++ + # by default, this uses guile_dep.get_variable(pkgconfig: 'extensiondir') + option('guile-extension-dir', + type: 'string', +-- +2.44.0 + -- cgit v1.2.3