blob: 62b1df93b16ec2105875dcac2a41b6f4bc884f43 (
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
|
# New ports collection makefile for: py-4suite
# Date created: 16 March 2000
# Whom: Johann Visagie <johann@egenetics.com>
#
# $FreeBSD$
#
PORTNAME= 4suite
PORTVERSION= 0.11.1
PORTREVISION= 1
CATEGORIES= textproc python
MASTER_SITES= ftp://ftp.4suite.org/pub/4Suite/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= 4Suite-${PORTVERSION}
MAINTAINER= wjv@FreeBSD.org
BUILD_DEPENDS= ${PYXML}
RUN_DEPENDS= ${PYXML}
USE_REINPLACE= yes
USE_PYTHON= yes
USE_PYDISTUTILS= yes
PYDISTUTILS_INSTALLARGS= -c -O1 --prefix=${PREFIX} \
--install-data=${PREFIX}/share
.include <bsd.port.pre.mk>
.if ${PYTHON_VERSION} == "python1.5" || ${PYTHON_VERSION} == "python1.6"
PLIST_SUB+= PACKAGE_DIR=xml PYTHON2_ONLY="@comment "
.else
PLIST_SUB+= PACKAGE_DIR=_xmlplus PYTHON2_ONLY=""
.endif
post-patch:
@ ${REINPLACE_CMD} -e \
's#(copy_to=.)docs#$$1doc/${PORTNAME}#; \
s#(copy_to=.)(test_suite|demo)#$$1examples/${PORTNAME}/$$2#' \
${WRKSRC}/setup.py
.if defined(NOPORTDOCS)
@ ${REINPLACE_CMD} -e 's/(data_files=)data_files/$$1/' \
${WRKSRC}/setup.py
.endif
.include <bsd.port.post.mk>
|