blob: 4e77fa6dc3646f6c7e21064b8de9b4c6edcb82c9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
# New ports collection makefile for: py-twisted
# Date created: 16 August 2001
# Whom: Johann Visagie <wjv@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= twisted
PORTVERSION= 1.0.0
CATEGORIES= devel net python
MASTER_SITES= http://twistedmatrix.com/downloads/ \
${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= Twisted-${PORTVERSION}
MAINTAINER= wjv@FreeBSD.org
# - Defining the variable WITHOUT_TESTS at build time will remove the
# dependency on PyUnit (which has a few large dependencies). This will
# allow this port to build with no runtime dependencies except Python
# itself - often ideal for server machines running production code based
# on Twisted.
#
# - Note that Twisted ships with some graphical examples and clients that
# require PyGNOME to run. These are not central to the funcitoning of
# Twisted, but the user should feel free to install x11-toolits/py-gnome
# separately if desired.
.if !defined(WITHOUT_TESTS)
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/unittest.py:${PORTSDIR}/devel/py-unit \
${PYTHON_SITELIBDIR}/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter
.endif
USE_BZIP2= yes
USE_PYTHON= yes
USE_PYDISTUTILS= yes
USE_REINPLACE= yes
MAN1= coil.1 im.1 manhole.1 mktap.1 t-im.1 tapconvert.1 twistd.1
post-patch:
@ ${REINPLACE_CMD} -e 's/from pyunit import/import/g' \
${WRKSRC}/admin/runtests ${WRKSRC}/twisted/test/*.py
pre-install:
@ ${SH} ${PKGREQ} INSTALL
post-install:
@ ${MKDIR} ${DATADIR}/admin
@ ${INSTALL_SCRIPT} ${WRKSRC}/admin/accepttests \
${WRKSRC}/admin/runtests ${DATADIR}/admin
.for manpage in ${MAN1}
@ ${INSTALL_MAN} ${WRKSRC}/doc/man/${manpage} ${MANPREFIX}/man/man1
.endfor
.if !defined(NOPORTDOCS)
@ ${MKDIR} ${DOCSDIR}/man
.for docfile in CREDITS ChangeLog README TODO
@ ${INSTALL_DATA} ${WRKSRC}/${docfile} ${DOCSDIR}
.endfor
.for htmlman in ${MAN1:S/1/html/}
@ ${INSTALL_DATA} ${WRKSRC}/doc/man/${htmlman} ${DOCSDIR}/man
.endfor
@ cd ${WRKSRC}/doc && \
${FIND} * -type d -maxdepth 0 \! -name examples \! -name man | \
${TAR} cTf - - | ${TAR} xUCf ${DOCSDIR} -
@ ${MKDIR} ${EXAMPLESDIR}/scripts ${EXAMPLESDIR}/static
@ ${INSTALL_DATA} ${WRKSRC}/doc/examples/* ${EXAMPLESDIR}/scripts
@ ${INSTALL_DATA} ${WRKSRC}/static/* ${EXAMPLESDIR}/static
.endif
.include <bsd.port.mk>
|