1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-18 00:10:04 +00:00

ports-mgmt/portupgrade: unbreak for Ruby 3.2+

portupgrade fails with an error "undefined method `exists?' for File:Class"
if used with Ruby 3.2+ (seems it removed alias "exists?" for method "exist?").

Fix it. Bump PORTREVISION.
This commit is contained in:
Eugene Grosbein 2024-03-21 16:18:04 +07:00
parent 352fb71e12
commit 32a6b38c23
No known key found for this signature in database
GPG Key ID: C8960FF146564C9A

View File

@ -1,6 +1,6 @@
PORTNAME= portupgrade
PORTVERSION= 2.4.16
PORTREVISION= 2
PORTREVISION= 3
PORTEPOCH= 2
CATEGORIES= ports-mgmt
MASTER_SITES= LOCAL/bdrewery/${PORTNAME}/ \
@ -41,6 +41,12 @@ INSTALL_TARGET+= install-doc
# For PKG_DBDRIVER={bdb_btree,bdb_hash}
RUN_DEPENDS+= ${RUBY_SITEARCHLIBDIR}/bdb.so:databases/ruby-bdb
.if ${RUBY_VERSION_CODE:U} >= 320
post-patch:
cd ${WRKSRC} && ${FIND} bin etc lib -type f |\
${XARGS} ${REINPLACE_CMD} 's/File\.exists\?/File.exist?/'
.endif
post-install:
${MKDIR} ${STAGEDIR}${PREFIX}/lib/compat/pkg