mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-28 01:06:17 +00:00
textproc/py-asv: support staging
This commit is contained in:
parent
9eea562879
commit
695937b08f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=338086
@ -8,7 +8,7 @@ MASTER_SITES= http://tratt.net/laurie/src/python/asv/releases/
|
|||||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||||
|
|
||||||
MAINTAINER= ports@FreeBSD.org
|
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
|
USE_PYTHON= yes
|
||||||
|
|
||||||
@ -19,27 +19,23 @@ PLIST_FILES= bin/asv \
|
|||||||
%%PYTHON_SITELIBDIR%%/ASV.pyc \
|
%%PYTHON_SITELIBDIR%%/ASV.pyc \
|
||||||
%%PYTHON_SITELIBDIR%%/ASV.pyo
|
%%PYTHON_SITELIBDIR%%/ASV.pyo
|
||||||
|
|
||||||
NO_STAGE= yes
|
|
||||||
do-build:
|
do-build:
|
||||||
@${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}
|
@${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py \
|
||||||
@${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}
|
-d ${PYTHONPREFIX_SITELIBDIR} \
|
||||||
|
-f ${WRKSRC}
|
||||||
|
@${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py \
|
||||||
|
-d ${PYTHONPREFIX_SITELIBDIR} \
|
||||||
|
-f ${WRKSRC}
|
||||||
|
|
||||||
do-install:
|
do-install:
|
||||||
@printf '#!/bin/sh\n${PYTHON_CMD} ${PYTHONPREFIX_SITELIBDIR}/ASV.py "$$@"\n' \
|
@printf '#!/bin/sh\n${PYTHON_CMD} ${PYTHONPREFIX_SITELIBDIR}/ASV.py "$$@"\n' \
|
||||||
> ${WRKDIR}/asv.sh
|
> ${WRKDIR}/asv.sh
|
||||||
${INSTALL_SCRIPT} ${WRKDIR}/asv.sh ${PREFIX}/bin/asv
|
${INSTALL_SCRIPT} ${WRKDIR}/asv.sh ${STAGEDIR}${PREFIX}/bin/asv
|
||||||
${INSTALL_DATA} ${WRKSRC}/ASV.* ${PYTHONPREFIX_SITELIBDIR}
|
@${MKDIR} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
|
||||||
.if !defined(NOPORTDOCS)
|
${INSTALL_DATA} ${WRKSRC}/ASV.* ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
|
||||||
@${MKDIR} ${DOCSDIR}
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||||
.for docfile in ${PORTDOCS}
|
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
|
||||||
${INSTALL_DATA} ${WRKSRC}/${docfile} ${DOCSDIR}
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
||||||
.endfor
|
${INSTALL_DATA} ${PORTEXAMPLES:S,^,${WRKSRC}/,} ${STAGEDIR}${EXAMPLESDIR}
|
||||||
.endif
|
|
||||||
.if !defined(NOPORTEXAMPLES)
|
|
||||||
@${MKDIR} ${EXAMPLESDIR}
|
|
||||||
.for egfile in ${PORTEXAMPLES}
|
|
||||||
${INSTALL_DATA} ${WRKSRC}/${egfile} ${EXAMPLESDIR}
|
|
||||||
.endfor
|
|
||||||
.endif
|
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
Loading…
Reference in New Issue
Block a user