git: 01341365d274 - main - ports-mgmt/portupgrade-devel: Remove outdate RUBY_VERSION check
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 25 May 2025 10:10:39 UTC
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=01341365d27448d5de95b5706a1e007c7384f4e4
commit 01341365d27448d5de95b5706a1e007c7384f4e4
Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2025-05-25 09:49:30 +0000
Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2025-05-25 09:55:08 +0000
ports-mgmt/portupgrade-devel: Remove outdate RUBY_VERSION check
- While I'm here, convert to options helper
lang/ruby31 has been removed on 2025-03-31.
Approved by: portmgr (blanket)
With hat: ruby
---
ports-mgmt/portupgrade-devel/Makefile | 11 ++---------
1 file changed, 2 insertions(+), 9 deletions(-)
diff --git a/ports-mgmt/portupgrade-devel/Makefile b/ports-mgmt/portupgrade-devel/Makefile
index 1ae4cf697486..6051e964fdc5 100644
--- a/ports-mgmt/portupgrade-devel/Makefile
+++ b/ports-mgmt/portupgrade-devel/Makefile
@@ -32,12 +32,8 @@ DOCSDIR= ${PREFIX}/share/doc/pkgtools
OPTIONS_DEFINE= DOCS EXAMPLES
-.include <bsd.port.pre.mk>
-
INSTALL_TARGET= install
-.if ${PORT_OPTIONS:MDOCS}
-INSTALL_TARGET+= install-doc
-.endif
+DOCS_INSTALL_TARGET= install-doc
# For PKG_DBDRIVER={bdb_btree,bdb_hash}
RUN_DEPENDS+= ${RUBY_SITEARCHLIBDIR}/bdb.so:databases/ruby-bdb
@@ -48,13 +44,10 @@ 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
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>