1999-04-17 17:34:02 +00:00
|
|
|
# Ports collection Makefile for: PyXML
|
|
|
|
# Date created: 04/17/1999
|
1999-08-31 06:53:31 +00:00
|
|
|
# Whom: nectar@FreeBSD.org
|
1999-04-17 17:34:02 +00:00
|
|
|
#
|
1999-08-31 02:11:56 +00:00
|
|
|
# $FreeBSD$
|
1999-04-17 17:34:02 +00:00
|
|
|
#
|
|
|
|
|
2000-11-16 14:06:51 +00:00
|
|
|
PORTNAME= xml
|
2004-12-17 08:44:49 +00:00
|
|
|
PORTVERSION= 0.8.4
|
1999-05-28 20:57:39 +00:00
|
|
|
CATEGORIES= textproc python
|
2001-03-23 00:47:52 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
2000-11-16 14:06:51 +00:00
|
|
|
MASTER_SITE_SUBDIR= pyxml
|
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
2000-05-05 09:14:59 +00:00
|
|
|
DISTNAME= PyXML-${PORTVERSION}
|
1999-04-17 17:34:02 +00:00
|
|
|
|
2004-06-14 06:04:30 +00:00
|
|
|
MAINTAINER= mike@skew.org
|
2004-12-17 08:44:49 +00:00
|
|
|
COMMENT= PyXML: Python XML library enhancements
|
1999-04-17 17:34:02 +00:00
|
|
|
|
2004-12-17 08:44:49 +00:00
|
|
|
USE_PYTHON= 2.1+
|
2002-04-29 19:08:55 +00:00
|
|
|
USE_PYDISTUTILS= yes
|
1999-04-17 17:34:02 +00:00
|
|
|
|
2000-09-13 12:23:31 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2004-12-17 08:44:49 +00:00
|
|
|
CPIOARGS= --quiet -pdum -R
|
2003-08-06 09:26:03 +00:00
|
|
|
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
|
|
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}
|
2000-11-16 14:06:51 +00:00
|
|
|
PLIST_SUB+= PACKAGE_DIR=_xmlplus
|
2004-12-17 08:44:49 +00: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 12:25:25 +00:00
|
|
|
PYDISTUTILS_BUILDARGS+= --with-xslt
|
|
|
|
PYDISTUTILS_INSTALLARGS+= --with-xslt
|
2004-12-17 08:44:49 +00: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 17:34:02 +00:00
|
|
|
|
2001-02-28 13:12:30 +00:00
|
|
|
post-install:
|
1999-04-17 17:34:02 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
2001-08-07 10:25:19 +00:00
|
|
|
@ ${MKDIR} ${DOCSDIR}
|
2001-03-23 00:47:52 +00:00
|
|
|
.for docfile in ANNOUNCE CREDITS LICENCE README* TODO
|
2002-05-07 09:34:39 +00:00
|
|
|
@ ${INSTALL_DATA} ${WRKSRC}/${docfile} ${DOCSDIR}
|
2001-03-23 00:47:52 +00:00
|
|
|
.endfor
|
2003-11-13 12:54:57 +00:00
|
|
|
@ cd ${WRKSRC}/doc && ${FIND} * \
|
2004-12-17 08:44:49 +00:00
|
|
|
| ${CPIO} ${CPIOARGS} ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
|
2001-08-07 10:25:19 +00:00
|
|
|
@ ${MKDIR} ${EXAMPLESDIR}
|
2003-11-13 12:54:57 +00:00
|
|
|
@ cd ${WRKSRC} && ${FIND} demo test \
|
2004-12-17 08:44:49 +00:00
|
|
|
| ${CPIO} ${CPIOARGS} ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR}
|
1999-04-17 17:34:02 +00:00
|
|
|
.endif
|
|
|
|
|
2000-09-13 12:23:31 +00:00
|
|
|
.include <bsd.port.post.mk>
|