ec2569e771
Python-based parsing at the speed of C
46 lines
1.2 KiB
Makefile
46 lines
1.2 KiB
Makefile
# ex:ts=8
|
|
# Ports collection makefile for: py-bison
|
|
# Date created: Aug 23, 2004
|
|
# Whom: ijliao
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= bison
|
|
PORTVERSION= 0.1.8
|
|
CATEGORIES= devel python
|
|
MASTER_SITES= http://www.freenet.org.nz/python/pybison/
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
DISTNAME= py${PORTNAME}-${PORTVERSION}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Python-based parsing at the speed of C
|
|
|
|
BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/Pyrex/__init__.py:${PORTSDIR}/devel/pyrex
|
|
RUN_DEPENDS= bison:${PORTSDIR}/devel/bison
|
|
|
|
USE_PYTHON= yes
|
|
USE_PYDISTUTILS= yes
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}
|
|
.endif
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
post-install:
|
|
@${MKDIR} ${DOCSDIR}
|
|
${CP} -R ${WRKSRC}/doc/ ${DOCSDIR}
|
|
@${FIND} ${DOCSDIR} ! -type d | \
|
|
${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
|
|
@${FIND} ${DOCSDIR} -type d | ${SORT} -r | \
|
|
${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
${CP} -R ${WRKSRC}/examples/ ${EXAMPLESDIR}
|
|
@${FIND} ${EXAMPLESDIR} ! -type d | \
|
|
${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
|
|
@${FIND} ${EXAMPLESDIR} -type d | ${SORT} -r | \
|
|
${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|