git: 89ee1439e8ef - main - lang/gcc10: Moved man to share/man

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

URL: https://cgit.FreeBSD.org/ports/commit/?id=89ee1439e8ef0780d5d04bd2c454225f86510090

commit 89ee1439e8ef0780d5d04bd2c454225f86510090
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2024-01-27 16:56:13 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2024-01-27 23:07:02 +0000

    lang/gcc10: Moved man to share/man
    
    Approved by:    portmgr (blanket)
---
 lang/gcc10/Makefile  |  4 +++-
 lang/gcc10/pkg-plist | 16 ++++++++--------
 2 files changed, 11 insertions(+), 9 deletions(-)

diff --git a/lang/gcc10/Makefile b/lang/gcc10/Makefile
index 3085e5e90577..e78363dea074 100644
--- a/lang/gcc10/Makefile
+++ b/lang/gcc10/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	gcc
 PORTVERSION=	10.5.0
+PORTREVISION=	1
 CATEGORIES=	lang
 MASTER_SITES=	GCC
 PKGNAMESUFFIX=	${SUFFIX}
@@ -70,6 +71,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:MBOOTSTRAP)
 CONFIGURE_ARGS+=--disable-bootstrap
@@ -135,7 +137,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/gcc10/pkg-plist b/lang/gcc10/pkg-plist
index b9bd0e27dcef..e13a06bb13dc 100644
--- a/lang/gcc10/pkg-plist
+++ b/lang/gcc10/pkg-plist
@@ -18,14 +18,14 @@ bin/gcov-dump%%SUFFIX%%
 bin/gcov-tool%%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/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/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