1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-27 21:29:02 +00:00
freebsd-ports/textproc/py-xml/Makefile
James E. Housley 1a8bdc02e5 - Update PyXML (textproc/py-xml) to 0.6.5
- Delete obsolete MASTER_SITES - SourceForge is now the sole official
  distribution point (and the mirrors were not being updated).
- Now $PREFIX-clean!
- Install additional README files in documentation dir.
- Install sample scripts and test suite under ${PREFIX}/share/examples
- Now also do optimised compilation of Python modules during installation.
  This bloats the install somewhat, but it prevents an unclean deinstall in
  some fairly obscure circumstances.  And it might even improve runtimes.
- Mild tweaks to $PLIST to ensure that this port will work properly with its
  sister package 4Suite.  Please see the 4Suite port I've submitted in PR
  ports/25939

PR:		25990
Submitted by:	Johann Visagie <johann@egenetics.com> MAINTAINER
2001-03-23 00:47:52 +00:00

58 lines
1.4 KiB
Makefile

# Ports collection Makefile for: PyXML
# Date created: 04/17/1999
# Whom: nectar@FreeBSD.org
#
# $FreeBSD$
#
PORTNAME= xml
PORTVERSION= 0.6.5
CATEGORIES= textproc python
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= pyxml
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= PyXML-${PORTVERSION}
MAINTAINER= johann@egenetics.com
BUILD_DEPENDS= ${PYDISTUTILS}
INSTALLS_SHLIB= yes
# On a system with more than one version of Python installed, you can force
# this port to install for a specific version of Python by explicitly setting
# ${PYTHON_VERSION} during build/installation.
USE_PYTHON= yes
.include <bsd.port.pre.mk>
CPIO= cpio --quiet -pdum -R
DOCDIR= ${PREFIX}/share/doc/py-xml
EGDIR= ${PREFIX}/share/examples/py-xml
.if ${PYTHON_VERSION} == "python1.5"
PLIST_SUB+= PACKAGE_DIR=xml
.else
PLIST_SUB+= PACKAGE_DIR=_xmlplus
.endif
do-build:
@ cd ${WRKSRC} && ${PYTHON_CMD} setup.py build
do-install:
@ cd ${WRKSRC} && ${PYTHON_CMD} setup.py install -c -O1 \
--prefix=${PREFIX}
post-install:
.if !defined(NOPORTDOCS)
@ ${MKDIR} ${DOCDIR}
.for docfile in ANNOUNCE CREDITS LICENCE README* TODO
@ ${INSTALL_MAN} ${WRKSRC}/${docfile} ${DOCDIR}
.endfor
@ cd ${WRKSRC}/doc && find * \
| ${CPIO} ${MANOWN}:${MANGRP} ${DOCDIR}
@ ${MKDIR} ${EGDIR}
@ cd ${WRKSRC} && find demo test \
| ${CPIO} ${SHAREOWN}:${SHAREGRP} ${EGDIR}
.endif
.include <bsd.port.post.mk>