openbsd-ports/devel/py-twisted/core/Makefile

36 lines
1.2 KiB
Makefile
Raw Normal View History

2010-11-15 14:45:56 -05:00
# $OpenBSD: Makefile,v 1.17 2010/11/15 19:46:08 espie Exp $
COMMENT= event-based Python framework (core module)
VERSION= 10.0.0
DISTNAME= TwistedCore-${VERSION}
PKGNAME= py-twisted-core-${VERSION}
2010-08-30 18:24:14 -04:00
REVISION = 0
HOMEPAGE= http://twistedmatrix.com/trac/wiki/TwistedCore
MASTER_SITES= http://tmrc.mit.edu/mirror/twisted/Core/${VERSION:R}/
2010-11-15 14:45:56 -05:00
RUN_DEPENDS= devel/py-zopeinterface \
security/py-openssl
post-install:
${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/
${SUBST_CMD} ${PREFIX}/sbin/twisted-regen-dropin.cache
rm ${PREFIX}/sbin/twisted-regen-dropin.cache.*
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
cd ${PREFIX} && find . -name "*.orig" -exec rm {} \;
TRIAL_TARGET=twisted.test twisted.trial.test twisted.python.test \
twisted.internet.test twisted.protocols
.include <bsd.port.mk>