git: eb858c3a32c9 - 2024Q3 - ports-mgmt/portupgrade-devel: Fix with Ruby 3.2+
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 17 Jul 2024 20:09:53 UTC
The branch 2024Q3 has been updated by bdrewery: URL: https://cgit.FreeBSD.org/ports/commit/?id=eb858c3a32c9522d75a94f8ab8194af889a2ac05 commit eb858c3a32c9522d75a94f8ab8194af889a2ac05 Author: Bryan Drewery <bdrewery@FreeBSD.org> AuthorDate: 2024-07-17 20:07:15 +0000 Commit: Bryan Drewery <bdrewery@FreeBSD.org> CommitDate: 2024-07-17 20:09:41 +0000 ports-mgmt/portupgrade-devel: Fix with Ruby 3.2+ Copies the change to ports-mgmt/portupgrade made in commit 32a6b38c233cbe0c401c835ec8b5755e62b51d68 (cherry picked from commit 65e7ca580dfb5e9467727b09ceca69ed7faed619) --- ports-mgmt/portupgrade-devel/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ports-mgmt/portupgrade-devel/Makefile b/ports-mgmt/portupgrade-devel/Makefile index ba8592cabdda..1ae4cf697486 100644 --- a/ports-mgmt/portupgrade-devel/Makefile +++ b/ports-mgmt/portupgrade-devel/Makefile @@ -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