1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-02 01:20:54 +00:00
freebsd-ports/benchmarks/pybench/Makefile
Cheng-Lung Sung 7a90183c69 - update to 2.0
PR:		ports/101088
Submitted by:	Gea-Suan Lin <gslin_AT_gslin dot org>
2006-08-01 02:52:17 +00:00

38 lines
974 B
Makefile

# New ports collection makefile for: pybench
# Date created: 29 March 2001
# Whom: 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= 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} ${DATADIR}
@(cd ${WRKSRC} && ${TAR} --exclude README -c -f - .) \
| (cd ${DATADIR} && ${TAR} --unlink -x -f -)
@${PRINTF} '#!/bin/sh\n${PYTHON_CMD} ${DATADIR}/pybench.py "$$@"\n' \
> ${WRKDIR}/pybench.sh
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
@${INSTALL_SCRIPT} ${WRKDIR}/pybench.sh ${PREFIX}/bin/pybench
.include <bsd.port.mk>