git: 83c2eff52ae2 - main - lang/gcc11: Moved man to share/man

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Sat, 27 Jan 2024 23:07:29 UTC
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=83c2eff52ae2914ceb5a189e3dd4654d2e51ea08

commit 83c2eff52ae2914ceb5a189e3dd4654d2e51ea08
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2024-01-27 17:52:27 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2024-01-27 23:07:03 +0000

    lang/gcc11: Moved man to share/man
    
    Approved by:    portmgr (blanket)
---
 lang/gcc11/Makefile  |  4 +++-
 lang/gcc11/pkg-plist | 18 +++++++++---------
 2 files changed, 12 insertions(+), 10 deletions(-)

diff --git a/lang/gcc11/Makefile b/lang/gcc11/Makefile
index 0297b36f653d..a2fc68a4418d 100644
--- a/lang/gcc11/Makefile
+++ b/lang/gcc11/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	gcc
 PORTVERSION=	11.4.0
+PORTREVISION=	1
 CATEGORIES=	lang
 MASTER_SITES=	GCC
 PKGNAMESUFFIX=	${SUFFIX}
@@ -87,6 +88,7 @@ TARGLIB=	${PREFIX}/lib/gcc${SUFFIX}
 TARGLIB32=	${PREFIX}/lib32	# The version information is added later
 LIBEXEC=	${PREFIX}/libexec/gcc${SUFFIX}
 GNU_CONFIGURE=	yes
+GNU_CONFIGURE_MANPREFIX=${PREFIX}/share
 CONFIGURE_OUTSOURCE=	yes
 .if empty(PORT_OPTIONS:M*BOOTSTRAP)
 CONFIGURE_ARGS+=--disable-bootstrap
@@ -160,7 +162,7 @@ full-regression-test: build
 .endif
 
 post-stage:
-	${RM} ${STAGEDIR}${PREFIX}/man/man7/*
+	${RM} ${STAGEDIR}${PREFIX}/share/man/man7/*
 	${RM} -r ${STAGEDIR}${TARGLIB}/gcc/*/${GCC_VERSION}/include-fixed/
 	# Add target libraries and include files to packaging list.
 	${RM} ${WRKDIR}/PLIST.lib
diff --git a/lang/gcc11/pkg-plist b/lang/gcc11/pkg-plist
index b55927fab0f9..7ea0244d761c 100644
--- a/lang/gcc11/pkg-plist
+++ b/lang/gcc11/pkg-plist
@@ -20,15 +20,15 @@ bin/gcov-tool%%SUFFIX%%
 bin/gdc%%SUFFIX%%
 bin/gfortran%%SUFFIX%%
 bin/lto-dump%%SUFFIX%%
-man/man1/cpp%%SUFFIX%%.1.gz
-man/man1/g++%%SUFFIX%%.1.gz
-man/man1/gcc%%SUFFIX%%.1.gz
-man/man1/gcov%%SUFFIX%%.1.gz
-man/man1/gcov-dump%%SUFFIX%%.1.gz
-man/man1/gcov-tool%%SUFFIX%%.1.gz
-man/man1/gdc%%SUFFIX%%.1.gz
-man/man1/gfortran%%SUFFIX%%.1.gz
-man/man1/lto-dump%%SUFFIX%%.1.gz
+share/man/man1/cpp%%SUFFIX%%.1.gz
+share/man/man1/g++%%SUFFIX%%.1.gz
+share/man/man1/gcc%%SUFFIX%%.1.gz
+share/man/man1/gcov%%SUFFIX%%.1.gz
+share/man/man1/gcov-dump%%SUFFIX%%.1.gz
+share/man/man1/gcov-tool%%SUFFIX%%.1.gz
+share/man/man1/gdc%%SUFFIX%%.1.gz
+share/man/man1/gfortran%%SUFFIX%%.1.gz
+share/man/man1/lto-dump%%SUFFIX%%.1.gz
 share/gcc-%%GCC_VERSION%%/python/libstdcxx/__init__.py
 share/gcc-%%GCC_VERSION%%/python/libstdcxx/v6/__init__.py
 share/gcc-%%GCC_VERSION%%/python/libstdcxx/v6/printers.py