0001-meson-add-feature-for-translated-documentation.patch 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. From cd5038306e6815592fafbd06d406f45af2df3fcc Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= <[email protected]>
  3. Date: Mon, 14 Apr 2025 23:32:36 +0200
  4. Subject: [PATCH] meson: add feature for translated documentation
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. Translating the documentation is slow.
  9. Add a feature which can be used to disable this step.
  10. Signed-off-by: Thomas Weißschuh <[email protected]>
  11. ---
  12. meson_options.txt | 2 ++
  13. po-man/meson.build | 2 +-
  14. 2 files changed, 3 insertions(+), 1 deletion(-)
  15. --- a/meson_options.txt
  16. +++ b/meson_options.txt
  17. @@ -25,6 +25,8 @@ option('sysvinit', type : 'feature',
  18. option('btrfs', type : 'feature')
  19. option('widechar', type : 'feature',
  20. description : 'compile with wide character support')
  21. +option('translate-docs', type : 'feature',
  22. + description : 'translate documentation')
  23. # enable building of various programs and features ("build-" prefix)
  24. --- a/po-man/meson.build
  25. +++ b/po-man/meson.build
  26. @@ -1,6 +1,6 @@
  27. po4a = find_program('po4a', required : false)
  28. -if not (asciidoctor.found() and po4a.found())
  29. +if not get_option('translate-docs').require(asciidoctor.found()).require(po4a.found()).allowed()
  30. subdir_done()
  31. endif