diff options
Diffstat (limited to 'lang/perl5.40')
-rw-r--r-- | lang/perl5.40/Makefile | 5 | ||||
-rw-r--r-- | lang/perl5.40/files/patch-cpan_JSON-PP_bin_json__pp | 11 |
2 files changed, 16 insertions, 0 deletions
diff --git a/lang/perl5.40/Makefile b/lang/perl5.40/Makefile index 5010360ae6c1..59644a99c946 100644 --- a/lang/perl5.40/Makefile +++ b/lang/perl5.40/Makefile @@ -1,5 +1,6 @@ PORTNAME= perl DISTVERSION= ${PERL_VERSION} +PORTREVISION= 2 CATEGORIES= lang devel perl5 MASTER_SITES= https://cpan.metacpan.org/authors/id/S/SH/SHAY/ CPAN/../../src/5.0 DIST_SUBDIR= perl @@ -242,6 +243,10 @@ post-patch: /^if.*nopods.*versiononly || /s/.*/if (1) {/' \ ${WRKSRC}/installperl .endif + cd ${PATCHDIR}; for patch in patch-*; do \ + ${AWK} -v patch="$$patch" 'seen == 1 && /,NULL/ {print ",\"FreeBSD:" patch "\""} {print} /local_patches\[\]/ { seen=1 }' ${WRKSRC}/patchlevel.h > ${WRKDIR}/patchlevel.h; \ + mv -f ${WRKDIR}/patchlevel.h ${WRKSRC}/patchlevel.h ; \ + done post-install: @${REINPLACE_CMD} -e '/^lddlflags/s|-L${WRKSRC} ||' \ diff --git a/lang/perl5.40/files/patch-cpan_JSON-PP_bin_json__pp b/lang/perl5.40/files/patch-cpan_JSON-PP_bin_json__pp new file mode 100644 index 000000000000..304bcab403bf --- /dev/null +++ b/lang/perl5.40/files/patch-cpan_JSON-PP_bin_json__pp @@ -0,0 +1,11 @@ +--- cpan/JSON-PP/bin/json_pp.orig 2025-05-15 13:39:16 UTC ++++ cpan/JSON-PP/bin/json_pp +@@ -2,7 +2,7 @@ use strict; + + BEGIN { pop @INC if $INC[-1] eq '.' } + use strict; +-use Getopt::Long; ++use Getopt::Long qw( :config no_ignore_case ); + use Encode (); + + use JSON::PP (); |