aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authorrm <rm@FreeBSD.org>2013-01-23 04:42:11 +0800
committerrm <rm@FreeBSD.org>2013-01-23 04:42:11 +0800
commit3c416280e44cf562339bdf38949172ebd465fff1 (patch)
treeb85060b94cdddf5e2a87ce5e11a00b8fa45b9e95 /textproc
parentcedeb8f61e44728bec30c1e8d9f09009ddd5dda0 (diff)
downloadfreebsd-ports-gnome-3c416280e44cf562339bdf38949172ebd465fff1.tar.gz
freebsd-ports-gnome-3c416280e44cf562339bdf38949172ebd465fff1.tar.zst
freebsd-ports-gnome-3c416280e44cf562339bdf38949172ebd465fff1.zip
- remove WITH_GUI check because we haven't wxPython 2.4 in ports anymore and
because it doesn't work correctly with more fresher versions (runtime tested) - trim Makefile header - remove indefinite article from COMMENT - limit python version to 2.x (print/except) - convert to optionsng (NOPORTDOCS case) - cleanup pkg-descr This is good candidate for removal since this package isn't updated anymore and we have native csv parser/writer in every python version available from ports.
Diffstat (limited to 'textproc')
-rw-r--r--textproc/py-dsv/Makefile21
-rw-r--r--textproc/py-dsv/pkg-descr17
2 files changed, 15 insertions, 23 deletions
diff --git a/textproc/py-dsv/Makefile b/textproc/py-dsv/Makefile
index ed2885d37969..0678cb6a6635 100644
--- a/textproc/py-dsv/Makefile
+++ b/textproc/py-dsv/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: py-csv
-# Date created: 17 January 2002
-# Whom: Johann Visagie <wjv@FreeBSD.org>
-#
+# Created by: Johann Visagie <wjv@FreeBSD.org>
# $FreeBSD$
-#
PORTNAME= dsv
PORTVERSION= 1.4.1
@@ -13,23 +9,20 @@ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= ${PORTNAME:U}-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
-COMMENT= A Python module to parse or write delimeter-separated (e.g. CSV) files
+COMMENT= Python module to parse or write delimeter-separated (e.g. CSV) files
-.if defined(WITH_GUI)
-USE_WX= 2.4
-WX_COMPS= python
-.endif
-
-USE_PYTHON= yes
+USE_PYTHON= -2.7
USE_PYDISTUTILS= yes
PYDISTUTILS_PKGNAME= DSV
DSV_BASEDIR= ${PYTHONPREFIX_SITELIBDIR}/DSV
+.include <bsd.port.options.mk>
+
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)
+ @${INSTALL_SCRIPT} ${WRKDIR}/DSV.sh ${PREFIX}/bin/DSV
+.if ${PORT_OPTIONS:MDOCS}
@ ${MKDIR} ${DOCSDIR}
@ ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
diff --git a/textproc/py-dsv/pkg-descr b/textproc/py-dsv/pkg-descr
index 29e04f5fbd55..ad3730c25df6 100644
--- a/textproc/py-dsv/pkg-descr
+++ b/textproc/py-dsv/pkg-descr
@@ -4,15 +4,14 @@ Paraphrasing the website:
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:
- - Pure Python
- - Optional wxPython GUI
- - Optional heuristics for determining file format
- - Handles embedded quotes, delimiters and newlines
- - Customizable error handling
- - Simple to use
+ - 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 <clifford.wells@attbi.com>
-WWW: http://python-dsv.sourceforge.net/
+WWW: http://python-dsv.sourceforge.net/