1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-02 01:20:54 +00:00
freebsd-ports/textproc/py-4suite/Makefile
Johann Visagie afc010f63a Updating my email address in my remaining ports.
Prompted by:	vanilla
2001-06-27 10:15:01 +00:00

47 lines
1.1 KiB
Makefile

# New ports collection makefile for: py-4suite
# Date created: 16 March 2000
# Whom: Johann Visagie <johann@egenetics.com>
#
# $FreeBSD$
#
PORTNAME= 4suite
PORTVERSION= 0.11
CATEGORIES= textproc python
MASTER_SITES= ftp://ftp.4suite.org/pub/4Suite/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= 4Suite-${PORTVERSION}
MAINTAINER= wjv@FreeBSD.org
BUILD_DEPENDS= ${PYDISTUTILS} \
${PYXML}
USE_PYTHON= yes
.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:
@ ${PERL} -pi -e \
's#(copy_to=.)docs#$$1doc/py-${PORTNAME}#; \
s#(copy_to=.)(test_suite|demo)#$$1examples/py-${PORTNAME}/$$2#' \
${WRKSRC}/setup.py
.if defined(NOPORTDOCS)
@ ${PERL} -pi -e 's/(data_files=)data_files + /$$1/' \
${WRKSRC}/setup.py
.endif
do-build:
@ cd ${WRKSRC} && ${PYTHON_CMD} setup.py build
do-install:
@ cd ${WRKSRC} && ${PYTHON_CMD} setup.py install -c -O1 \
--prefix=${PREFIX} --install-data=${PREFIX}/share
.include <bsd.port.post.mk>