blob: 3db18f469bf3d62c81449fcfb4340ff5d6288db8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# Ports collection Makefile for: PyXML
# Date created: 04/17/1999
# Whom: nectar@FreeBSD.org
#
# $FreeBSD$
#
PORTNAME= xml
PORTVERSION= 0.8.3
CATEGORIES= textproc python
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= pyxml
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= PyXML-${PORTVERSION}
MAINTAINER= wjv@FreeBSD.org
COMMENT= The Python XML package, including parser, SAX, DOM, and Expat
USE_PYTHON= yes
USE_PYDISTUTILS= yes
.include <bsd.port.pre.mk>
CPIO= cpio --quiet -pdum -R
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
EXAMPLESDIR= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}
PLIST_SUB+= PACKAGE_DIR=_xmlplus
PYDISTUTILS_BUILDARGS+= --with-xslt
PYDISTUTILS_INSTALLARGS+= --with-xslt
pre-install:
@ ${SH} ${PKGREQ} INSTALL
post-install:
.if !defined(NOPORTDOCS)
@ ${MKDIR} ${DOCSDIR}
.for docfile in ANNOUNCE CREDITS LICENCE README* TODO
@ ${INSTALL_DATA} ${WRKSRC}/${docfile} ${DOCSDIR}
.endfor
@ cd ${WRKSRC}/doc && ${FIND} * \
| ${CPIO} ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
@ ${MKDIR} ${EXAMPLESDIR}
@ cd ${WRKSRC} && ${FIND} demo test \
| ${CPIO} ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR}
.endif
.include <bsd.port.post.mk>
|