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-04-09 21:54:47 +00:00
|
|
|
PORTNAME= py-xml
|
2000-05-05 09:14:59 +00:00
|
|
|
PORTVERSION= 0.5.4
|
1999-05-28 20:57:39 +00:00
|
|
|
CATEGORIES= textproc python
|
|
|
|
MASTER_SITES= http://www.python.org/sigs/xml-sig/files/ \
|
|
|
|
ftp://ftp.cdrom.com/pub/python/www.python.org/sigs/xml-sig/files/ \
|
|
|
|
ftp://ftp.kddlabs.co.jp/pub/lang/python/www.python.org/sigs/xml-sig/files/ \
|
2000-06-20 13:37:39 +00:00
|
|
|
ftp://unix.hensa.ac.uk/mirrors/ftp.python.org/pub/www.python.org/sigs/xml-sig/files/
|
2000-05-05 09:14:59 +00:00
|
|
|
DISTNAME= PyXML-${PORTVERSION}
|
1999-04-17 17:34:02 +00:00
|
|
|
|
1999-08-31 06:53:31 +00:00
|
|
|
MAINTAINER= nectar@FreeBSD.org
|
1999-04-17 17:34:02 +00:00
|
|
|
|
2000-05-05 09:14:59 +00:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/lib/python1.5/site-packages/distutils/core.py:${PORTSDIR}/misc/py-distutils
|
1999-05-01 02:20:34 +00:00
|
|
|
RUN_DEPENDS= python:${PORTSDIR}/lang/python
|
|
|
|
|
1999-04-17 17:34:02 +00:00
|
|
|
PLIST= ${WRKDIR}/PLIST
|
|
|
|
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
DOCDIR= share/doc/py-xml
|
|
|
|
# Document files to be installed in ${DOCDIR}
|
2000-05-05 09:14:59 +00:00
|
|
|
DOCS1= xml-howto.txt xml-ref.txt
|
1999-04-17 17:34:02 +00:00
|
|
|
# Document files to be installed in ${DOCDIR}/xmlproc
|
|
|
|
DOCS2= artikler.css basicapi.gif cmdline.gif \
|
|
|
|
standard.css xmlproc-catalog-doco.html \
|
|
|
|
xmlproc-doco.html xmlproc-dtd-doco.html \
|
|
|
|
xmlproc.html xmlproc_cmdline.html \
|
|
|
|
xmlproc_dtdparser.html xmlproc_ns.html \
|
|
|
|
xmlproc_tut.html
|
|
|
|
# Complete list of document files
|
|
|
|
DOCS= ${DOCS1} ${DOCS2:S|^|xmlproc/|}
|
|
|
|
|
|
|
|
# Command to install document file and simultaneously add filename
|
|
|
|
# to the packing list
|
|
|
|
INSTALL_DOC= ${INSTALL_DATA} ${WRKSRC}/doc/@DOC \
|
|
|
|
${PREFIX}/${DOCDIR}/@DOC && \
|
|
|
|
${ECHO} ${DOCDIR}/@DOC >> ${PLIST}
|
|
|
|
.endif
|
|
|
|
|
2000-05-05 09:14:59 +00:00
|
|
|
do-build:
|
|
|
|
cd ${WRKSRC} && python setup.py build
|
1999-04-17 17:34:02 +00:00
|
|
|
|
|
|
|
pre-install:
|
|
|
|
${CP} ${PKGDIR}/PLIST ${PLIST}
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${PREFIX}/${DOCDIR}
|
|
|
|
${MKDIR} ${PREFIX}/${DOCDIR}/xmlproc
|
|
|
|
.for doc in ${DOCS}
|
|
|
|
${INSTALL_DOC:S|@DOC|${doc}|g}
|
|
|
|
.endfor
|
|
|
|
${ECHO} @dirrm ${DOCDIR}/xmlproc >> ${PLIST}
|
|
|
|
${ECHO} @dirrm ${DOCDIR} >> ${PLIST}
|
|
|
|
.endif
|
|
|
|
|
2000-05-05 09:14:59 +00:00
|
|
|
do-install:
|
|
|
|
cd ${WRKSRC} && python setup.py install
|
|
|
|
|
1999-04-17 17:34:02 +00:00
|
|
|
.include <bsd.port.mk>
|