diff options
author | Johann Visagie <wjv@FreeBSD.org> | 2002-11-11 13:00:12 +0000 |
---|---|---|
committer | Johann Visagie <wjv@FreeBSD.org> | 2002-11-11 13:00:12 +0000 |
commit | ff74b00308a209a268681c08539146b0728b0e79 (patch) | |
tree | 409480f3401653a805c98e415fcdb2523698d048 /textproc | |
parent | Correct typo in my last commit. (diff) |
- 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
Notes
Notes:
svn path=/head/; revision=69895
Diffstat (limited to 'textproc')
-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 428b05dd6c82..c33678cf546f 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 749aa903fdef..da3d3cc293fa 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 13c068977126..18a71ec8f7c5 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 f9a0b02acaa5..c0c52942e241 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 |