git: 66b3262c42e0 - main - devel/p5-Regexp-Compare: does not work with 5.36+

From: Mathieu Arnold <mat_at_FreeBSD.org>
Date: Wed, 01 Jun 2022 13:02:16 UTC
The branch main has been updated by mat:

URL: https://cgit.FreeBSD.org/ports/commit/?id=66b3262c42e0a31b0406656f8097de2753fdbc24

commit 66b3262c42e0a31b0406656f8097de2753fdbc24
Author:     Mathieu Arnold <mat@FreeBSD.org>
AuthorDate: 2022-06-01 12:32:38 +0000
Commit:     Mathieu Arnold <mat@FreeBSD.org>
CommitDate: 2022-06-01 12:54:39 +0000

    devel/p5-Regexp-Compare: does not work with 5.36+
---
 devel/p5-Regexp-Compare/Makefile | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/devel/p5-Regexp-Compare/Makefile b/devel/p5-Regexp-Compare/Makefile
index 56cb58eb93ca..7660fc3aaceb 100644
--- a/devel/p5-Regexp-Compare/Makefile
+++ b/devel/p5-Regexp-Compare/Makefile
@@ -18,4 +18,12 @@ USE_PERL5=	configure
 post-install:
 	${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Regexp/Compare/Compare.so
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+# When support for 5.36 is added, keep the check and update to 5.37, as it
+# never supports the development branch
+.if ${PERL_LEVEL} >= 503600
+BROKEN=		does not support 5.36+
+.endif
+
+.include <bsd.port.post.mk>