openbsd-ports/devel/py-serial/Makefile
2011-06-08 17:31:05 +00:00

48 lines
1.2 KiB
Makefile

# $OpenBSD: Makefile,v 1.4 2011/06/08 17:39:25 jasper Exp $
COMMENT = serial interface class for Python
MODPY_EGG_VERSION = 2.4
DISTNAME = pyserial-${MODPY_EGG_VERSION}
PKGNAME = ${DISTNAME:S/py/py-/}
REVISION = 2
CATEGORIES = devel
HOMEPAGE = http://pyserial.wiki.sourceforge.net/pySerial
MAINTAINER = Daniel Gruber <daniel@tydirium.org>
# Python license
PERMIT_PACKAGE_FTP = Yes
PERMIT_PACKAGE_CDROM = Yes
PERMIT_DISTFILES_FTP = Yes
PERMIT_DISTFILES_CDROM =Yes
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=pyserial/}
MODULES = lang/python
MODPY_SETUPTOOLS = Yes
DOCSDIR = ${PREFIX}/share/doc/py-serial
EXAMPLESDIR = ${PREFIX}/share/examples/py-serial
post-install:
${INSTALL_DATA_DIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README.txt ${WRKSRC}/LICENSE.txt ${DOCSDIR}
${INSTALL_DATA_DIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/examples/*.py ${EXAMPLESDIR}
# NOTE: tests require a serial setup; see ${WRKSRC}/examples/test.py
# for more information
do-regress:
cd ${WRKSRC} && \
for _test in ${WRKSRC}/examples/test*; do \
PYTHONPATH=. ${MODPY_BIN} $${_test}; \
done
.for _test in ${WRKSRC}/examples/test*
cd ${WRKSRC} && ${MODPY_BIN} ${_test}
.endfor
.include <bsd.port.mk>