2013-03-11 07:35:43 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.13 2013/03/11 11:46:15 espie Exp $
|
2006-12-18 13:15:33 -05:00
|
|
|
|
2007-09-15 16:04:18 -04:00
|
|
|
COMMENT= fully functional X client library for Python programs
|
2006-12-18 13:15:33 -05:00
|
|
|
|
2010-11-17 14:27:53 -05:00
|
|
|
VERSION= 0.14
|
2006-12-18 13:15:33 -05:00
|
|
|
DISTNAME= python-xlib-${VERSION}
|
2010-07-30 02:58:57 -04:00
|
|
|
PKGNAME= py-Xlib-${VERSION}
|
2011-09-16 08:29:12 -04:00
|
|
|
REVISION= 1
|
2010-07-30 02:58:57 -04:00
|
|
|
|
2007-12-10 16:09:09 -05:00
|
|
|
CATEGORIES= x11
|
2006-12-18 13:15:33 -05:00
|
|
|
|
|
|
|
HOMEPAGE= http://python-xlib.sourceforge.net/
|
|
|
|
|
2010-11-17 14:27:53 -05:00
|
|
|
# GPLv2
|
2006-12-18 13:15:33 -05:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=python-xlib/}
|
|
|
|
|
|
|
|
MODULES= lang/python
|
|
|
|
|
2010-11-17 14:27:53 -05:00
|
|
|
BUILD_DEPENDS= textproc/texi2html
|
2006-12-18 13:15:33 -05:00
|
|
|
|
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
|
|
|
|
2013-03-11 07:35:43 -04:00
|
|
|
do-test:
|
2006-12-18 16:52:18 -05:00
|
|
|
.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>
|