# Created by: ijliao # $FreeBSD$ PORTNAME= ply PORTVERSION= 3.10 PORTREVISION= 1 CATEGORIES= devel python MASTER_SITES= http://www.dabeaz.com/ply/ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= dbaio@FreeBSD.org COMMENT= Python Lex-Yacc LICENSE= BSD3CLAUSE USES?= python USES+= shebangfix USE_PYTHON= autoplist concurrent distutils NO_ARCH= yes SHEBANG_FILES= example/newclasscalc/calc.py \ example/classcalc/calc.py PORTDOCS= ply.html internal.html OPTIONS_DEFINE= DOCS EXAMPLES post-patch: @${REINPLACE_CMD} -e 's|/usr/local/bin/python|${python_CMD}|' \ ${WRKSRC}/example/yply/yply.py @${FIND} ${WRKSRC} -name \*.bak -delete post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/doc/ply.html ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/doc/internal.html ${STAGEDIR}${DOCSDIR} post-install-EXAMPLES-on: @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${CP} -R ${WRKSRC}/example/ ${STAGEDIR}${EXAMPLESDIR} .include