2006-12-18 16:52:18 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.2 2006/12/18 21:52:18 steven Exp $
|
2006-12-18 13:15:33 -05:00
|
|
|
|
|
|
|
COMMENT= "fully functional X client library for Python programs"
|
|
|
|
|
|
|
|
VERSION= 0.13
|
|
|
|
DISTNAME= python-xlib-${VERSION}
|
|
|
|
PKGNAME= py-Xlib-${VERSION}
|
|
|
|
CATEGORIES= python x11
|
|
|
|
|
|
|
|
HOMEPAGE= http://python-xlib.sourceforge.net/
|
|
|
|
|
|
|
|
# GPL
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=python-xlib/}
|
|
|
|
|
|
|
|
MODULES= lang/python
|
|
|
|
|
|
|
|
BUILD_DEPENDS= ::textproc/texi2html
|
|
|
|
|
|
|
|
USE_X11= Yes
|
|
|
|
|
2006-12-18 16:52:18 -05:00
|
|
|
TESTS= events_be events_le rdb requests_be requests_le
|
2006-12-18 13:15:33 -05:00
|
|
|
|
2006-12-18 16:52:18 -05:00
|
|
|
do-regress:
|
|
|
|
.for t in ${TESTS}
|
|
|
|
cd ${WRKSRC}/test && ${MODPY_BIN} test_${t}.py
|
|
|
|
.endfor
|
|
|
|
|
2006-12-18 13:15:33 -05:00
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/py-Xlib
|
2006-12-18 16:52:18 -05:00
|
|
|
@cd ${WRKSRC}/doc/html && ${MAKE_PROGRAM}
|
2006-12-18 13:15:33 -05:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/html/*.html ${PREFIX}/share/doc/py-Xlib
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/py-Xlib
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/*.py \
|
|
|
|
${PREFIX}/share/examples/py-Xlib
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|