freebsd-ports/devel/py-ply/Makefile
Marcus von Appen a382bbffeb - Rename PYTHON_FEATURES to USE_PYTHON to comply to USE_PERL5 and to avoid a
conflict in behaviour with the read-only COMPILER_FEATURES knob
- Fix the deprecated USE_PYTHON_BUILD and USE_PYTHON_RUN behaviour, which
  usually should be mutually exclusive, but some ports include both knobs

Phabric:		D581
Recommended by:	danfe@, makc@
Reviewed by:	danfe, wg, antoine
Approved by:	portmgr
With hat:		python@
2014-08-14 17:04:30 +00:00

34 lines
844 B
Makefile

# Created by: ijliao
# $FreeBSD$
PORTNAME= ply
PORTVERSION= 3.4
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 distutils
PORTDOCS= ply.html internal.html README
OPTIONS_DEFINE= DOCS EXAMPLES
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}/README ${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>