git: e03dae6d8005 - main - devel/rbenv: Update to 1.3.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Mon, 08 Jul 2024 16:25:56 UTC
The branch main has been updated by sunpoet:

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

commit e03dae6d80059664a9add26eba99a5eb1cedc66b
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-07-08 16:22:47 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-07-08 16:22:47 +0000

    devel/rbenv: Update to 1.3.0
    
    - Update WWW
    - Add NO_ARCH
    - Use RLN instead of LN
    - Install manpage
    
    Changes:        https://github.com/rbenv/rbenv/releases
---
 devel/rbenv/Makefile  | 28 ++++++++++++----------------
 devel/rbenv/distinfo  |  6 +++---
 devel/rbenv/pkg-plist |  4 ++--
 3 files changed, 17 insertions(+), 21 deletions(-)

diff --git a/devel/rbenv/Makefile b/devel/rbenv/Makefile
index aa09f51e75b4..45483abdda0a 100644
--- a/devel/rbenv/Makefile
+++ b/devel/rbenv/Makefile
@@ -1,11 +1,12 @@
 PORTNAME=	rbenv
-PORTVERSION=	1.2.0
+PORTVERSION=	1.3.0
 DISTVERSIONPREFIX=	v
 CATEGORIES=	devel ruby
 
 MAINTAINER=	ruby@FreeBSD.org
 COMMENT=	Manage multiple versions of ruby
-WWW=		https://github.com/rbenv/rbenv
+WWW=		https://rbenv.org/ \
+		https://github.com/rbenv/rbenv
 
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE
@@ -16,27 +17,22 @@ USES=		cpe
 
 USE_GITHUB=	yes
 
+NO_ARCH=	yes
 NO_BUILD=	yes
-
 REINPLACE_ARGS=	-i ''
 
 CPE_VENDOR=	rbenv_project
 
 post-patch:
-	@${REINPLACE_CMD} -e "s|\$${root}/completions|${DATADIR}/completions|g" \
-		${WRKSRC}/libexec/rbenv-init
+	@${REINPLACE_CMD} -e 's|$${root}/completions|${DATADIR}/completions|g' ${WRKSRC}/libexec/rbenv-init
+	@-${RM} ${WRKSRC}/libexec/rbenv-init.bak
 
 do-install:
-	CC="${CC}" ${WRKSRC}/src/${CONFIGURE_CMD}
-	${SETENV} ${MAKE_ENV} ${MAKE_CMD} -C ${WRKSRC}/src
-	( ${INSTALL_SCRIPT} ${WRKSRC}/libexec/* ${STAGEDIR}${PREFIX}/libexec/ )
-	@${LN} -sf ../libexec/rbenv ${STAGEDIR}${PREFIX}/bin/rbenv
-	@${MKDIR} ${STAGEDIR}${DATADIR}/completions
-	( cd ${WRKSRC}/completions && ${COPYTREE_BIN} . ${STAGEDIR}${DATADIR}/completions )
-	@${MKDIR} ${STAGEDIR}${PREFIX}/etc/rbenv.d
-	( cd ${WRKSRC}/rbenv.d && ${COPYTREE_BIN} . ${STAGEDIR}${PREFIX}/etc/rbenv.d )
-
-post-install:
-	${STRIP_CMD} ${STAGEDIR}${PREFIX}/libexec/rbenv-realpath.dylib
+	${MKDIR} ${STAGEDIR}${PREFIX}/etc/rbenv.d ${STAGEDIR}${DATADIR}/completions
+	${INSTALL_SCRIPT} ${WRKSRC}/libexec/* ${STAGEDIR}${PREFIX}/libexec/
+	${RLN} ${STAGEDIR}${PREFIX}/libexec/rbenv ${STAGEDIR}${PREFIX}/bin/rbenv
+	cd ${WRKSRC}/rbenv.d && ${COPYTREE_BIN} . ${STAGEDIR}${PREFIX}/etc/rbenv.d
+	${INSTALL_MAN} ${WRKSRC}/share/man/man1/rbenv.1 ${STAGEDIR}${PREFIX}/share/man/man1/rbenv.1
+	cd ${WRKSRC}/completions && ${COPYTREE_BIN} . ${STAGEDIR}${DATADIR}/completions
 
 .include <bsd.port.mk>
diff --git a/devel/rbenv/distinfo b/devel/rbenv/distinfo
index 82727d68a421..2b98c4c569c1 100644
--- a/devel/rbenv/distinfo
+++ b/devel/rbenv/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1635181743
-SHA256 (rbenv-rbenv-v1.2.0_GH0.tar.gz) = 3f3a31b8a73c174e3e877ccc1ea453d966b4d810a2aadcd4d8c460bc9ec85e0c
-SIZE (rbenv-rbenv-v1.2.0_GH0.tar.gz) = 32994
+TIMESTAMP = 1720447786
+SHA256 (rbenv-rbenv-v1.3.0_GH0.tar.gz) = 7e49e529ce0c876748fa75a61efdd62efa2634906075431a1818b565825eb758
+SIZE (rbenv-rbenv-v1.3.0_GH0.tar.gz) = 31328
diff --git a/devel/rbenv/pkg-plist b/devel/rbenv/pkg-plist
index 7519413b8db1..d7f0fdb2ea3e 100644
--- a/devel/rbenv/pkg-plist
+++ b/devel/rbenv/pkg-plist
@@ -12,7 +12,6 @@ libexec/rbenv-hooks
 libexec/rbenv-init
 libexec/rbenv-local
 libexec/rbenv-prefix
-libexec/rbenv-realpath.dylib
 libexec/rbenv-rehash
 libexec/rbenv-root
 libexec/rbenv-sh-rehash
@@ -27,5 +26,6 @@ libexec/rbenv-version-origin
 libexec/rbenv-versions
 libexec/rbenv-whence
 libexec/rbenv-which
+share/man/man1/rbenv.1.gz
+%%DATADIR%%/completions/_rbenv
 %%DATADIR%%/completions/rbenv.bash
-%%DATADIR%%/completions/rbenv.zsh