mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
0450cec5b6
of py-xml and py-4suite. The original maintainer (wjv) have been too busy to manage these ports for last half year. Submitted by: Mike Brown <mike@skew.org>
49 lines
1.3 KiB
Makefile
49 lines
1.3 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.1
|
|
PORTREVISION= 2
|
|
CATEGORIES= textproc python
|
|
MASTER_SITES= ftp://ftp.4suite.org/pub/4Suite/
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
DISTNAME= 4Suite-${PORTVERSION}
|
|
|
|
MAINTAINER= mike@skew.org
|
|
COMMENT= A collection of Python tools for XML processing and object database management
|
|
|
|
IGNORE= has a broken pkg-plist that removes dozens of files not installed by this port.
|
|
|
|
BUILD_DEPENDS= ${PYXML}
|
|
RUN_DEPENDS= ${PYXML}
|
|
|
|
USE_REINPLACE= yes
|
|
REINPLACE_ARGS= -i "" -E
|
|
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}#' \
|
|
-e '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>
|