2006-10-03 12:53:50 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.28 2006/10/03 16:53:50 xsa Exp $
|
2004-01-29 12:13:37 -05:00
|
|
|
|
2006-06-03 05:19:52 -04:00
|
|
|
SHARED_ONLY= Yes
|
2001-05-05 19:20:18 -04:00
|
|
|
|
2004-07-26 17:04:24 -04:00
|
|
|
COMMENT= "Python module for writing basic XML applications"
|
2001-05-05 19:20:18 -04:00
|
|
|
|
2006-09-22 06:39:27 -04:00
|
|
|
VERSION= 0.8.4
|
2001-10-29 13:47:39 -05:00
|
|
|
DISTNAME= PyXML-${VERSION}
|
2006-09-25 12:08:53 -04:00
|
|
|
PKGNAME= py-xml-${VERSION}p1
|
2001-10-29 13:47:39 -05:00
|
|
|
CATEGORIES= textproc devel
|
2001-05-05 19:20:18 -04:00
|
|
|
|
2002-05-14 08:07:09 -04:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pyxml/}
|
2001-05-05 19:20:18 -04:00
|
|
|
|
2001-10-29 13:47:39 -05:00
|
|
|
HOMEPAGE= http://pyxml.sourceforge.net/
|
2001-05-05 19:20:18 -04:00
|
|
|
|
2003-11-15 10:12:53 -05:00
|
|
|
# BSD, badly worded
|
2001-05-05 19:20:18 -04:00
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
|
2004-08-03 17:31:06 -04:00
|
|
|
MODULES= lang/python
|
2003-07-31 15:11:59 -04:00
|
|
|
|
2006-09-22 06:39:27 -04:00
|
|
|
MODPY_DISTUTILS_BUILDARGS= --with-libexpat=${LOCALBASE} --with-xslt
|
2003-07-31 15:11:59 -04:00
|
|
|
|
2003-03-30 01:54:51 -05:00
|
|
|
# pyexpat - use our own pyexpat.so
|
|
|
|
# otherwise use the python-expat version
|
|
|
|
|
|
|
|
FLAVORS=pyexpat
|
|
|
|
FLAVOR?=
|
|
|
|
|
2006-08-03 19:55:10 -04:00
|
|
|
LIB_DEPENDS= expat.>=2::textproc/expat
|
2001-08-08 06:02:50 -04:00
|
|
|
|
2003-03-30 01:54:51 -05:00
|
|
|
.if !${FLAVOR:L:Mpyexpat}
|
2004-08-08 05:29:01 -04:00
|
|
|
BUILD_DEPENDS= ${MODPY_EXPAT_DEPENDS}
|
2003-03-30 01:54:51 -05:00
|
|
|
.endif
|
|
|
|
|
2006-09-25 08:55:30 -04:00
|
|
|
REGRESS_DEPENDS= :python-tests-${MODPY_VERSION}*:lang/python/${MODPY_VERSION},-tests
|
2001-05-05 19:20:18 -04:00
|
|
|
|
2006-09-25 08:55:30 -04:00
|
|
|
DOC_DIR= ${PREFIX}/share/doc/py-xml/
|
2001-10-29 13:47:39 -05:00
|
|
|
SRC_DOCDIR= ${WRKSRC}/doc
|
|
|
|
DOCEXT= *.txt *.tex
|
2001-05-05 19:20:18 -04:00
|
|
|
|
2003-07-31 15:11:59 -04:00
|
|
|
post-install:
|
2001-08-08 06:02:50 -04:00
|
|
|
${INSTALL_DATA_DIR} ${DOC_DIR}
|
2001-10-29 13:47:39 -05:00
|
|
|
${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}
|
2001-05-05 19:20:18 -04:00
|
|
|
|
2006-10-03 12:53:50 -04:00
|
|
|
do-regress: fake
|
|
|
|
@cd ${WRKSRC}/test && ${MAKE_ENV} \
|
|
|
|
PYTHONPATH=${WRKINST}${MODPY_SITEPKG} ${MODPY_BIN} ./regrtest.py
|
2006-09-25 08:55:30 -04:00
|
|
|
|
2001-05-05 19:20:18 -04:00
|
|
|
.include <bsd.port.mk>
|