diff options
Diffstat (limited to 'databases/p5-POE-Component-RRDTool')
-rw-r--r-- | databases/p5-POE-Component-RRDTool/Makefile | 8 | ||||
-rw-r--r-- | databases/p5-POE-Component-RRDTool/files/extrapatch-Makefile.PL | 14 |
2 files changed, 21 insertions, 1 deletions
diff --git a/databases/p5-POE-Component-RRDTool/Makefile b/databases/p5-POE-Component-RRDTool/Makefile index 907adc1166d8..e3b22a35fea8 100644 --- a/databases/p5-POE-Component-RRDTool/Makefile +++ b/databases/p5-POE-Component-RRDTool/Makefile @@ -24,4 +24,10 @@ CONFIGURE_ARGS= </dev/null post-patch: @${REINPLACE_CMD} -e 's|($$maj, $$min, $$sub)|&; &|' ${WRKSRC}/Makefile.PL -.include <bsd.port.mk> +.include <bsd.port.pre.mk> + +.if ${PERL_LEVEL} >= 504200 +EXTRA_PATCHES= ${PATCHDIR}/extrapatch-Makefile.PL +.endif + +.include <bsd.port.post.mk> diff --git a/databases/p5-POE-Component-RRDTool/files/extrapatch-Makefile.PL b/databases/p5-POE-Component-RRDTool/files/extrapatch-Makefile.PL new file mode 100644 index 000000000000..f980543c8932 --- /dev/null +++ b/databases/p5-POE-Component-RRDTool/files/extrapatch-Makefile.PL @@ -0,0 +1,14 @@ +fix sh: Syntax error: Unterminated quoted string + Filter command '"sed" "-e" "s\"' failed + +--- Makefile.PL.orig 2025-07-13 08:56:55 UTC ++++ Makefile.PL +@@ -21,7 +21,7 @@ WriteMakefile( + 'PREREQ_PM' => { + 'POE' => '0.22', + }, +- PM_FILTER => "sed -e s\\#__DEFAULT_RRDTOOL__\\#${DEFAULT_RRDTOOL}\\#g -e s\\#__RRDTOOL_VERSION__\\#${RRDTOOL_VERSION}\\#g", ++ PM_FILTER => "sed -e s=__DEFAULT_RRDTOOL__=${DEFAULT_RRDTOOL}=g -e s=__RRDTOOL_VERSION__=${RRDTOOL_VERSION}=g", + (($] ge '5.005') ? + ( 'AUTHOR' => 'Todd Caine <todd@pobox.com>', + 'ABSTRACT' => 'POE interface to Tobias Oetiker\'s RRDTool', |