Can you please have a look if virtual/awk is sufficient or if gawk is needed.
${S}/doc/makeman.awk uses gensub (gawk only) to create the manpage