Created attachment 411312 [details] sys-apps/mdocml/mdocml-1.13.3.ebuild Per the official description: "mandoc [a.k.a. mdocml] is a suite of tools compiling mdoc, the roff macro language of choice for BSD manual pages, and man, the predominant historical language for UNIX manuals. It is small, ISO C, ISC-licensed, and quite fast. The main component of the toolset is the mandoc utility program, based on the libmandoc validating compiler, to format output for UNIX terminals (with support for wide-character locales), XHTML, HTML, PostScript, and PDF." Installation of this package does not conflict with sys-apps/groff or sys-apps/man. Note that I am not suggesting mandoc as a replacement for either, although it has recently been gaining traction among the *BSD projects for that purpose. Thanks.
I'm interested in picking this package up as a replacement for sys-apps/man and sys-apps/man-db I'm noticing a couple of caveats, though: 1. mdocml only supports reading uncompressed manpages, or manpages compressed with gzip, so the default PORTAGE_COMPRESS value will not work. 2. mdocml has interesting handling of the MANPATH environment variable, and I'm not 100% sure that it is respecting it. It does support the `manpath` executable, but that is provided by man-db -- we could ship a shell script that has the same functionality fairly easily, however.
i've updated it and merged it now. thanks! https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d4a7512865782207325e9a5ab22b5170e9c95745