blob: 5fb2c8f1dcc48231fc813c7556bd55cb01992f42 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# 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>
|