aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2024-02-21 14:25:19 +0000
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2024-02-21 15:06:16 +0000
commit9fcc4614f255635e084565aa21fcc570d9df8ecb (patch)
tree4fcdd93b7dec728c5a60aa339946c543b2fd77f6
parenta9dfc750ea34c6017b5316e0ba260960cfefc32b (diff)
downloadports-9fcc4614f255635e084565aa21fcc570d9df8ecb.tar.gz
ports-9fcc4614f255635e084565aa21fcc570d9df8ecb.zip
audio/mp3lint: Convert REINPLACE_CMD to patch file
-rw-r--r--audio/mp3lint/Makefile5
-rw-r--r--audio/mp3lint/files/patch-Makefile.PL16
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(@_);