git: 8331e426efd7 - main - www/rubygem-rack227: fix install conflict with www/rubygem-rack22

From: Matthias Fechner <mfechner_at_FreeBSD.org>
Date: Sun, 28 May 2023 17:04:46 UTC
The branch main has been updated by mfechner:

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

commit 8331e426efd700cc74dab80af07e71c21d5cf5ea
Author:     Matthias Fechner <mfechner@FreeBSD.org>
AuthorDate: 2023-05-28 07:09:34 +0000
Commit:     Matthias Fechner <mfechner@FreeBSD.org>
CommitDate: 2023-05-28 17:03:49 +0000

    www/rubygem-rack227: fix install conflict with www/rubygem-rack22
---
 www/rubygem-rack227/Makefile | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

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