aboutsummaryrefslogtreecommitdiffstats
path: root/net/py-twistedPair/Makefile
blob: cf62a8e9a974cd7ad75148977a97e0006ed8c6d1 (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
# New ports collection makefile for:    py-twistedPair
# Date created:     14 April 2005
# Whom:             Neal Nelson <neal@nelson.name>
#
# $FreeBSD$
#

PORTNAME=   twistedPair
PORTVERSION=    0.1.0
PORTREVISION=   2
CATEGORIES= net devel python
MASTER_SITES=   http://twistedmatrix.com/downloads/Pair/0.1/ \
        http://tmrc.mit.edu/mirror/twisted/Pair/0.1/
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}
DISTNAME=   TwistedPair-${PORTVERSION}

MAINTAINER= neal@nelson.name
COMMENT=    Twisted Pair can do low level TCP work

BUILD_DEPENDS=  ${PYTHON_SITELIBDIR}/twisted:${PORTSDIR}/devel/py-twistedCore
RUN_DEPENDS=    ${BUILD_DEPENDS}

WRKSRC=     ${WRKDIR}/TwistedPair-${PORTVERSION}

USE_BZIP2=  yes
USE_PYTHON= 2.2+
USE_PYDISTUTILS=    yes
PYDISTUTILS_PKGNAME=    Twisted_Pair

PLIST_SUB+= S=${PYTHONPREFIX_SITELIBDIR:S;${PREFIX}/;;}

post-extract:
    # temporal hack to work with Twisted 2.4
    ${ECHO_CMD} "from twisted.python import versions" > ${WRKSRC}/twisted/pair/_version.py
    ${ECHO_CMD} "version = versions.Version(__name__[:__name__.rfind('.')], 0, 1, 0)" >> ${WRKSRC}/twisted/pair/_version.py

.include <bsd.port.mk>