aboutsummaryrefslogtreecommitdiff
path: root/converters
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2020-05-08 20:50:58 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2020-05-08 20:50:58 +0000
commit170e3f4d0465c2340d7e4e9164e1ecf94ecd8147 (patch)
treece5acb8b9223939b1bb7accc35aaa676a12c8102 /converters
parentbf6c9178149128e3f260717f77b008f951946c44 (diff)
downloadports-170e3f4d0465c2340d7e4e9164e1ecf94ecd8147.tar.gz
ports-170e3f4d0465c2340d7e4e9164e1ecf94ecd8147.zip
Notes
Diffstat (limited to 'converters')
-rw-r--r--converters/p5-JSON-PP/Makefile3
-rw-r--r--converters/p5-JSON-PP/files/patch-Makefile.PL11
2 files changed, 12 insertions, 2 deletions
diff --git a/converters/p5-JSON-PP/Makefile b/converters/p5-JSON-PP/Makefile
index 81657d1ae82d..692952b0fd8e 100644
--- a/converters/p5-JSON-PP/Makefile
+++ b/converters/p5-JSON-PP/Makefile
@@ -21,8 +21,7 @@ USE_PERL5= configure
NO_ARCH= yes
-pre-patch:
+post-patch:
@${MV} ${WRKSRC}/bin/json_pp ${WRKSRC}/bin/p5json_pp
- @${REINPLACE_CMD} -e 's|bin/json_pp|bin/p5json_pp|' ${WRKSRC}/MANIFEST ${WRKSRC}/Makefile.PL
.include <bsd.port.mk>
diff --git a/converters/p5-JSON-PP/files/patch-Makefile.PL b/converters/p5-JSON-PP/files/patch-Makefile.PL
new file mode 100644
index 000000000000..82a8d945e74e
--- /dev/null
+++ b/converters/p5-JSON-PP/files/patch-Makefile.PL
@@ -0,0 +1,11 @@
+--- Makefile.PL.orig 2019-02-18 16:03:19 UTC
++++ Makefile.PL
+@@ -24,7 +24,7 @@ WriteMakefile(
+ 'Test::More' => 0,
+ %prereq,
+ },
+- 'EXE_FILES' => [ 'bin/json_pp' ],
++ 'EXE_FILES' => [ 'bin/p5json_pp' ],
+ ($] >= 5.005 ? ## Add these new keywords supported since 5.005
+ (ABSTRACT_FROM => 'lib/JSON/PP.pm', # retrieve abstract from module
+ AUTHOR => 'Makamaka Hannyaharamitu, E<lt>makamaka[at]cpan.orgE<gt>') : ()),