git: 3599bedde4d4 - main - www/h2o: Mark BROKEN with Ruby 3.x when MRUBY option is enabled

From: Yasuhiro Kimura <yasu_at_FreeBSD.org>
Date: Wed, 20 Apr 2022 06:59:45 UTC
The branch main has been updated by yasu:

URL: https://cgit.FreeBSD.org/ports/commit/?id=3599bedde4d4b228ece36c67ff78974e37347f43

commit 3599bedde4d4b228ece36c67ff78974e37347f43
Author:     Yasuhiro Kimura <yasu@FreeBSD.org>
AuthorDate: 2022-04-04 14:58:46 +0000
Commit:     Yasuhiro Kimura <yasu@FreeBSD.org>
CommitDate: 2022-04-20 06:56:56 +0000

    www/h2o: Mark BROKEN with Ruby 3.x when MRUBY option is enabled
    
    cd /wrkdirs/usr/ports/www/h2o/work/h2o-2.2.6/deps/mruby && MRUBY_TOOLCHAIN=clang MRUBY_CONFIG=/wrkdirs/usr/ports/www/h2o/work/h2o-2.2.6/misc/mruby_config.rb MRUBY_BUILD_DIR=/wrkdirs/usr/ports/www/h2o/work/.build/mruby ruby minirake
    (in /wrkdirs/usr/ports/www/h2o/work/h2o-2.2.6/deps/mruby)
    PKG-CONFIG onigmo
    PKG-CONFIG oniguruma
    rake aborted!
    wrong number of arguments (given 2, expected 1)
    Rakefile:40:in `<top (required)>'
    *** Error code 1
    
    Stop.
    
    PR:             263053
    Approved by:    maintainer timeout
---
 www/h2o/Makefile | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/www/h2o/Makefile b/www/h2o/Makefile
index 27885b55a134..ce57e5a871da 100644
--- a/www/h2o/Makefile
+++ b/www/h2o/Makefile
@@ -58,6 +58,13 @@ MRUBY_USES=		bison
 MRUBY_USE=		ruby=yes
 MRUBY_VARS=		RUBY_NO_RUN_DEPENDS=yes
 
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MMRUBY}
+BROKEN_RUBY30=	yes
+BROKEN_RUBY31=	yes
+.endif
+
 post-patch:
 	@${REINPLACE_CMD} -e 's|exec perl|exec ${LOCALBASE}/bin/perl|' \
 		${WRKSRC}/share/h2o/annotate-backtrace-symbols \