aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authorwjv <wjv@FreeBSD.org>2002-01-17 20:45:23 +0800
committerwjv <wjv@FreeBSD.org>2002-01-17 20:45:23 +0800
commitd0384dc4ca4513b029d57b4637e1dccfa6295a0c (patch)
treec4017513a9ac23cdcb184f57dc192a56d9b2ebde /textproc
parent96c624a4c89d3dc21133f67b5a5e3768dabfcc69 (diff)
downloadfreebsd-ports-gnome-d0384dc4ca4513b029d57b4637e1dccfa6295a0c.tar.gz
freebsd-ports-gnome-d0384dc4ca4513b029d57b4637e1dccfa6295a0c.tar.zst
freebsd-ports-gnome-d0384dc4ca4513b029d57b4637e1dccfa6295a0c.zip
Add py-dsv 1.3.3, a Python module to parse or write
delimeter-separated (e.g. CSV) files.
Diffstat (limited to 'textproc')
-rw-r--r--textproc/Makefile1
-rw-r--r--textproc/py-dsv/Makefile29
-rw-r--r--textproc/py-dsv/distinfo1
-rw-r--r--textproc/py-dsv/pkg-comment1
-rw-r--r--textproc/py-dsv/pkg-descr21
-rw-r--r--textproc/py-dsv/pkg-plist7
6 files changed, 60 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile
index 1136f7c4ffd8..0f24635f1df8 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -190,6 +190,7 @@
SUBDIR += py-HyperText
SUBDIR += py-asv
SUBDIR += py-csv
+ SUBDIR += py-dsv
SUBDIR += py-expat
SUBDIR += py-martel
SUBDIR += py-sgrep
diff --git a/textproc/py-dsv/Makefile b/textproc/py-dsv/Makefile
new file mode 100644
index 000000000000..694cd5814697
--- /dev/null
+++ b/textproc/py-dsv/Makefile
@@ -0,0 +1,29 @@
+# New ports collection makefile for: py-csv
+# Date created: 17 January 2002
+# Whom: Johann Visagie <wjv@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= dsv
+PORTVERSION= 1.3.3
+CATEGORIES= textproc python
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= python-${PORTNAME}
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+DISTNAME= ${PORTNAME:U}-${PORTVERSION}
+
+MAINTAINER= wjv@FreeBSD.org
+
+BUILD_DEPENDS= ${PYDISTUTILS}
+
+USE_PYTHON= yes
+PYTHON_SETUP= ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} setup.py
+
+do-build:
+ @ cd ${WRKSRC} && ${PYTHON_SETUP} build
+
+do-install:
+ @ cd ${WRKSRC} && ${PYTHON_SETUP} install -c -O1 --prefix=${PREFIX}
+
+.include <bsd.port.mk>
diff --git a/textproc/py-dsv/distinfo b/textproc/py-dsv/distinfo
new file mode 100644
index 000000000000..749aa903fdef
--- /dev/null
+++ b/textproc/py-dsv/distinfo
@@ -0,0 +1 @@
+MD5 (DSV-1.3.3.tar.gz) = e485a9307f80d2896eee35d417367888
diff --git a/textproc/py-dsv/pkg-comment b/textproc/py-dsv/pkg-comment
new file mode 100644
index 000000000000..548b97073e58
--- /dev/null
+++ b/textproc/py-dsv/pkg-comment
@@ -0,0 +1 @@
+A Python module to parse or write delimeter-separated (e.g. CSV) files
diff --git a/textproc/py-dsv/pkg-descr b/textproc/py-dsv/pkg-descr
new file mode 100644
index 000000000000..13c068977126
--- /dev/null
+++ b/textproc/py-dsv/pkg-descr
@@ -0,0 +1,21 @@
+From the release announcement:
+
+ Python-DSV is a CSV file importer/exporter (DSV stands for
+ "delimiter-separated-values").
+
+ 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.
+
+Author: Cliff Wells <CliffordDWells@yahoo.com>
+WWW: http://www.sf.net/projects/python-dsv/
+
+-- Johann Visagie <wjv@FreeBSD.org>
diff --git a/textproc/py-dsv/pkg-plist b/textproc/py-dsv/pkg-plist
new file mode 100644
index 000000000000..f9a0b02acaa5
--- /dev/null
+++ b/textproc/py-dsv/pkg-plist
@@ -0,0 +1,7 @@
+lib/%%PYTHON_VERSION%%/site-packages/DSV/DSV.py
+lib/%%PYTHON_VERSION%%/site-packages/DSV/DSV.pyc
+lib/%%PYTHON_VERSION%%/site-packages/DSV/DSV.pyo
+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