git: a8d774d9708c - main - man: Conditionally install ar.5 in toolchain package

From: Ed Maste <emaste_at_FreeBSD.org>
Date: Fri, 03 Oct 2025 17:20:05 UTC
The branch main has been updated by emaste:

URL: https://cgit.FreeBSD.org/src/commit/?id=a8d774d9708c100a52f231065d9d5f1b4c3aceb7

commit a8d774d9708c100a52f231065d9d5f1b4c3aceb7
Author:     Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2025-10-03 16:02:20 +0000
Commit:     Ed Maste <emaste@FreeBSD.org>
CommitDate: 2025-10-03 17:19:36 +0000

    man: Conditionally install ar.5 in toolchain package
    
    Previously if WITHOUT_TOOLCHAIN was set we'd create a FreeBSD-clang
    package that contained only ar.5.  As ar.5 describes the ar format
    and doesn't come from Clang/LLVM move it to the FreeBSD-toolchain
    package and make it conditional on MK_TOOLCHAIN.
    
    Reviewed by:    ivy
    Sponsored by:   The FreeBSD Foundation
    Differential Revision: https://reviews.freebsd.org/D52886
---
 share/man/man5/Makefile | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/share/man/man5/Makefile b/share/man/man5/Makefile
index 0f6559b236c6..c13a8b7afde2 100644
--- a/share/man/man5/Makefile
+++ b/share/man/man5/Makefile
@@ -73,9 +73,11 @@ MANGROUPS+=	BOOTLOADER
 BOOTLOADER=	device.hints.5
 BOOTLOADERPACKAGE=bootloader
 
-MANGROUPS+=	CLANG
-CLANG=		ar.5
-CLANGPACKAGE=	clang
+.if ${MK_TOOLCHAIN} != "no"
+MANGROUPS+=	TOOLCHAIN
+TOOLCHAIN=	ar.5
+TOOLCHAINPACKAGE=toolchain
+.endif
 
 MANGROUPS+=	LP
 LP=		hosts.lpd.5