ports-mgmt/portupgrade-devel: Fix with Ruby 3.2+

Copies the change to ports-mgmt/portupgrade made in
commit 32a6b38c23

(cherry picked from commit 65e7ca580d)
This commit is contained in:
Bryan Drewery 2024-07-17 13:07:15 -07:00
parent 723ddd5170
commit eb858c3a32
1 changed files with 6 additions and 1 deletions

View File

@ -1,6 +1,6 @@
PORTNAME= portupgrade
PORTVERSION= 20180309
PORTREVISION= 2
PORTREVISION= 3
PORTEPOCH= 3
CATEGORIES= ports-mgmt
MASTER_SITES= GH \
@ -48,6 +48,11 @@ regression-test: patch
post-patch: .SILENT
REVISION=`readlink "${_DISTDIR}/portupgrade/latest" | ${SED} -E -e 's,.*pkgtools-(.*).tar.gz,\1,g'` && ${SED} -E -e "s,%%DATE%%,${PORTVERSION},g;s,%%REVISION%%,$${REVISION},g" \
${WRKSRC}/lib/pkgtools/revision.rb.in > ${WRKSRC}/lib/pkgtools/revision.rb
.if ${RUBY_VERSION_CODE:U} >= 320
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