# Created by: Hye-Shik Chang # $FreeBSD$ PORTNAME= serial PORTVERSION= 2.6 CATEGORIES= comms python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTNAME= py${PORTNAME}-${PORTVERSION} MAINTAINER= sbz@FreeBSD.org COMMENT= Serial port encapsulation library for Python USE_PYTHON= yes USE_PYDISTUTILS= yes USE_PYTHON_PREFIX= yes PYDISTUTILS_PKGNAME= py${PORTNAME} DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME} EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME} NO_STAGE= yes .include post-install: .if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/*.txt ${DOCSDIR} .endif .if ${PORT_OPTIONS:MEXAMPLES} @${MKDIR} ${EXAMPLESDIR} ${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR} .endif .include