diff --git a/math/py-cdecimal/Makefile b/math/py-cdecimal/Makefile index 7ce6f0093577..d2481f7e89bd 100644 --- a/math/py-cdecimal/Makefile +++ b/math/py-cdecimal/Makefile @@ -1,22 +1,31 @@ # Created by: Maksym Sobolyev PORTNAME= cdecimal PORTVERSION= 2.3 PORTREVISION= 1 CATEGORIES= math MASTER_SITES= http://www.bytereef.org/software/mpdecimal/releases/ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= ports@FreeBSD.org COMMENT= Fast drop-in replacement for the Decimal module LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE.txt +DEPRECATED= upstream does not support it after Python-3.2 + USES= python:3.6-3.8 USE_PYTHON= distutils autoplist +.include + +.if ${PYTHON_VER} == 3.9 +# Note: a fast C implementation of the decimal module (_decimal) is bundled with Python +BROKEN= no member named 'tp_print' in 'struct _typeobject' +.endif + post-install: @${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/cdecimal*.so -.include +.include