mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-24 09:25:01 +00:00
57f1865da8
Approved by: portmgr (implicit)
35 lines
921 B
Makefile
35 lines
921 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= ports@FreeBSD.org
|
|
COMMENT= Extensible benchmark suite for Python
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
USES= python zip
|
|
|
|
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>
|