aboutsummaryrefslogtreecommitdiff
path: root/graphics/py-PyX/Makefile
blob: 97bef6e1cc34b877ce83e61d1f647cc135910ab5 (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
# ex:ts=8
# Ports collection makefile for:	PyX
# Date created:			Jun 8, 2004
# Whom:				ijliao
#
# $FreeBSD$
#

PORTNAME=	PyX
PORTVERSION=	0.10
PORTREVISION=	1
CATEGORIES=	graphics python
MASTER_SITES=	SF
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}

MAINTAINER=	mva@FreeBSD.org
COMMENT=	A Python package for the creation of encapsulated PostScript figures

BUILD_DEPENDS=	kpsewhich:${PORTSDIR}/print/teTeX

USE_PYTHON=	2.3+
USE_PYDISTUTILS=	yes

PLIST_FILES=	etc/pyxrc

post-patch:
	@${REINPLACE_CMD} -e 's|/etc|etc|g' ${WRKSRC}/setup.py

post-install:
	@${FIND} ${PYTHONPREFIX_SITELIBDIR}/pyx ! -type d | \
		${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
	@${FIND} ${PYTHONPREFIX_SITELIBDIR}/pyx -type d | ${SORT} -r | \
		${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
	@${FIND} ${PREFIX}/share/pyx ! -type d | \
		${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
	@${FIND} ${PREFIX}/share/pyx -type d | ${SORT} -r | \
		${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}

.include <bsd.port.mk>