2001-08-17 04:16:49 -04:00
|
|
|
# New ports collection makefile for: py-twisted
|
|
|
|
# Date created: 16 August 2001
|
|
|
|
# Whom: Johann Visagie <wjv@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= twisted
|
2001-10-08 11:38:33 -04:00
|
|
|
PORTVERSION= 0.11.0
|
2001-08-17 04:16:49 -04:00
|
|
|
CATEGORIES= devel net python
|
|
|
|
MASTER_SITES= http://twistedmatrix.com/downloads/
|
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
DISTNAME= Twisted-${PORTVERSION}
|
|
|
|
|
|
|
|
MAINTAINER= wjv@FreeBSD.org
|
|
|
|
|
|
|
|
BUILD_DEPENDS= ${PYDISTUTILS}
|
2001-08-22 07:22:14 -04:00
|
|
|
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/unittest.py:${PORTSDIR}/devel/py-unit \
|
|
|
|
${PYTHON_SITELIBDIR}/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter \
|
|
|
|
${PYTHON_SITELIBDIR}/gnome/__init__.py:${PORTSDIR}/x11-toolkits/py-gnome
|
2001-08-17 04:16:49 -04:00
|
|
|
|
|
|
|
USE_PYTHON= yes
|
2001-09-26 04:42:02 -04:00
|
|
|
PYTHON_SETUP= ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} setup.py
|
2001-10-08 11:38:33 -04:00
|
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/${PORTNAME}
|
2001-09-03 11:26:29 -04:00
|
|
|
MAN1= faucet.1 gnusto.1 im.1 manhole.1 mktap.1 twistd.1
|
2001-08-17 04:16:49 -04:00
|
|
|
|
2001-08-17 11:18:14 -04:00
|
|
|
post-patch:
|
2001-08-20 10:25:05 -04:00
|
|
|
@ ${PERL} -pi -e 's/from pyunit import/import/g' \
|
2001-08-17 11:18:14 -04:00
|
|
|
${WRKSRC}/bin/runtests ${WRKSRC}/twisted/test/*.py
|
|
|
|
|
2001-08-17 04:16:49 -04:00
|
|
|
do-build:
|
2001-09-26 04:42:02 -04:00
|
|
|
@ cd ${WRKSRC} && ${PYTHON_SETUP} build
|
2001-08-17 04:16:49 -04:00
|
|
|
|
|
|
|
do-install:
|
2001-09-26 04:42:02 -04:00
|
|
|
@ cd ${WRKSRC} && ${PYTHON_SETUP} install -c -O1 \
|
2001-08-17 04:16:49 -04:00
|
|
|
--prefix=${PREFIX}
|
2001-08-20 10:25:05 -04:00
|
|
|
.for manpage in ${MAN1}
|
|
|
|
@ ${INSTALL_MAN} ${WRKSRC}/doc/man/${manpage} ${MANPREFIX}/man/man1
|
|
|
|
.endfor
|
2001-08-17 04:16:49 -04:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@ ${MKDIR} ${DOCSDIR}/img
|
|
|
|
@ ${INSTALL_DATA} ${WRKSRC}/doc/*.html ${DOCSDIR}
|
|
|
|
@ ${INSTALL_DATA} ${WRKSRC}/doc/img/*.bmp ${DOCSDIR}/img
|
2001-08-21 10:55:14 -04:00
|
|
|
.for docfile in CREDITS ERRATA README TODO
|
2001-08-17 04:16:49 -04:00
|
|
|
@ ${INSTALL_DATA} ${WRKSRC}/${docfile} ${DOCSDIR}
|
|
|
|
.endfor
|
|
|
|
@ ${MKDIR} ${EXAMPLESDIR}
|
2001-09-03 11:26:29 -04:00
|
|
|
@ ${INSTALL_DATA} ${WRKSRC}/doc/examples/* ${EXAMPLESDIR}
|
2001-08-17 04:16:49 -04:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|