aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/py-dsv/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'textproc/py-dsv/Makefile')
-rw-r--r--textproc/py-dsv/Makefile17
1 files changed, 16 insertions, 1 deletions
diff --git a/textproc/py-dsv/Makefile b/textproc/py-dsv/Makefile
index 428b05dd6c8..c33678cf546 100644
--- a/textproc/py-dsv/Makefile
+++ b/textproc/py-dsv/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= dsv
-PORTVERSION= 1.3.3
+PORTVERSION= 1.3.7
CATEGORIES= textproc python
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= python-${PORTNAME}
@@ -15,7 +15,22 @@ DISTNAME= ${PORTNAME:U}-${PORTVERSION}
MAINTAINER= wjv@FreeBSD.org
+.if defined(WITH_GUI)
+RUN_DEPENDS= ${PYTHON_SITELIBDIR}/wxPython/__init__.py:${PORTSDIR}/x11-toolkits/py-wxPython
+.endif
+
USE_PYTHON= yes
USE_PYDISTUTILS= yes
+DSV_BASEDIR= ${PYTHONPREFIX_SITELIBDIR}/DSV
+
+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 !defined(NOPORTDOCS)
+ @ ${MKDIR} ${DOCSDIR} ${EXAMPLESDIR}
+ @ ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
+ @ ${INSTALL_DATA} ${WRKSRC}/DSV/*.csv ${EXAMPLESDIR}
+.endif
.include <bsd.port.mk>