diff options
author | wjv <wjv@FreeBSD.org> | 2002-11-11 21:00:12 +0800 |
---|---|---|
committer | wjv <wjv@FreeBSD.org> | 2002-11-11 21:00:12 +0800 |
commit | 006aa3e4891b5ebd169b3dc2d11a614e8c7c2a2c (patch) | |
tree | 609fbe029a829a9644edf093b235b0de4dabcb70 /textproc/py-dsv | |
parent | 61b7cf4abaa77cf5a1489f6568bb3b59bfb83a15 (diff) | |
download | freebsd-ports-graphics-006aa3e4891b5ebd169b3dc2d11a614e8c7c2a2c.tar.gz freebsd-ports-graphics-006aa3e4891b5ebd169b3dc2d11a614e8c7c2a2c.tar.zst freebsd-ports-graphics-006aa3e4891b5ebd169b3dc2d11a614e8c7c2a2c.zip |
- 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')
-rw-r--r-- | textproc/py-dsv/Makefile | 17 | ||||
-rw-r--r-- | textproc/py-dsv/distinfo | 2 | ||||
-rw-r--r-- | textproc/py-dsv/pkg-descr | 29 | ||||
-rw-r--r-- | textproc/py-dsv/pkg-plist | 6 |
4 files changed, 37 insertions, 17 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> diff --git a/textproc/py-dsv/distinfo b/textproc/py-dsv/distinfo index 749aa903fde..da3d3cc293f 100644 --- a/textproc/py-dsv/distinfo +++ b/textproc/py-dsv/distinfo @@ -1 +1 @@ -MD5 (DSV-1.3.3.tar.gz) = e485a9307f80d2896eee35d417367888 +MD5 (DSV-1.3.7.tar.gz) = 69a15f27dabe7affa87d3e048a648802 diff --git a/textproc/py-dsv/pkg-descr b/textproc/py-dsv/pkg-descr index 13c06897712..18a71ec8f7c 100644 --- a/textproc/py-dsv/pkg-descr +++ b/textproc/py-dsv/pkg-descr @@ -1,21 +1,20 @@ -From the release announcement: +Paraphrasing the website: - Python-DSV is a CSV file importer/exporter (DSV stands for - "delimiter-separated-values"). + Python-DSV is a Python module for importing and exporting DSV (delimiter + separated values) files. DSV is a generalization of CSV (comma separated + values). CSV is a common file format used by many programs to import and + export data. Features: - - Heuristics for automatically determining the format of the file. - - Discovers delimiter (comma, tab, colon, whatever). - - Discovers text-qualifier (single or double quote). - - Determines whether first row is header or data. - - Can use almost any character as delimiter. - - Correctly parses embedded quotes, newlines and delimiters. - - Optional wxPython dialog (ala MS Excel) for previewing data. - - Error-handling callbacks for malformed rows. - - 100% Python. - - Reasonably fast. + - Pure Python + - Optional wxPython GUI + - Optional heuristics for determining file format + - Handles embedded quotes, delimiters and newlines + - Customizable error handling + - Simple to use + - Portable -Author: Cliff Wells <CliffordDWells@yahoo.com> -WWW: http://www.sf.net/projects/python-dsv/ +Author: Cliff Wells <clifford.wells@attbi.com> +WWW: http://python-dsv.sourceforge.net/ -- Johann Visagie <wjv@FreeBSD.org> diff --git a/textproc/py-dsv/pkg-plist b/textproc/py-dsv/pkg-plist index f9a0b02acaa..c0c52942e24 100644 --- a/textproc/py-dsv/pkg-plist +++ b/textproc/py-dsv/pkg-plist @@ -1,3 +1,7 @@ +%%PORTDOCS%%share/doc/dsv/README +%%PORTDOCS%%share/examples/dsv/darkwave.csv +%%PORTDOCS%%share/examples/dsv/nastiness.csv +bin/DSV lib/%%PYTHON_VERSION%%/site-packages/DSV/DSV.py lib/%%PYTHON_VERSION%%/site-packages/DSV/DSV.pyc lib/%%PYTHON_VERSION%%/site-packages/DSV/DSV.pyo @@ -5,3 +9,5 @@ lib/%%PYTHON_VERSION%%/site-packages/DSV/__init__.py lib/%%PYTHON_VERSION%%/site-packages/DSV/__init__.pyc lib/%%PYTHON_VERSION%%/site-packages/DSV/__init__.pyo @dirrm lib/%%PYTHON_VERSION%%/site-packages/DSV +%%PORTDOCS%%@dirrm share/examples/dsv +%%PORTDOCS%%@dirrm share/doc/dsv |