1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-13 03:03:15 +00:00
freebsd-ports/devel/py-ply/Makefile
Antoine Brodin 54cb121f43 Add patches from upstream to fix issue 63:
https://github.com/dabeaz/ply/issues/63
This unbreaks www/chromium

Reported by:	pkg-fallout
With hat:	portmgr
2015-06-30 18:24:59 +00:00

39 lines
942 B
Makefile

# Created by: ijliao
# $FreeBSD$
PORTNAME= ply
PORTVERSION= 3.6
PORTREVISION= 1
CATEGORIES= devel python
MASTER_SITES= http://www.dabeaz.com/ply/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= mva@FreeBSD.org
COMMENT= Python Lex-Yacc
LICENSE= BSD3CLAUSE
USES= python
USE_PYTHON= autoplist concurrent distutils
PORTDOCS= ply.html internal.html
OPTIONS_DEFINE= DOCS EXAMPLES
post-extract:
@${FIND} ${WRKSRC}/example -name "*.pyc" -type f -delete
@${FIND} ${WRKSRC}/example -name "__pycache__" -type d -delete
pre-configure:
@${REINPLACE_CMD} -e 's|from setuptools import setup|from distutils.core import setup|' \
${WRKSRC}/setup.py
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/ply.html ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/internal.html ${STAGEDIR}${DOCSDIR}
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${CP} -R ${WRKSRC}/example/ ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>