aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authorwg <wg@FreeBSD.org>2013-12-30 19:29:19 +0800
committerwg <wg@FreeBSD.org>2013-12-30 19:29:19 +0800
commit0fcdf640c90849b45e161960b5beba3bcc18aefd (patch)
treef60d7d2229c18dcd6e3cc0a4e2d67d1494025dbd /textproc
parentd1f462ce49e1661ed867afcec557920b63459b2c (diff)
downloadfreebsd-ports-gnome-0fcdf640c90849b45e161960b5beba3bcc18aefd.tar.gz
freebsd-ports-gnome-0fcdf640c90849b45e161960b5beba3bcc18aefd.tar.zst
freebsd-ports-gnome-0fcdf640c90849b45e161960b5beba3bcc18aefd.zip
textproc/py-dsv: support staging
Diffstat (limited to 'textproc')
-rw-r--r--textproc/py-dsv/Makefile15
-rw-r--r--textproc/py-dsv/pkg-plist7
2 files changed, 5 insertions, 17 deletions
diff --git a/textproc/py-dsv/Makefile b/textproc/py-dsv/Makefile
index 5bf192c79f56..09edb0d83bd2 100644
--- a/textproc/py-dsv/Makefile
+++ b/textproc/py-dsv/Makefile
@@ -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>
diff --git a/textproc/py-dsv/pkg-plist b/textproc/py-dsv/pkg-plist
index 4ec770cefceb..ce097d7a1541 100644
--- a/textproc/py-dsv/pkg-plist
+++ b/textproc/py-dsv/pkg-plist
@@ -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%%