Fri Feb 22 19:35:31 2013 UTC ()
Fix build on SunOS.


(jperkin)
diff -r1.18 -r1.19 pkgsrc/net/py-twisted/Makefile

cvs diff -r1.18 -r1.19 pkgsrc/net/py-twisted/Makefile (expand / switch to unified diff)

--- pkgsrc/net/py-twisted/Makefile 2013/02/17 14:53:13 1.18
+++ pkgsrc/net/py-twisted/Makefile 2013/02/22 19:35:30 1.19
@@ -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
3PKGNAME= ${PYPKGPREFIX}-twisted-${TWISTED_VERSION} 3PKGNAME= ${PYPKGPREFIX}-twisted-${TWISTED_VERSION}
4COMMENT= Framework for writing networked applications 4COMMENT= Framework for writing networked applications
5.include "../../net/py-twisted/Makefile.common" 5.include "../../net/py-twisted/Makefile.common"
6 6
7DEPENDS+= ${PYPKGPREFIX}-OpenSSL>=0.6:../../security/py-OpenSSL 7DEPENDS+= ${PYPKGPREFIX}-OpenSSL>=0.6:../../security/py-OpenSSL
8DEPENDS+= ${PYPKGPREFIX}-ZopeInterface>=3.0.1:../../devel/py-ZopeInterface 8DEPENDS+= ${PYPKGPREFIX}-ZopeInterface>=3.0.1:../../devel/py-ZopeInterface
9 9
10# bin/cftp 10# bin/cftp
11CONFLICTS+= cftp-[0-9]* 11CONFLICTS+= cftp-[0-9]*
12 12
13REPLACE_PYTHON+= twisted/mail/test/pop3testserver.py 13REPLACE_PYTHON+= twisted/mail/test/pop3testserver.py
14REPLACE_PYTHON+= twisted/trial/test/scripttest.py 14REPLACE_PYTHON+= twisted/trial/test/scripttest.py
15REPLACE_PYTHON+= twisted/topfiles/setup.py 15REPLACE_PYTHON+= twisted/topfiles/setup.py
16REPLACE_PYTHON+= twisted/python/test/pullpipe.py 16REPLACE_PYTHON+= twisted/python/test/pullpipe.py
17 17
 18CFLAGS.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.
22pre-install: 24pre-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.
27do-test: 29do-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.