1999-04-17 19:34:02 +02:00
|
|
|
# Ports collection Makefile for: PyXML
|
|
|
|
# Date created: 04/17/1999
|
1999-08-31 08:53:31 +02:00
|
|
|
# Whom: nectar@FreeBSD.org
|
1999-04-17 19:34:02 +02:00
|
|
|
#
|
1999-08-31 04:11:56 +02:00
|
|
|
# $FreeBSD$
|
1999-04-17 19:34:02 +02:00
|
|
|
#
|
|
|
|
|
2000-11-16 15:06:51 +01:00
|
|
|
PORTNAME= xml
|
2004-12-17 09:44:49 +01:00
|
|
|
PORTVERSION= 0.8.4
|
2009-07-28 00:27:43 +02:00
|
|
|
PORTREVISION= 2
|
1999-05-28 22:57:39 +02:00
|
|
|
CATEGORIES= textproc python
|
2009-08-22 02:37:17 +02:00
|
|
|
MASTER_SITES= SF/py${PORTNAME}/py${PORTNAME}/${PORTVERSION}
|
2000-11-16 15:06:51 +01:00
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
2000-05-05 11:14:59 +02:00
|
|
|
DISTNAME= PyXML-${PORTVERSION}
|
1999-04-17 19:34:02 +02:00
|
|
|
|
2004-06-14 08:04:30 +02:00
|
|
|
MAINTAINER= mike@skew.org
|
2004-12-17 09:44:49 +01:00
|
|
|
COMMENT= PyXML: Python XML library enhancements
|
1999-04-17 19:34:02 +02:00
|
|
|
|
2004-12-17 09:44:49 +01:00
|
|
|
USE_PYTHON= 2.1+
|
2002-04-29 21:08:55 +02:00
|
|
|
USE_PYDISTUTILS= yes
|
2007-07-30 11:42:28 +02:00
|
|
|
PYDISTUTILS_PKGNAME= PyXML
|
1999-04-17 19:34:02 +02:00
|
|
|
|
2000-09-13 14:23:31 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2004-12-17 09:44:49 +01:00
|
|
|
CPIOARGS= --quiet -pdum -R
|
2003-08-06 11:26:03 +02:00
|
|
|
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
|
|
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}
|
2000-11-16 15:06:51 +01:00
|
|
|
PLIST_SUB+= PACKAGE_DIR=_xmlplus
|
2004-12-17 09:44:49 +01:00
|
|
|
|
|
|
|
# PyXML's XPath support for minidom (xml.xpath) is functional and is
|
|
|
|
# installed by default, unless WITHOUT_XPATH is defined.
|
|
|
|
#
|
|
|
|
# PyXML's XSLT support for minidom (xml.xslt) is experimental, and may
|
|
|
|
# render PyXML incompatible with modern versions of 4Suite. Therefore,
|
|
|
|
# this port will not install it by default, unless WITH_XSLT is defined.
|
|
|
|
# These defaults are the same as when PyXML is installed independently.
|
|
|
|
#
|
|
|
|
# WITHOUT_XPATH is ignored if WITH_XSLT is defined.
|
|
|
|
#
|
|
|
|
# There are no mature XSLT processors that can operate directly on
|
|
|
|
# minidom documents, but such documents can be converted to formats
|
|
|
|
# that are supported. 4Suite, for example, can convert a DOM directly
|
|
|
|
# to a Domlette, and other processors can make use of the serialized
|
|
|
|
# form of the document.
|
|
|
|
#
|
|
|
|
.if defined(WITH_XSLT)
|
2002-09-18 14:25:25 +02:00
|
|
|
PYDISTUTILS_BUILDARGS+= --with-xslt
|
|
|
|
PYDISTUTILS_INSTALLARGS+= --with-xslt
|
2004-12-17 09:44:49 +01:00
|
|
|
PLIST_SUB+= XPATH=""
|
|
|
|
PLIST_SUB+= XSLT=""
|
|
|
|
.elif defined(WITHOUT_XPATH)
|
|
|
|
PYDISTUTILS_BUILDARGS+= --without-xpath --without-xslt
|
|
|
|
PYDISTUTILS_INSTALLARGS+= --without-xpath --without-xslt
|
|
|
|
PLIST_SUB+= XPATH="@comment "
|
|
|
|
PLIST_SUB+= XSLT="@comment "
|
|
|
|
.else
|
|
|
|
PYDISTUTILS_BUILDARGS+= --with-xpath --without-xslt
|
|
|
|
PYDISTUTILS_INSTALLARGS+= --with-xpath --without-xslt
|
|
|
|
PLIST_SUB+= XPATH=""
|
|
|
|
PLIST_SUB+= XSLT="@comment "
|
|
|
|
.endif
|
1999-04-17 19:34:02 +02:00
|
|
|
|
2001-02-28 14:12:30 +01:00
|
|
|
post-install:
|
1999-04-17 19:34:02 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
2001-08-07 12:25:19 +02:00
|
|
|
@ ${MKDIR} ${DOCSDIR}
|
2001-03-23 01:47:52 +01:00
|
|
|
.for docfile in ANNOUNCE CREDITS LICENCE README* TODO
|
2002-05-07 11:34:39 +02:00
|
|
|
@ ${INSTALL_DATA} ${WRKSRC}/${docfile} ${DOCSDIR}
|
2001-03-23 01:47:52 +01:00
|
|
|
.endfor
|
2003-11-13 13:54:57 +01:00
|
|
|
@ cd ${WRKSRC}/doc && ${FIND} * \
|
2004-12-17 09:44:49 +01:00
|
|
|
| ${CPIO} ${CPIOARGS} ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
|
2001-08-07 12:25:19 +02:00
|
|
|
@ ${MKDIR} ${EXAMPLESDIR}
|
2003-11-13 13:54:57 +01:00
|
|
|
@ cd ${WRKSRC} && ${FIND} demo test \
|
2004-12-17 09:44:49 +01:00
|
|
|
| ${CPIO} ${CPIOARGS} ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR}
|
1999-04-17 19:34:02 +02:00
|
|
|
.endif
|
|
|
|
|
2000-09-13 14:23:31 +02:00
|
|
|
.include <bsd.port.post.mk>
|