diff options
author | wg <wg@FreeBSD.org> | 2013-12-30 19:14:37 +0800 |
---|---|---|
committer | wg <wg@FreeBSD.org> | 2013-12-30 19:14:37 +0800 |
commit | d1f462ce49e1661ed867afcec557920b63459b2c (patch) | |
tree | 027b2b9b24ad779b384a176568bbc63e35a8a09c /textproc | |
parent | aedb72c2f02b60c5c73b3a0b1898725b5a280065 (diff) | |
download | freebsd-ports-gnome-d1f462ce49e1661ed867afcec557920b63459b2c.tar.gz freebsd-ports-gnome-d1f462ce49e1661ed867afcec557920b63459b2c.tar.zst freebsd-ports-gnome-d1f462ce49e1661ed867afcec557920b63459b2c.zip |
textproc/py-asv: support staging
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/py-asv/Makefile | 32 |
1 files changed, 14 insertions, 18 deletions
diff --git a/textproc/py-asv/Makefile b/textproc/py-asv/Makefile index a3903dd6f8a8..e4b0fa0520e3 100644 --- a/textproc/py-asv/Makefile +++ b/textproc/py-asv/Makefile @@ -8,7 +8,7 @@ MASTER_SITES= http://tratt.net/laurie/src/python/asv/releases/ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= ports@FreeBSD.org -COMMENT= An extensible Python module to parse simple text file formats like CSV +COMMENT= Extensible Python module to parse simple text file formats like CSV USE_PYTHON= yes @@ -19,27 +19,23 @@ PLIST_FILES= bin/asv \ %%PYTHON_SITELIBDIR%%/ASV.pyc \ %%PYTHON_SITELIBDIR%%/ASV.pyo -NO_STAGE= yes do-build: - @${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC} - @${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${WRKSRC} + @${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py \ + -d ${PYTHONPREFIX_SITELIBDIR} \ + -f ${WRKSRC} + @${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py \ + -d ${PYTHONPREFIX_SITELIBDIR} \ + -f ${WRKSRC} do-install: @printf '#!/bin/sh\n${PYTHON_CMD} ${PYTHONPREFIX_SITELIBDIR}/ASV.py "$$@"\n' \ > ${WRKDIR}/asv.sh - ${INSTALL_SCRIPT} ${WRKDIR}/asv.sh ${PREFIX}/bin/asv - ${INSTALL_DATA} ${WRKSRC}/ASV.* ${PYTHONPREFIX_SITELIBDIR} -.if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} -.for docfile in ${PORTDOCS} - ${INSTALL_DATA} ${WRKSRC}/${docfile} ${DOCSDIR} -.endfor -.endif -.if !defined(NOPORTEXAMPLES) - @${MKDIR} ${EXAMPLESDIR} -.for egfile in ${PORTEXAMPLES} - ${INSTALL_DATA} ${WRKSRC}/${egfile} ${EXAMPLESDIR} -.endfor -.endif + ${INSTALL_SCRIPT} ${WRKDIR}/asv.sh ${STAGEDIR}${PREFIX}/bin/asv + @${MKDIR} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} + ${INSTALL_DATA} ${WRKSRC}/ASV.* ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR} + @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + ${INSTALL_DATA} ${PORTEXAMPLES:S,^,${WRKSRC}/,} ${STAGEDIR}${EXAMPLESDIR} .include <bsd.port.mk> |