git: 518e93cdb131 - main - devel/freebsd-gcc13: Moved man to share/man

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Sun, 28 Jan 2024 13:39:45 UTC
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=518e93cdb13175ec97be078e9a959fd6357fafd3

commit 518e93cdb13175ec97be078e9a959fd6357fafd3
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2024-01-28 01:21:30 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2024-01-28 13:39:24 +0000

    devel/freebsd-gcc13: Moved man to share/man
    
    Approved by:    portmgr (blanket)
---
 devel/freebsd-gcc13/Makefile  |  4 +++-
 devel/freebsd-gcc13/pkg-plist | 14 +++++++-------
 2 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/devel/freebsd-gcc13/Makefile b/devel/freebsd-gcc13/Makefile
index 8a398ae42ed8..b7536f2e7bdf 100644
--- a/devel/freebsd-gcc13/Makefile
+++ b/devel/freebsd-gcc13/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	gcc
 DISTVERSION=	13.2.0
+PORTREVISION=	1
 CATEGORIES=	devel
 MASTER_SITES=	GCC
 PKGNAMEPREFIX=	${TARGETARCH}-
@@ -39,6 +40,7 @@ SUB_LIST=	BU_PREFIX=${BU_PREFIX} \
 SUFFIX=		${PORTVERSION:C/([0-9]+).*/\1/}
 
 GNU_CONFIGURE=	yes
+GNU_CONFIGURE_MANPREFIX=${PREFIX}/share
 CONFIGURE_OUTSOURCE=	yes
 CONFIGURE_ARGS+=--target=${GCC_TARGET} --disable-nls --enable-languages=c,c++ \
 		--enable-gnu-indirect-function \
@@ -117,7 +119,7 @@ PLIST+=		${.CURDIR}/pkg-plist.i386
 post-install:
 	${RM} ${STAGEDIR}${PREFIX}/bin/${GCC_TARGET}-${GCC_TARGET}-*
 	${RM} ${STAGEDIR}${PREFIX}/share/info/*
-	${RM} ${STAGEDIR}${PREFIX}/man/man7/*
+	${RM} ${STAGEDIR}${PREFIX}/share/man/man7/*
 	${RM} -r ${STAGEDIR}${PREFIX}/lib/gcc/${GCC_TARGET}/${PORTVERSION}/include-fixed
 .if ${TARGETARCH} == "amd64" || ${TARGETARCH} == "i386"
 	# Conflicts with sys/x86/include/float.h
diff --git a/devel/freebsd-gcc13/pkg-plist b/devel/freebsd-gcc13/pkg-plist
index fba1fc43d718..75ef0812ba60 100644
--- a/devel/freebsd-gcc13/pkg-plist
+++ b/devel/freebsd-gcc13/pkg-plist
@@ -496,11 +496,11 @@ libexec/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/liblto_plugin.so
 libexec/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/lto-wrapper
 libexec/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/lto1
 %%PLUGINS%%libexec/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/gengtype
-man/man1/%%GCC_TARGET%%-cpp%%SUFFIX%%.1.gz
-man/man1/%%GCC_TARGET%%-g++%%SUFFIX%%.1.gz
-man/man1/%%GCC_TARGET%%-gcc%%SUFFIX%%.1.gz
-man/man1/%%GCC_TARGET%%-gcov%%SUFFIX%%.1.gz
-man/man1/%%GCC_TARGET%%-gcov-dump%%SUFFIX%%.1.gz
-man/man1/%%GCC_TARGET%%-gcov-tool%%SUFFIX%%.1.gz
-man/man1/%%GCC_TARGET%%-lto-dump%%SUFFIX%%.1.gz
+share/man/man1/%%GCC_TARGET%%-cpp%%SUFFIX%%.1.gz
+share/man/man1/%%GCC_TARGET%%-g++%%SUFFIX%%.1.gz
+share/man/man1/%%GCC_TARGET%%-gcc%%SUFFIX%%.1.gz
+share/man/man1/%%GCC_TARGET%%-gcov%%SUFFIX%%.1.gz
+share/man/man1/%%GCC_TARGET%%-gcov-dump%%SUFFIX%%.1.gz
+share/man/man1/%%GCC_TARGET%%-gcov-tool%%SUFFIX%%.1.gz
+share/man/man1/%%GCC_TARGET%%-lto-dump%%SUFFIX%%.1.gz
 share/toolchains/%%TARGETARCH%%-gcc%%SUFFIX%%.mk