2011-12-08 15:15:40 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.22 2011/12/08 20:15:40 eric Exp $
|
2006-07-29 11:12:17 -04:00
|
|
|
|
2007-09-15 22:52:56 -04:00
|
|
|
COMMENT= event-based Python framework (core module)
|
2006-07-29 11:12:17 -04:00
|
|
|
|
2011-12-08 15:15:40 -05:00
|
|
|
VERSION= 11.1.0
|
2008-03-26 15:57:23 -04:00
|
|
|
DISTNAME= TwistedCore-${VERSION}
|
2010-07-05 09:37:02 -04:00
|
|
|
PKGNAME= py-twisted-core-${VERSION}
|
2006-07-29 11:12:17 -04:00
|
|
|
|
|
|
|
HOMEPAGE= http://twistedmatrix.com/trac/wiki/TwistedCore
|
|
|
|
|
2011-06-20 06:25:32 -04:00
|
|
|
MASTER_SITES= http://twistedmatrix.com/Releases/Core/${VERSION:R}/
|
2006-07-29 11:12:17 -04:00
|
|
|
|
2010-11-15 14:45:56 -05:00
|
|
|
RUN_DEPENDS= devel/py-zopeinterface \
|
|
|
|
security/py-openssl
|
2006-07-29 11:12:17 -04:00
|
|
|
|
2011-05-31 01:44:26 -04:00
|
|
|
WANTLIB += ${MODPY_WANTLIB}
|
|
|
|
|
2006-07-29 11:12:17 -04:00
|
|
|
post-install:
|
2008-03-26 15:57:23 -04:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/py-twisted-core
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/LICENSE ${PREFIX}/share/doc/py-twisted-core/
|
|
|
|
${INSTALL_SCRIPT} ${FILESDIR}/twisted-regen-dropin.cache ${PREFIX}/sbin/
|
2008-05-06 12:14:33 -04:00
|
|
|
${SUBST_CMD} ${PREFIX}/sbin/twisted-regen-dropin.cache
|
2010-07-05 09:37:02 -04:00
|
|
|
rm ${PREFIX}/sbin/twisted-regen-dropin.cache.*
|
2008-03-26 15:57:23 -04:00
|
|
|
cd ${WRKSRC}/doc && \
|
|
|
|
find . -type d -exec ${INSTALL_DATA_DIR} \
|
|
|
|
${PREFIX}/share/doc/py-twisted-core/{} \; && \
|
|
|
|
find . ! -type d -exec ${INSTALL_DATA} {} \
|
|
|
|
${PREFIX}/share/doc/py-twisted-core/{} \;
|
|
|
|
mv ${PREFIX}/share/doc/py-twisted-core/examples ${PREFIX}/share/examples/py-twisted-core
|
2010-07-05 09:37:02 -04:00
|
|
|
cd ${PREFIX} && find . -name "*.orig" -exec rm {} \;
|
2008-03-26 15:57:23 -04:00
|
|
|
|
2010-07-05 09:37:02 -04:00
|
|
|
|
2011-06-20 06:25:32 -04:00
|
|
|
TRIAL_TARGET?= twisted.application.test \
|
|
|
|
twisted.internet.test \
|
|
|
|
twisted.protocols.test \
|
|
|
|
twisted.python.test \
|
2011-12-08 15:15:40 -05:00
|
|
|
twisted.persisted.test \
|
|
|
|
twisted.manhole.test \
|
2011-06-20 06:25:32 -04:00
|
|
|
twisted.test \
|
|
|
|
twisted.trial.test
|
2006-07-29 11:12:17 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|