Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144751337
D7300.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D7300.diff
View Options
Index: head/devel/py-cffi/Makefile
===================================================================
--- head/devel/py-cffi/Makefile
+++ head/devel/py-cffi/Makefile
@@ -17,15 +17,27 @@
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pycparser>=2.10:devel/py-pycparser
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest
-CFLAGS+= -I${LOCALBASE}/include -Wl,-rpath,${LOCALBASE}/lib
-LDFLAGS+= -L${LOCALBASE}/lib
-
+# Actually 2.6-2.7,3.2-3.5
USES= python
USE_PYTHON= autoplist distutils
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} >= 1100000
+CFLAGS+= -Wno-shift-negative-value
+.endif
+
+# Tests assume gcc, and fail on pure clang systems
+# Fixed in https://bitbucket.org/cffi/cffi/issues/271
+post-patch:
+ ${REINPLACE_CMD} -e 's|gcc|${CC}|g' ${WRKSRC}/testing/cffi0/test_ownlib.py
+
+post-install:
+ ${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/_cffi_backend.so
+
do-test:
@(cd ${TEST_WRKSRC} && ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} \
${PYDISTUTILS_SETUP} build_ext -i)
- @(cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest)
+ @(cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest -rs)
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
Index: head/devel/py-cffi/distinfo
===================================================================
--- head/devel/py-cffi/distinfo
+++ head/devel/py-cffi/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1463831192
+TIMESTAMP = 1469194464
SHA256 (cffi-1.6.0.tar.gz) = a7f75c4ef2362c0a0e54657add0a6c509fecbfa3b3807bc0925f5cb1c9f927db
SIZE (cffi-1.6.0.tar.gz) = 397024
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Feb 13, 3:27 AM (10 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28673143
Default Alt Text
D7300.diff (1 KB)
Attached To
Mode
D7300: devel/py-cffi: Fix build warnings and test failures
Attached
Detach File
Event Timeline
Log In to Comment