git: b9ccc3cf4a68 - main - ports-mgmt/portupgrade: Remove outdate RUBY_VERSION check

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sun, 25 May 2025 10:10:38 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=b9ccc3cf4a68d4e9e56458c509907dc9f4828e60

commit b9ccc3cf4a68d4e9e56458c509907dc9f4828e60
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2025-05-25 09:49:29 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2025-05-25 09:55:07 +0000

    ports-mgmt/portupgrade: 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/Makefile | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/ports-mgmt/portupgrade/Makefile b/ports-mgmt/portupgrade/Makefile
index 15712420b9df..cd2044a4fb33 100644
--- a/ports-mgmt/portupgrade/Makefile
+++ b/ports-mgmt/portupgrade/Makefile
@@ -31,23 +31,17 @@ MAKE_ARGS=	PREFIX="${PREFIX}" RUBY="${RUBY}" \
 EXAMPLESDIR=	${PREFIX}/share/examples/pkgtools
 DOCSDIR=	${PREFIX}/share/doc/pkgtools
 
-.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
 
-.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
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>