2009-06-03 22:12:10 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.37 2009/06/04 02:12:10 ajacoutot 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
|
|
|
|
2007-09-15 16:59:36 -04:00
|
|
|
COMMENT= Python module for writing basic XML applications
|
2001-05-05 19:20:18 -04:00
|
|
|
|
2008-04-19 05:24:50 -04:00
|
|
|
MODPY_EGG_VERSION=0.8.4
|
|
|
|
|
|
|
|
VERSION= ${MODPY_EGG_VERSION}
|
2001-10-29 13:47:39 -05:00
|
|
|
DISTNAME= PyXML-${VERSION}
|
2009-06-03 22:12:10 -04:00
|
|
|
PKGNAME= py-xml-${VERSION}p8
|
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
|
|
|
|
2009-06-03 22:12:10 -04:00
|
|
|
HOMEPAGE= http://sourceforge.net/projects/pyxml/
|
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
|
2007-07-11 07:11:53 -04:00
|
|
|
USE_X11= Yes
|
2003-07-31 15:11:59 -04:00
|
|
|
|
2009-06-03 22:12:10 -04:00
|
|
|
MODPY_DISTUTILS_BUILDARGS= --with-libexpat=/usr \
|
|
|
|
--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?=
|
|
|
|
|
2009-06-03 22:12:10 -04:00
|
|
|
.if ${FLAVOR:L:Mpyexpat}
|
|
|
|
WANTLIB += expat
|
|
|
|
.endif
|
|
|
|
|
|
|
|
REGRESS_DEPENDS= :python-tests-${MODPY_VSPEC}: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>
|