ports-mgmt/portupgrade*: Use databases/rubygem-dbm with Ruby 3.2

databases/ruby-bdb is BROKEN with Ruby 3.2.

PR:		268207
Approved by:	maintainer timeout
MFH:		2023Q1
This commit is contained in:
Yasuhiro Kimura 2022-12-07 05:30:17 +09:00
parent 5802766509
commit 2a325f4cc5
2 changed files with 10 additions and 0 deletions

View File

@ -40,8 +40,13 @@ INSTALL_TARGET= install
INSTALL_TARGET+= install-doc
.endif
.if ${RUBY_VER} >= 3.2
# databases/ruby-bdb is BROKEN with Ruby 3.2
RUN_DEPENDS+= rubygem-dbm>0:databases/rubygem-dbm
.else
# For PKG_DBDRIVER={bdb_btree,bdb_hash}
RUN_DEPENDS+= ${RUBY_SITEARCHLIBDIR}/bdb.so:databases/ruby-bdb
.endif
regression-test: patch
cd ${WRKSRC} && ${MAKE} test

View File

@ -39,8 +39,13 @@ INSTALL_TARGET= install
INSTALL_TARGET+= install-doc
.endif
.if ${RUBY_VER} >= 3.2
# databases/ruby-bdb is BROKEN with Ruby 3.2
RUN_DEPENDS+= rubygem-dbm>0:databases/rubygem-dbm
.else
# For PKG_DBDRIVER={bdb_btree,bdb_hash}
RUN_DEPENDS+= ${RUBY_SITEARCHLIBDIR}/bdb.so:databases/ruby-bdb
.endif
post-install:
${MKDIR} ${STAGEDIR}${PREFIX}/lib/compat/pkg