Re: git: c841c52f8c28 - main - x11/sfwbar: Install mans to share and sort plist.

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Fri, 12 Jan 2024 12:38:45 UTC
Moin Rahman <bofh@freebsd.org> writes:

>> diff --git a/Mk/Uses/meson.mk b/Mk/Uses/meson.mk
>> index ae997ae1a337..3a6ae041ff97 100644
>> --- a/Mk/Uses/meson.mk
>> +++ b/Mk/Uses/meson.mk
>> @@ -33,7 +33,7 @@ BUILD_DEPENDS+= meson:devel/meson
>> USE_LOCALE?= en_US.UTF-8
>> 
>> CONFIGURE_ARGS+= --prefix ${PREFIX} \
>> - --mandir man \
>> + --mandir share/man \
>> --infodir ${INFO_PATH}
>> 
>> # Enable all optional features to make builds deterministic. Consumers can
>
> Incoming tonight.

--mandir should be dropped. get_option('mandir') returns 'share/man' even
if --mandir wasn't explicitly passed, so testing difference is unlikely.

# From meson-1.3.1/mesonbuild/utils/universal.py
def default_mandir() -> str:
    if is_haiku():
        return 'documentation/man'
    return 'share/man'