2018-08-11.use-asciidoctor-to-build-manpages.patch 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. Subject: Use asciidoctor to build the manpages
  2. Author: Christoph Biedl <debian.axhn@manchmal.in-ulm.de>
  3. Date: 2018-08-11
  4. Bug: https://github.com/latchset/tang/issues/32
  5. --- a/meson.build
  6. +++ b/meson.build
  7. @@ -53,7 +53,7 @@
  8. add_project_arguments('-DVERSION="'+meson.project_version() + '"', language : 'c')
  9. jose = dependency('jose', version: '>=8')
  10. -a2x = find_program('a2x', required: false)
  11. +asciidoctor = find_program('asciidoctor', required: false)
  12. compiler = meson.get_compiler('c')
  13. http_lib = []
  14. @@ -89,16 +89,16 @@
  15. install_data(units, install_dir: systemunitdir)
  16. install_data(licenses, install_dir: licensedir)
  17. -if a2x.found()
  18. +if asciidoctor.found()
  19. foreach m : mans
  20. custom_target(m.split('/')[-1], input: m + '.adoc', output: m.split('/')[-1],
  21. - command: [a2x, '--attribute=' + build_machine.system(), '-f', 'manpage', '-D', meson.current_build_dir(), '@INPUT@'],
  22. + command: [asciidoctor, '--attribute', 'reproducible', '--backend=manpage', '-D', meson.current_build_dir(), '@INPUT@'],
  23. install_dir: join_paths(get_option('mandir'), 'man' + m.split('.')[-1]),
  24. install: true
  25. )
  26. endforeach
  27. else
  28. - warning('Will not build man pages due to missing a2x (asciidoc) dependency!')
  29. + warning('Will not build man pages due to missing asciidoctor dependency!')
  30. endif
  31. # vim:set ts=2 sw=2 et: