# Created by: Antoine Brodin # $FreeBSD$ PORTNAME= docopt PORTVERSION= 0.6.1 CATEGORIES= devel python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= antoine@FreeBSD.org COMMENT= Pythonic argument parser, that will make you smile LICENSE= MIT USE_PYTHON= yes USE_PYDISTUTILS=yes PYDISTUTILS_AUTOPLIST=yes PORTDOCS= README.rst DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME} PORTEXAMPLES= * EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME} OPTIONS_DEFINE= DOCS EXAMPLES .include post-install: .if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR} .endif .if ${PORT_OPTIONS:MEXAMPLES} @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR} .endif .include