From: Thomas Weißschuh Date: Mon, 14 Apr 2025 21:32:36 +0000 (+0200) Subject: meson: add feature for translated documentation X-Git-Tag: v2.41.1~42 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=fa3aeb51e14190ecc084c1ba03037fc2a9403343;p=thirdparty%2Futil-linux.git meson: add feature for translated documentation Translating the documentation is slow. Add a feature which can be used to disable this step. Signed-off-by: Thomas Weißschuh (cherry picked from commit 188f3af3e8f3c7effbdb4b91994f1b16db4874b5) --- diff --git a/meson_options.txt b/meson_options.txt index 8becfbdaa..1ec904668 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -25,6 +25,8 @@ option('sysvinit', type : 'feature', value : 'disabled', option('btrfs', type : 'feature') option('widechar', type : 'feature', description : 'compile with wide character support') +option('translate-docs', type : 'feature', + description : 'translate documentation') # enable building of various programs and features ("build-" prefix) diff --git a/po-man/meson.build b/po-man/meson.build index 7f702f466..291ba8399 100644 --- a/po-man/meson.build +++ b/po-man/meson.build @@ -1,6 +1,6 @@ po4a = find_program('po4a', required : false) -if not (asciidoctor.found() and po4a.found()) +if not get_option('translate-docs').require(asciidoctor.found()).require(po4a.found()).allowed() subdir_done() endif