38f79919bf
- install egg-info file so that we don't end up with errors like "pkg_resources.DistributionNotFound: PyXML..." when using some apps that need this module
58 lines
1.4 KiB
Makefile
58 lines
1.4 KiB
Makefile
# $OpenBSD: Makefile,v 1.33 2008/04/19 09:24:50 ajacoutot Exp $
|
|
|
|
SHARED_ONLY= Yes
|
|
|
|
COMMENT= Python module for writing basic XML applications
|
|
|
|
MODPY_EGG_VERSION=0.8.4
|
|
|
|
VERSION= ${MODPY_EGG_VERSION}
|
|
DISTNAME= PyXML-${VERSION}
|
|
PKGNAME= py-xml-${VERSION}p4
|
|
CATEGORIES= textproc devel
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pyxml/}
|
|
|
|
HOMEPAGE= http://pyxml.sourceforge.net/
|
|
|
|
# BSD, badly worded
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
MODULES= lang/python
|
|
USE_X11= Yes
|
|
|
|
MODPY_DISTUTILS_BUILDARGS= --with-libexpat=${X11BASE} --with-xslt
|
|
|
|
# pyexpat - use our own pyexpat.so
|
|
# otherwise use the python-expat version
|
|
|
|
FLAVORS=pyexpat
|
|
FLAVOR?=
|
|
|
|
.if !${FLAVOR:L:Mpyexpat}
|
|
BUILD_DEPENDS= ${MODPY_EXPAT_DEPENDS}
|
|
.endif
|
|
|
|
REGRESS_DEPENDS= :python-tests-${MODPY_VERSION}*:lang/python/${MODPY_VERSION},-tests
|
|
|
|
DOC_DIR= ${PREFIX}/share/doc/py-xml/
|
|
SRC_DOCDIR= ${WRKSRC}/doc
|
|
DOCEXT= *.txt *.tex
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${DOC_DIR}
|
|
${INSTALL_DATA_DIR} ${DOC_DIR}/4DOM
|
|
${INSTALL_DATA_DIR} ${DOC_DIR}/xmlproc
|
|
${INSTALL_DATA} ${SRC_DOCDIR}/4DOM/* ${DOC_DIR}/4DOM/
|
|
${INSTALL_DATA} ${SRC_DOCDIR}/xmlproc/* ${DOC_DIR}/xmlproc/
|
|
@cd ${SRC_DOCDIR}/ && ${INSTALL_DATA} ${DOCEXT} ${DOC_DIR}
|
|
|
|
do-regress: fake
|
|
@cd ${WRKSRC}/test && ${MAKE_ENV} \
|
|
PYTHONPATH=${WRKINST}${MODPY_SITEPKG} ${MODPY_BIN} ./regrtest.py
|
|
|
|
.include <bsd.port.mk>
|