aboutsummaryrefslogtreecommitdiffstats
path: root/net/py-rt/Makefile
blob: 1e77e6944e951ade8abac6eeaadfaed8c9d62169 (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
# ex:ts=8
# Ports collection makefile for:    py-rt
# Date created:         Jun 14, 2002
# Whom:             ijliao
#
# $FreeBSD$
#

PORTNAME=   rt
PORTVERSION=    2.5
CATEGORIES= net python
MASTER_SITES=   http://research.sprintlabs.com/pyrt/results/
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}
DISTNAME=   pyrt-${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Python Routeing Toolkit

USE_PYTHON= yes
NO_WRKSUBDIR=   yes
NO_BUILD=   yes
DOCSDIR=    ${PREFIX}/share/doc/py-rt

post-patch:
.for file in bgp.py isis.py
    @${REINPLACE_CMD} -e "s/python2/python/g" ${WRKSRC}/${file}
.endfor

do-install:
    ${MKDIR} ${PYTHON_SITELIBDIR}/rt
    (cd ${WRKSRC} ; ${INSTALL_SCRIPT} *.py ${PYTHON_SITELIBDIR}/rt)
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
    (cd ${WRKSRC} ; ${INSTALL_SCRIPT} README* ${DOCSDIR})
.endif

.include <bsd.port.mk>