Check for 'rst2man' misses installed 'rst2man.py' (#4728)
authoraneejit1 <aneejit1@gmail.com>
Sat, 19 Mar 2022 10:41:32 +0000 (10:41 +0000)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 21 Apr 2022 23:13:54 +0000 (19:13 -0400)
By default, 'docutils' installs 'rst2man' as 'rst2man.py'. Amend the
check for 'rst2man' to look for 'rst2man.py' as well if 'rst2man' is
not found.

docs/reference/gtk/meson.build

index 441207c2b270dff3297d0eff4a7ebb2426c29b8a..a7af607b9198ded383755d76164c11466ad77c39 100644 (file)
@@ -57,7 +57,7 @@ if get_option('gtk_doc')
   )
 endif
 
-rst2man = find_program('rst2man', required: false)
+rst2man = find_program('rst2man', 'rst2man.py', required: false)
 if get_option('man-pages') and not rst2man.found()
   error('No rst2man found, but man pages were explicitly enabled')
 endif