647fb61a38
1. PyExpat is required in order to build the documentation. Most systems have it, but if you're using python-2.3.2_1 or lower, and have not installed textproc/py-expat or textproc/py-xml, then you probably don't have it. 2. Now that 4Suite XML supports DTD validation, there is no support for xmlproc, the validating parser distributed in PyXML. When xmlproc was needed, it had to come from PyXML 0.8+. That restriction is no longer applicable. PR: ports/90831 Submitted by: Mike Brown <mike@skew.org>
74 lines
1.9 KiB
Makefile
74 lines
1.9 KiB
Makefile
# New ports collection makefile for: py-4Suite-XML
|
|
# Date created: 26 October 2005
|
|
# Whom: Mike Brown <mike@skew.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= 4Suite-XML
|
|
PORTVERSION= 1.0.b3
|
|
PORTREVISION= 1
|
|
CATEGORIES= textproc python
|
|
MASTER_SITES= ftp://ftp.4suite.org/pub/4Suite/ \
|
|
${MASTER_SITE_SOURCEFORGE}
|
|
MASTER_SITE_SUBDIR= foursuite
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
DISTNAME= 4Suite-XML-1.0b3
|
|
|
|
MAINTAINER= mike@skew.org
|
|
COMMENT= A collection of Python tools for XML processing
|
|
|
|
USE_BZIP2= yes
|
|
USE_REINPLACE= yes
|
|
REINPLACE_ARGS= -i "" -E
|
|
USE_PYTHON= 2.2.1+
|
|
USE_PYDISTUTILS= yes
|
|
|
|
WRKSRC= ${WRKDIR}/4Suite-1.0b3
|
|
CONFLICTS= py*-4suite-[01]*
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
BINDIR= bin
|
|
SYSCONFDIR= etc/4Suite
|
|
LIBDIR= lib/4Suite
|
|
LOCALSTATEDIR= var/4Suite
|
|
DATADIR= share/4Suite
|
|
DOCSDIR= share/doc/4Suite
|
|
LOCALEDIR= share/locale
|
|
|
|
PLIST_SUB+= PACKAGE_DIR=Ft BINDIR=${BINDIR} SYSCONFDIR=${SYSCONFDIR} \
|
|
LIBDIR=${LIBDIR} LOCALSTATEDIR=${LOCALSTATEDIR} \
|
|
DATADIR=${DATADIR} DOCSDIR=${DOCSDIR} LOCALEDIR=${LOCALEDIR}
|
|
|
|
SUB_FILES= pkg-message
|
|
SUB_LIST+= PACKAGE_DIR=Ft BINDIR=${BINDIR} SYSCONFDIR=${SYSCONFDIR} \
|
|
LIBDIR=${LIBDIR} LOCALSTATEDIR=${LOCALSTATEDIR} \
|
|
DATADIR=${DATADIR} DOCSDIR=${DOCSDIR} LOCALEDIR=${LOCALEDIR} \
|
|
PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR} \
|
|
DISTVERSION=${DISTVERSION}
|
|
|
|
PYDISTUTILS_CONFIGUREARGS= --bindir=${PREFIX}/${BINDIR} \
|
|
--sysconfdir=${PREFIX}/${SYSCONFDIR} \
|
|
--libdir=${PREFIX}/${LIBDIR} \
|
|
--localstatedir=${PREFIX}/${LOCALSTATEDIR} \
|
|
--datadir=${PREFIX}/${DATADIR} \
|
|
--docdir=${PREFIX}/${DOCSDIR} \
|
|
--localedir=${PREFIX}/${LOCALEDIR} \
|
|
--pythonlibdir=${PYTHON_SITELIBDIR}
|
|
|
|
.if defined(NOPORTDOCS)
|
|
PYDISTUTILS_BUILDARGS= --without-docs
|
|
PYDISTUTILS_INSTALLARGS= --without-docs
|
|
.else
|
|
PYDISTUTILS_BUILDARGS= --with-docs
|
|
PYDISTUTILS_INSTALLARGS= --with-docs
|
|
BUILD_DEPENDS= ${PYEXPAT}
|
|
.endif
|
|
|
|
post-install:
|
|
.if !defined(NOPORTDOCS)
|
|
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/${DOCSDIR}
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|