openbsd-ports/devel/py-serial/Makefile

47 lines
1.2 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.1.1.1 2009/06/05 04:29:22 wcmaier Exp $
COMMENT = serial interface class for Python
MODPY_EGG_VERSION = 2.4
DISTNAME = pyserial-${MODPY_EGG_VERSION}
PKGNAME = ${DISTNAME:S/py/py-/}
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>