freebsd-ports/benchmarks/pybench/Makefile
Maxim Sobolev 10588346d3 Let be hohest: I really don't have a time now to properly maintain all
these great pieces of software, so that let others with more free time
to take over them.
2003-07-29 09:12:37 +00:00

35 lines
1,012 B
Makefile

# New ports collection makefile for: pybench
# Date created: 29 March 2001
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= pybench
PORTVERSION= 1.0
CATEGORIES= benchmarks python
MASTER_SITES= http://www.lemburg.com/files/python/
MAINTAINER= ports@FreeBSD.org
COMMENT= An extensible benchmark suite for Python
WRKSRC= ${WRKDIR}/${PORTNAME}
USE_ZIP= yes
USE_PYTHON= yes
do-build:
@${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}
@${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}
do-install:
@${MKDIR} ${PREFIX}/share/pybench
@(cd ${WRKSRC} && ${TAR} --exclude README -c -f - .) \
| (cd ${PREFIX}/share/pybench && ${TAR} --unlink -x -f -)
@printf '#!/bin/sh\n${PYTHON_CMD} ${PREFIX}/share/pybench/pybench.py "$$@"\n' \
> ${WRKDIR}/pybench.sh
@${MKDIR} ${PREFIX}/share/doc/pybench
@${INSTALL_MAN} ${WRKSRC}/README ${PREFIX}/share/doc/pybench
@${INSTALL_SCRIPT} ${WRKDIR}/pybench.sh ${PREFIX}/bin/pybench
.include <bsd.port.mk>