Convert REINPLACE_CMD to patch file

This commit is contained in:
Sunpoet Po-Chuan Hsieh 2020-12-19 20:07:54 +00:00
parent 33279903bf
commit a4a78d0d99
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=558504
2 changed files with 13 additions and 4 deletions

View file

@ -17,11 +17,9 @@ LICENSE_COMB= dual
BUILD_DEPENDS= ${RUN_DEPENDS}
RUN_DEPENDS= p5-App-Options>=0:devel/p5-App-Options
NO_ARCH= yes
USE_PERL5= configure
USES= perl5
USE_PERL5= configure
post-patch:
@${REINPLACE_CMD} -e '/NAME/ s|App-Trace|App::Trace|' ${WRKSRC}/Makefile.PL
NO_ARCH= yes
.include <bsd.port.mk>

View file

@ -0,0 +1,11 @@
--- Makefile.PL.orig 2006-08-11 02:38:47 UTC
+++ Makefile.PL
@@ -8,7 +8,7 @@ use ExtUtils::MakeMaker;
# the contents of the Makefile that is written.
%opts = (
- 'NAME' => 'App-Trace',
+ 'NAME' => 'App::Trace',
'DISTNAME' => 'App-Trace',
'VERSION_FROM' => 'lib/App/Trace.pm',
'PREREQ_PM' => {