git: 071399009e20 - main - devel/p5-JSON-Hyper: fix build with Perl 5.42

From: Mathieu Arnold <mat_at_FreeBSD.org>
Date: Sat, 26 Jul 2025 08:39:27 UTC
The branch main has been updated by mat:

URL: https://cgit.FreeBSD.org/ports/commit/?id=071399009e2061dfd0775c95043400a41de1c276

commit 071399009e2061dfd0775c95043400a41de1c276
Author:     Mathieu Arnold <mat@FreeBSD.org>
AuthorDate: 2025-07-26 07:24:35 +0000
Commit:     Mathieu Arnold <mat@FreeBSD.org>
CommitDate: 2025-07-26 08:37:06 +0000

    devel/p5-JSON-Hyper: fix build with Perl 5.42
    
    PR:     288020
---
 devel/p5-JSON-Hyper/Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/devel/p5-JSON-Hyper/Makefile b/devel/p5-JSON-Hyper/Makefile
index 545f1ec6cd99..6386deed19c8 100644
--- a/devel/p5-JSON-Hyper/Makefile
+++ b/devel/p5-JSON-Hyper/Makefile
@@ -20,4 +20,8 @@ RUN_DEPENDS=	p5-JSON>=2.0:converters/p5-JSON \
 USES=		perl5
 USE_PERL5=	configure
 
+# Remove old, broken, bundled Scalar::Util
+post-extract:
+	${RM} -rf ${WRKSRC}/inc/Scalar
+
 .include <bsd.port.mk>