2011-11-27 11:40:17 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.14 2011/11/27 16:40:17 rpointel Exp $
|
2008-04-03 07:31:59 -04:00
|
|
|
|
|
|
|
COMMENT= Python binding for the libxml2 and libxslt libraries
|
|
|
|
|
2011-11-27 11:40:17 -05:00
|
|
|
MODPY_EGG_VERSION= 2.3.2
|
2009-01-03 16:34:01 -05:00
|
|
|
DISTNAME= lxml-${MODPY_EGG_VERSION}
|
2009-11-19 08:04:23 -05:00
|
|
|
PKGNAME= py-lxml-${MODPY_EGG_VERSION}
|
2008-04-03 07:31:59 -04:00
|
|
|
CATEGORIES= textproc devel
|
|
|
|
|
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
MASTER_SITES= ${HOMEPAGE}
|
|
|
|
|
|
|
|
HOMEPAGE= http://codespeak.net/lxml/
|
|
|
|
|
|
|
|
# BSD
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
|
2011-07-02 06:10:06 -04:00
|
|
|
WANTLIB= m xml2 z exslt xslt ${MODPY_WANTLIB}
|
2008-04-03 07:31:59 -04:00
|
|
|
|
|
|
|
MODULES= lang/python
|
|
|
|
|
2010-11-20 14:56:47 -05:00
|
|
|
LIB_DEPENDS= textproc/libxslt
|
2008-04-03 07:31:59 -04:00
|
|
|
|
|
|
|
MODPY_SETUPTOOLS=Yes
|
|
|
|
|
2011-07-02 06:10:06 -04:00
|
|
|
VMEM_WARNING= Yes
|
|
|
|
|
2008-04-03 07:31:59 -04:00
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/py-lxml
|
|
|
|
@cp -r ${WRKSRC}/doc/* ${PREFIX}/share/doc/py-lxml/
|
|
|
|
|
2011-04-01 21:18:35 -04:00
|
|
|
do-regress:
|
|
|
|
cd ${WRKSRC} && cp lib.openbsd-*/lxml/*.so src/lxml; \
|
|
|
|
${MODPY_BIN} test.py
|
|
|
|
|
2008-04-03 07:31:59 -04:00
|
|
|
.include <bsd.port.mk>
|