git: 07139930bfe6 - main - math/p5-Math-Pari: mark broken for Perl 5.42+

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

URL: https://cgit.FreeBSD.org/ports/commit/?id=07139930bfe692006957d11ee3232c851bc7a051

commit 07139930bfe692006957d11ee3232c851bc7a051
Author:     Mathieu Arnold <mat@FreeBSD.org>
AuthorDate: 2025-07-26 08:00:08 +0000
Commit:     Mathieu Arnold <mat@FreeBSD.org>
CommitDate: 2025-07-26 08:38:31 +0000

    math/p5-Math-Pari: mark broken for Perl 5.42+
    
            ../src/kernel/none/level1.h:178:1: error: redefinition of 'evallg'
              178 | evallg(long x)
                  | ^
            ../src/kernel/none/level1.h:178:1: note: previous definition is here
              178 | evallg(long x)
    
    PR:     288020
---
 math/p5-Math-Pari/Makefile | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/math/p5-Math-Pari/Makefile b/math/p5-Math-Pari/Makefile
index ea6d64f7e86a..333a0f4f2612 100644
--- a/math/p5-Math-Pari/Makefile
+++ b/math/p5-Math-Pari/Makefile
@@ -70,4 +70,10 @@ post-install:
 	${INSTALL_LIB} ${PARI_WRKSRC}/build/libpari-gmp.so.2.3.5 ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Math/Pari
 	${LN} -s libpari-gmp.so.2.3.5 ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Math/Pari/libpari-gmp.so.2
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} >= 504200
+BROKEN=	fails to build
+.endif
+
+.include <bsd.port.post.mk>