1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-14 03:10:47 +00:00
freebsd-ports/devel/py-ply/Makefile
2018-02-23 14:50:20 +00:00

44 lines
1.0 KiB
Makefile

# Created by: ijliao
# $FreeBSD$
PORTNAME= ply
PORTVERSION= 3.11
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}
cd ${WRKSRC}/example && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}
do-test:
@cd ${WRKSRC}/test && ${PYTHON_CMD} testlex.py && ${PYTHON_CMD} testyacc.py
.include <bsd.port.mk>