git: d359485bdb82 - main - www/rubygem-rack22: Avoid CONFLICTS_INSTALL with www/rubygem-rackup

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Thu, 16 May 2024 06:31:20 UTC
The branch main has been updated by sunpoet:

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

commit d359485bdb82e817901ef3df6a8811cc6e2660e8
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-05-16 06:19:18 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-05-16 06:22:13 +0000

    www/rubygem-rack22: Avoid CONFLICTS_INSTALL with www/rubygem-rackup
    
    - Bump PORTREVISION for package change
---
 www/rubygem-rack22/Makefile | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/www/rubygem-rack22/Makefile b/www/rubygem-rack22/Makefile
index b7669b5d4191..892d6a5578cd 100644
--- a/www/rubygem-rack22/Makefile
+++ b/www/rubygem-rack22/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	rack
 PORTVERSION=	2.2.9
+PORTREVISION=	1
 PORTEPOCH=	3
 CATEGORIES=	www rubygems
 MASTER_SITES=	RG
@@ -16,10 +17,12 @@ USES=		cpe gem
 
 NO_ARCH=	yes
 
-PLIST_FILES=	bin/rackup
-
 CPE_VENDOR=	rack_project
 
 PORTSCOUT=	limit:^2\.2\.
 
+# Avoid CONFLICTS_INSTALL with www/rubygem-rackup
+post-install:
+	${RM} ${STAGEDIR}${PREFIX}/bin/rackup
+
 .include <bsd.port.mk>