aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/py-trex/Makefile
blob: 99e8a570a57ce81e894e2b9de9d4c2fddf116e52 (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
# ex:ts=8
# New ports collection Makefile for:    PyTREX
# Date created:         Mar 16, 2001
# Whom:             Ying-Chieh Liao <ijliao@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   trex
PORTVERSION=    0.7.2
CATEGORIES= textproc python
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= pytrex
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}
DISTNAME=   pytrex-${PORTVERSION}
EXTRACT_SUFX=   .tgz

MAINTAINER= ijliao@FreeBSD.org

RUN_DEPENDS=    ${PYTHON_SITELIBDIR}/pyexpat.so:${PORTSDIR}/textproc/py-expat

USE_PYTHON= yes

NO_BUILD=   yes
USE_REINPLACE=  yes

post-patch:
    @${REINPLACE_CMD} -e "s|%%LOCALBASE%%|${LOCALBASE}|g" ${WRKSRC}/pytrex.py

do-install:
    ${INSTALL_SCRIPT} ${WRKSRC}/pytrex.py ${PREFIX}/bin/pytrex

.include <bsd.port.mk>