diff options
Diffstat (limited to 'print/p5-PDF-Template')
-rw-r--r-- | print/p5-PDF-Template/Makefile | 8 | ||||
-rw-r--r-- | print/p5-PDF-Template/files/extrapatch-Makefile.PL | 15 |
2 files changed, 22 insertions, 1 deletions
diff --git a/print/p5-PDF-Template/Makefile b/print/p5-PDF-Template/Makefile index 25bc08939eba..b96dd7e452b8 100644 --- a/print/p5-PDF-Template/Makefile +++ b/print/p5-PDF-Template/Makefile @@ -16,4 +16,10 @@ RUN_DEPENDS= pdflib-perl>=0:print/pdflib-perl \ USES= perl5 USE_PERL5= configure -.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/print/p5-PDF-Template/files/extrapatch-Makefile.PL b/print/p5-PDF-Template/files/extrapatch-Makefile.PL new file mode 100644 index 000000000000..88447806c06a --- /dev/null +++ b/print/p5-PDF-Template/files/extrapatch-Makefile.PL @@ -0,0 +1,15 @@ +fix sh: Syntax error: Unterminated quoted string + +--- Makefile.PL.orig 2025-07-13 09:16:55 UTC ++++ Makefile.PL +@@ -28,8 +28,8 @@ my $pm_filter = $use_unicode + } + + my $pm_filter = $use_unicode +- ? q{perl -pi -e "s!UNI_YES ! !g;s!UNI_NO !\\#!g"} +- : q{perl -pi -e "s!UNI_NO ! !g;s!UNI_YES !\\#!g"}; ++ ? q{sed -e "s/UNI_YES//g;s/UNI_NO.*//g"} ++ : q{sed -e "s/UNI_NO//g;s/UNI_YES.*//g"}; + + WriteMakefile( + NAME => 'PDF::Template', |