svn commit: r458625 - head/security/py-cryptography
Dmitry Marakasov
amdmi3 at FreeBSD.org
Wed Jan 10 12:35:04 UTC 2018
Author: amdmi3
Date: Wed Jan 10 12:35:02 2018
New Revision: 458625
URL: https://svnweb.freebsd.org/changeset/ports/458625
Log:
- Fix build on mips by disabling unknown warning flag
MFH: 2018Q1
Approved by: portmgr blanket
Modified:
head/security/py-cryptography/Makefile
Modified: head/security/py-cryptography/Makefile
==============================================================================
--- head/security/py-cryptography/Makefile Wed Jan 10 12:07:03 2018 (r458624)
+++ head/security/py-cryptography/Makefile Wed Jan 10 12:35:02 2018 (r458625)
@@ -26,16 +26,24 @@ TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=2.9.0:dev
${PYTHON_PKGNAMEPREFIX}iso8601>0:devel/py-iso8601@${FLAVOR}
# Python 2.7, 3.4-3.6
-USES= python ssl
+USES= compiler:env python ssl
USE_PYTHON= autoplist concurrent distutils
CFLAGS+= -I${OPENSSLINC}
LDFLAGS+= -L${OPENSSLLIB}
+.include <bsd.port.pre.mk>
+
+.if ${CHOSEN_COMPILER_TYPE} == gcc && ${COMPILER_VERSION} <= 42
+post-patch:
+ @${REINPLACE_CMD} -e 's|"-Wno-error=sign-conversion"||' \
+ ${WRKSRC}/src/_cffi_src/build_openssl.py
+.endif
+
post-install:
${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/cryptography/hazmat/bindings/*.so
do-test:
@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
More information about the svn-ports-all
mailing list