Skip to content

Commit

Permalink
devel/py-cbor: No longer cater to GCC 4.2
Browse files Browse the repository at this point in the history
Remove code catering to GCC 4.2 (as system compiler) which is not
necessary any longer since USES=compiler and USE_GCC never will pull
that in anymore.

This reverts much of commits 029e8b8
and a00547a from 3+ years ago.

Approved by:	sunpoet (maintainer)
  • Loading branch information
Gerald Pfeifer authored and Gerald Pfeifer committed Dec 4, 2022
1 parent 27e45a6 commit 5baf6a4
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions devel/py-cbor/Makefile
Expand Up @@ -13,14 +13,7 @@ LICENSE= APACHE20
USES= compiler python:3.6+
USE_PYTHON= autoplist concurrent distutils

.include <bsd.port.pre.mk>

.if ${CHOSEN_COMPILER_TYPE} == gcc && ${COMPILER_VERSION} <= 42
post-patch:
@${REINPLACE_CMD} -e '/pragma/d' ${WRKSRC}/c/cbormodule.c
.endif

post-install:
${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} +

.include <bsd.port.post.mk>
.include <bsd.port.mk>

0 comments on commit 5baf6a4

Please sign in to comment.