]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
meson: add feature for translated documentation
authorThomas Weißschuh <thomas@t-8ch.de>
Mon, 14 Apr 2025 21:32:36 +0000 (23:32 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Mon, 14 Apr 2025 21:47:42 +0000 (23:47 +0200)
Translating the documentation is slow.
Add a feature which can be used to disable this step.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
meson_options.txt
po-man/meson.build

index 8becfbdaab3461985e957ff8a2cbda2eb12bcf8c..1ec904668be8bd420b99d653daec560d538159c3 100644 (file)
@@ -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)
 
index 7f702f466f7a59360676c8a7f8c8101cfd2e50ed..291ba8399612bde4edab1cb8c3b5fe25c3f66e89 100644 (file)
@@ -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