diff options
author | wjv <wjv@FreeBSD.org> | 2002-11-11 13:00:12 +0000 |
---|---|---|
committer | wjv <wjv@FreeBSD.org> | 2002-11-11 13:00:12 +0000 |
commit | 006aa3e4891b5ebd169b3dc2d11a614e8c7c2a2c (patch) | |
tree | 609fbe029a829a9644edf093b235b0de4dabcb70 /textproc/py-dsv/Makefile | |
parent | 61b7cf4abaa77cf5a1489f6568bb3b59bfb83a15 (diff) | |
download | FreeBSD-ports-006aa3e4891b5ebd169b3dc2d11a614e8c7c2a2c.zip FreeBSD-ports-006aa3e4891b5ebd169b3dc2d11a614e8c7c2a2c.tar.gz |
- Update to version 1.3.7
- Install documentation and examples to $DOCSDIR and $EXAMPLESDIR
- Install an executable script into ${PREFIX}/bin to call DSV.py
- Add optional WITH_GUI knob for wxPython dependency
Diffstat (limited to 'textproc/py-dsv/Makefile')
-rw-r--r-- | textproc/py-dsv/Makefile | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/textproc/py-dsv/Makefile b/textproc/py-dsv/Makefile index 428b05d..c33678cf 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> |