29d2859d47
Utilize NOPORTDOCS. Use DATADIR and DOCSDIR. PR: ports/77673 Submitted by: Sam Lawrance <boris at brooknet.com.au>
38 lines
973 B
Makefile
38 lines
973 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.egenix.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} ${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_MAN} ${WRKSRC}/README ${DOCSDIR}
|
|
.endif
|
|
@${INSTALL_SCRIPT} ${WRKDIR}/pybench.sh ${PREFIX}/bin/pybench
|
|
|
|
.include <bsd.port.mk>
|