# Created by: ijliao # $FreeBSD: head/devel/py-ply/Makefile 564031 2021-02-04 14:35:00Z mat $ PORTNAME= ply PORTVERSION= 3.11 CATEGORIES= devel python MASTER_SITES= https://www.dabeaz.com/ply/ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= dbaio@FreeBSD.org COMMENT= Python Lex-Yacc LICENSE= BSD3CLAUSE USES= python:2.7+ 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} cd ${WRKSRC}/example && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR} do-test: @cd ${WRKSRC}/test && ${PYTHON_CMD} testlex.py && ${PYTHON_CMD} testyacc.py .include