From 11b30b1045200768ee4077038ff112dc38312f70 Mon Sep 17 00:00:00 2001
From: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
Date: Wed, 13 Oct 2021 13:38:19 +0800
Subject: [PATCH] www/py-tornado4: Add PORTSCOUT

- Update CONFLICTS_INSTALL
---
 www/py-tornado4/Makefile | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/www/py-tornado4/Makefile b/www/py-tornado4/Makefile
index 5da8fb0b494a..f4e9d1543b97 100644
--- a/www/py-tornado4/Makefile
+++ b/www/py-tornado4/Makefile
@@ -15,13 +15,16 @@ LICENSE=	APACHE20
 USES=		cpe python:3.6+
 USE_PYTHON=	autoplist concurrent distutils
 
-CPE_VENDOR=	tornadoweb
-
 CONFLICTS_INSTALL=	${PYTHON_PKGNAMEPREFIX}tornado \
+			${PYTHON_PKGNAMEPREFIX}tornado5 \
 			${PYTHON_PKGNAMEPREFIX}tornado6
 
+CPE_VENDOR=	tornadoweb
+
+PORTSCOUT=	limit:^4\.
+
 post-install:
-	${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/tornado/speedups*.so
+	${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} +
 
 do-test:
 	@cd ${WRKSRC} && ${PYTHON_CMD} -m tornado.test.runtests