mirror of
https://git.freebsd.org/ports.git
synced 2025-05-14 08:11:50 -04: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:
parent
352fb71e12
commit
32a6b38c23
1 changed files with 7 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
||||||
PORTNAME= portupgrade
|
PORTNAME= portupgrade
|
||||||
PORTVERSION= 2.4.16
|
PORTVERSION= 2.4.16
|
||||||
PORTREVISION= 2
|
PORTREVISION= 3
|
||||||
PORTEPOCH= 2
|
PORTEPOCH= 2
|
||||||
CATEGORIES= ports-mgmt
|
CATEGORIES= ports-mgmt
|
||||||
MASTER_SITES= LOCAL/bdrewery/${PORTNAME}/ \
|
MASTER_SITES= LOCAL/bdrewery/${PORTNAME}/ \
|
||||||
|
@ -41,6 +41,12 @@ INSTALL_TARGET+= install-doc
|
||||||
# For PKG_DBDRIVER={bdb_btree,bdb_hash}
|
# For PKG_DBDRIVER={bdb_btree,bdb_hash}
|
||||||
RUN_DEPENDS+= ${RUBY_SITEARCHLIBDIR}/bdb.so:databases/ruby-bdb
|
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:
|
post-install:
|
||||||
${MKDIR} ${STAGEDIR}${PREFIX}/lib/compat/pkg
|
${MKDIR} ${STAGEDIR}${PREFIX}/lib/compat/pkg
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue