1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-27 10:03:20 +00:00
freebsd-ports/benchmarks/pybench/Makefile
2014-03-07 15:52:40 +00:00

36 lines
931 B
Makefile

# Created by: Maxim Sobolev <sobomax@FreeBSD.org>
# $FreeBSD$
PORTNAME= pybench
PORTVERSION= 2.0
CATEGORIES= benchmarks python
MASTER_SITES= http://downloads.egenix.com/python/
MAINTAINER= sylvio@FreeBSD.org
COMMENT= Extensible benchmark suite for Python
WRKSRC= ${WRKDIR}/${PORTNAME}
USES= zip
USE_PYTHON= yes
PORTDOCS= README
do-build:
@${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}
@${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}
do-install:
@${MKDIR} ${STAGEDIR}${DATADIR}
@${TAR} --exclude README -C ${WRKSRC} -c -f - . \
| ${TAR} --unlink -x -C ${STAGEDIR}${DATADIR} -f -
@${PRINTF} '#!/bin/sh\n${PYTHON_CMD} ${DATADIR}/pybench.py "$$@"\n' \
> ${WRKDIR}/pybench.sh
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for docs in ${PORTDOCS}
@${INSTALL_DATA} ${WRKSRC}/${docs} ${STAGEDIR}${DOCSDIR}
.endfor
@${INSTALL_SCRIPT} ${WRKDIR}/pybench.sh ${STAGEDIR}${PREFIX}/bin/pybench
.include <bsd.port.mk>