$OpenBSD: patch-doc_meson_build,v 1.4 2019/08/06 17:16:13 landry Exp $

only build manpage, and install it in correct dir

Index: doc/meson.build
--- doc/meson.build.orig
+++ doc/meson.build
@@ -1,19 +1,9 @@
 custom_target(
-  'HTML documentation',
-  output: 'html',
-  input: ['index.rst', 'conf.py'],
-  command: [sphinx, '-q', '-b', 'html', '-d', '@OUTDIR@/html_doctrees', meson.current_source_dir(), '@OUTPUT@'],
-  build_by_default: true,
-  install: true,
-  install_dir: join_paths(get_option('datadir'), 'doc', meson.project_name()),
-)
-
-custom_target(
   'Manpage documentation',
-  output: 'man',
+  output: 'man1',
   input: ['index.rst', 'conf.py'],
-  command: [sphinx, '-q', '-b', 'man', '-d', '@OUTDIR@/man_doctrees', meson.current_source_dir(), '@OUTPUT@/man1'],
+  command: [sphinx, '-q', '-b', 'man', '-d', '@OUTDIR@/man_doctrees', meson.current_source_dir(), '@OUTPUT@'],
   build_by_default: true,
   install: true,
-  install_dir: get_option('datadir'),
+  install_dir: get_option('mandir'),
 )
