1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00

textproc/py-dsv: support staging

This commit is contained in:
William Grzybowski 2013-12-30 11:29:19 +00:00
parent 695937b08f
commit 180d30aa81
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=338087
2 changed files with 5 additions and 17 deletions

View File

@ -11,21 +11,16 @@ DISTNAME= ${PORTNAME:U}-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Python module to parse or write delimeter-separated (e.g. CSV) files
USE_PYTHON= -2.7
USE_PYTHON= 2
USE_PYDISTUTILS= yes
PYDISTUTILS_PKGNAME= DSV
PYDISTUTILS_AUTOPLIST= yes
DSV_BASEDIR= ${PYTHONPREFIX_SITELIBDIR}/DSV
NO_STAGE= yes
.include <bsd.port.options.mk>
post-install:
@${PRINTF} '#!/bin/sh\n${PYTHON_CMD} ${DSV_BASEDIR}/DSV.py "$$@"\n' \
>${WRKDIR}/DSV.sh
@${INSTALL_SCRIPT} ${WRKDIR}/DSV.sh ${PREFIX}/bin/DSV
.if ${PORT_OPTIONS:MDOCS}
@ ${MKDIR} ${DOCSDIR}
@ ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
${INSTALL_SCRIPT} ${WRKDIR}/DSV.sh ${STAGEDIR}${PREFIX}/bin/DSV
@${MKDIR} ${STAGEDIR}${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>

View File

@ -1,10 +1,3 @@
bin/DSV
%%PORTDOCS%%%%DOCSDIR%%/README
%%PYTHON_SITELIBDIR%%/DSV/DSV.py
%%PYTHON_SITELIBDIR%%/DSV/DSV.pyc
%%PYTHON_SITELIBDIR%%/DSV/DSV.pyo
%%PYTHON_SITELIBDIR%%/DSV/__init__.py
%%PYTHON_SITELIBDIR%%/DSV/__init__.pyc
%%PYTHON_SITELIBDIR%%/DSV/__init__.pyo
@dirrm %%PYTHON_SITELIBDIR%%/DSV
%%PORTDOCS%%@dirrm %%DOCSDIR%%