| @@ -1,30 +1,32 @@ | | | @@ -1,30 +1,32 @@ |
1 | # $NetBSD: Makefile,v 1.18 2013/02/17 14:53:13 gdt Exp $ | | 1 | # $NetBSD: Makefile,v 1.19 2013/02/22 19:35:30 jperkin Exp $ |
2 | | | 2 | |
3 | PKGNAME= ${PYPKGPREFIX}-twisted-${TWISTED_VERSION} | | 3 | PKGNAME= ${PYPKGPREFIX}-twisted-${TWISTED_VERSION} |
4 | COMMENT= Framework for writing networked applications | | 4 | COMMENT= Framework for writing networked applications |
5 | .include "../../net/py-twisted/Makefile.common" | | 5 | .include "../../net/py-twisted/Makefile.common" |
6 | | | 6 | |
7 | DEPENDS+= ${PYPKGPREFIX}-OpenSSL>=0.6:../../security/py-OpenSSL | | 7 | DEPENDS+= ${PYPKGPREFIX}-OpenSSL>=0.6:../../security/py-OpenSSL |
8 | DEPENDS+= ${PYPKGPREFIX}-ZopeInterface>=3.0.1:../../devel/py-ZopeInterface | | 8 | DEPENDS+= ${PYPKGPREFIX}-ZopeInterface>=3.0.1:../../devel/py-ZopeInterface |
9 | | | 9 | |
10 | # bin/cftp | | 10 | # bin/cftp |
11 | CONFLICTS+= cftp-[0-9]* | | 11 | CONFLICTS+= cftp-[0-9]* |
12 | | | 12 | |
13 | REPLACE_PYTHON+= twisted/mail/test/pop3testserver.py | | 13 | REPLACE_PYTHON+= twisted/mail/test/pop3testserver.py |
14 | REPLACE_PYTHON+= twisted/trial/test/scripttest.py | | 14 | REPLACE_PYTHON+= twisted/trial/test/scripttest.py |
15 | REPLACE_PYTHON+= twisted/topfiles/setup.py | | 15 | REPLACE_PYTHON+= twisted/topfiles/setup.py |
16 | REPLACE_PYTHON+= twisted/python/test/pullpipe.py | | 16 | REPLACE_PYTHON+= twisted/python/test/pullpipe.py |
17 | | | 17 | |
| | | 18 | CFLAGS.SunOS+= -D_XOPEN_SOURCE=1 -D_XOPEN_SOURCE_EXTENDED=1 -Du_int=uint32_t |
| | | 19 | |
18 | # twisted will install files present in the source directory even | | 20 | # twisted will install files present in the source directory even |
19 | # though they were not in the tarball. Therefore, we must clean the | | 21 | # though they were not in the tarball. Therefore, we must clean the |
20 | # .orig files from patches. This is done pre-install rather than | | 22 | # .orig files from patches. This is done pre-install rather than |
21 | # post-patch so that mkpatches(1) will still work. | | 23 | # post-patch so that mkpatches(1) will still work. |
22 | pre-install: | | 24 | pre-install: |
23 | rm ${WRKSRC}/twisted/runner/portmap.c.orig | | 25 | rm ${WRKSRC}/twisted/runner/portmap.c.orig |
24 | | | 26 | |
25 | # Do not "make package" after running "make test"; this will result in files | | 27 | # Do not "make package" after running "make test"; this will result in files |
26 | # being installed that should not be. | | 28 | # being installed that should not be. |
27 | do-test: | | 29 | do-test: |
28 | cd ${WRKSRC} && ./build/scripts-${PYVERSSUFFIX}/trial twisted | | 30 | cd ${WRKSRC} && ./build/scripts-${PYVERSSUFFIX}/trial twisted |
29 | | | 31 | |
30 | # created during self test. | | 32 | # created during self test. |