git: 8bee5127a7ce - main - devel/py-meliae: add BROKEN with python=3.9, Mark DEPRECATED

From: Thierry Thomas <thierry_at_FreeBSD.org>
Date: Fri, 25 Feb 2022 21:45:15 UTC
The branch main has been updated by thierry:

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

commit 8bee5127a7ce83aa289f9b0e39177990a5f726a9
Author:     Thierry Thomas <thierry@FreeBSD.org>
AuthorDate: 2022-02-25 21:42:21 +0000
Commit:     Thierry Thomas <thierry@FreeBSD.org>
CommitDate: 2022-02-25 21:45:10 +0000

    devel/py-meliae: add BROKEN with python=3.9, Mark DEPRECATED
    
    It is broken with Python 3.9.
    Reported by: antoine.
    
    Bug reported upstream: https://bugs.launchpad.net/meliae/+bug/1899379
    
    PR:             261869
    Approved by:    maintainer’s time-out
---
 devel/py-meliae/Makefile | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/devel/py-meliae/Makefile b/devel/py-meliae/Makefile
index 44c8fd36a90a..5285f4391221 100644
--- a/devel/py-meliae/Makefile
+++ b/devel/py-meliae/Makefile
@@ -10,10 +10,19 @@ COMMENT=	Python Memory Usage Analyzer
 LICENSE=	GPLv3
 #LICENSE_FILE=	${WRKSRC}/COPYING.txt
 
+DEPRECATED=	does not build against Python-3.9
+# See https://bugs.launchpad.net/meliae/+bug/1899379
+
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR}
 
 USES=		python:3.6-3.8
 USE_PYTHON=	distutils autoplist cython
 TEST_TARGET=	check  # test fails
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_VER} == 3.9
+BROKEN=	build error: PyGC_HEAD is private in Python 3.9
+.endif
+
+.include <bsd.port.post.mk>