1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-29 01:13:08 +00:00

www/unit-ruby: fix build with ruby 3.x

PR:	262541
This commit is contained in:
Sergey A. Osokin 2022-03-19 21:24:50 -04:00
parent c21bd91f92
commit ea02c90469

View File

@ -14,6 +14,8 @@ PLIST_FILES= libexec/unit/modules/${UNIT_MODNAME}.unit.so
USE_RUBY= yes
CFLAGS+= -fdeclspec
USE_RC_SUBR?= # reset to empty
MASTERDIR= ${.CURDIR}/../unit
@ -21,6 +23,7 @@ MASTERDIR= ${.CURDIR}/../unit
post-configure:
cd ${CONFIGURE_WRKSRC} && \
${SETENV} ${CONFIGURE_ENV} ${CONFIGURE_CMD} ruby \
--ruby=ruby${RUBY_VER:S|.||} \
--module=${UNIT_MODNAME}
do-build: