git: 9fcc4614f255 - main - audio/mp3lint: Convert REINPLACE_CMD to patch file

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Wed, 21 Feb 2024 15:17:56 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=9fcc4614f255635e084565aa21fcc570d9df8ecb

commit 9fcc4614f255635e084565aa21fcc570d9df8ecb
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-02-21 14:25:19 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-02-21 15:06:16 +0000

    audio/mp3lint: Convert REINPLACE_CMD to patch file
---
 audio/mp3lint/Makefile                |  5 -----
 audio/mp3lint/files/patch-Makefile.PL | 16 ++++++++++++++++
 2 files changed, 16 insertions(+), 5 deletions(-)

diff --git a/audio/mp3lint/Makefile b/audio/mp3lint/Makefile
index f0314f91a812..a811756d1f70 100644
--- a/audio/mp3lint/Makefile
+++ b/audio/mp3lint/Makefile
@@ -22,9 +22,4 @@ USE_PERL5=	configure
 MAKE_JOBS_UNSAFE=	yes
 NO_ARCH=	yes
 
-post-patch:
-	@${REINPLACE_CMD} -e '/^INSTALLSYSCONFDIR/ s|/etc|${PREFIX}&|' \
-		-e '/^INSTALLSITEMAN5DIR/ s|/man|/share&|' \
-		${WRKSRC}/Makefile.PL
-
 .include <bsd.port.mk>
diff --git a/audio/mp3lint/files/patch-Makefile.PL b/audio/mp3lint/files/patch-Makefile.PL
index 45ffffb53e4b..166b4cea75f5 100644
--- a/audio/mp3lint/files/patch-Makefile.PL
+++ b/audio/mp3lint/files/patch-Makefile.PL
@@ -1,5 +1,21 @@
 --- Makefile.PL.orig	2003-11-16 07:07:26 UTC
 +++ Makefile.PL
+@@ -39,13 +39,13 @@ DESTINSTALLMAN5DIR = $(DESTDIR)$(INSTALLMAN5DIR)
+ INST_MAN5DIR = blib/man5
+ INSTALLMAN5DIR = $(PREFIX)/man/man5
+ DESTINSTALLMAN5DIR = $(DESTDIR)$(INSTALLMAN5DIR)
+-INSTALLSITEMAN5DIR = $(SITEPREFIX)/man/man5
++INSTALLSITEMAN5DIR = $(SITEPREFIX)/share/man/man5
+ DESTINSTALLSITEMAN5DIR = $(DESTDIR)$(INSTALLSITEMAN5DIR)
+ INSTALLVENDORMAN5DIR = $(VENDORPREFIX)/man/man5
+ DESTINSTALLVENDORMAN5DIR = $(DESTDIR)$(INSTALLVENDORMAN5DIR)
+ MAN5EXT = 5
+ INST_SYSCONFDIR = blib/etc
+-INSTALLSYSCONFDIR = /etc
++INSTALLSYSCONFDIR = $(SITEPREFIX)/etc
+ DESTINSTALLSYSCONFDIR = $(DESTDIR)$(INSTALLSYSCONFDIR)	
+ # end mp3lint
+ 
 @@ -124,7 +124,7 @@ sub MY::install {
    my $self = shift;
    my $inherited = $self->SUPER::install(@_);