git: 8363a041b06a - main - www/p5-RT-Extension-MandatoryOnTransition: Moved man to share/man

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Mon, 26 Feb 2024 14:33:08 UTC
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8363a041b06aaa3173a71b9ed6e5d6ed4410b76d

commit 8363a041b06aaa3173a71b9ed6e5d6ed4410b76d
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2024-02-26 13:44:57 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2024-02-26 14:31:32 +0000

    www/p5-RT-Extension-MandatoryOnTransition: Moved man to share/man
    
    Approved by:    portmgr (blanket)
---
 www/p5-RT-Extension-MandatoryOnTransition/Makefile  | 4 ++++
 www/p5-RT-Extension-MandatoryOnTransition/pkg-plist | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/www/p5-RT-Extension-MandatoryOnTransition/Makefile b/www/p5-RT-Extension-MandatoryOnTransition/Makefile
index c04f23294e8c..4dceb5e8f9e6 100644
--- a/www/p5-RT-Extension-MandatoryOnTransition/Makefile
+++ b/www/p5-RT-Extension-MandatoryOnTransition/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	RT-Extension-MandatoryOnTransition
 DISTVERSION=	0.23
+PORTREVISION=	1
 CATEGORIES=	www net perl5
 MASTER_SITES=	CPAN
 
@@ -32,6 +33,9 @@ NO_ARCH=	yes
 
 PLIST_SUB+=	RT_VER=${RT_VER}
 
+post-patch:
+	@${REINPLACE_CMD} -e 's|LocalPath/man/man3|LocalPath/share/man/man3|g' ${WRKSRC}/inc/Module/Install/RTx.pm
+
 # Note: You can install using an arbitrary $PREFIX but only if it
 # matches the $PREFIX used to install www/rt{44,50}.  Hence ignore
 # $PREFIX in the environment and inherit settings from RT.pm
diff --git a/www/p5-RT-Extension-MandatoryOnTransition/pkg-plist b/www/p5-RT-Extension-MandatoryOnTransition/pkg-plist
index e3429db41ee4..1309078a73e9 100644
--- a/www/p5-RT-Extension-MandatoryOnTransition/pkg-plist
+++ b/www/p5-RT-Extension-MandatoryOnTransition/pkg-plist
@@ -1,4 +1,4 @@
-man/man3/RT::Extension::MandatoryOnTransition.3.gz
+share/man/man3/RT::Extension::MandatoryOnTransition.3.gz
 share/rt%%RT_VER%%/plugins/RT-Extension-MandatoryOnTransition/html/Callbacks/RT-Extension-MandatoryOnTransition/Elements/EditCustomFields/BeforeCustomFields
 share/rt%%RT_VER%%/plugins/RT-Extension-MandatoryOnTransition/html/Callbacks/RT-Extension-MandatoryOnTransition/Elements/EditCustomFields/MassageCustomFields
 share/rt%%RT_VER%%/plugins/RT-Extension-MandatoryOnTransition/html/Callbacks/RT-Extension-MandatoryOnTransition/Helpers/TicketUpdate/ProcessArguments