66c2fd2c78
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.
30 lines
807 B
Makefile
30 lines
807 B
Makefile
# Created by: Johann Visagie <wjv@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= dsv
|
|
PORTVERSION= 1.4.1
|
|
CATEGORIES= textproc python
|
|
MASTER_SITES= SF/python-${PORTNAME}/python-${PORTNAME}/${PORTVERSION}
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
DISTNAME= ${PORTNAME:U}-${PORTVERSION}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Python module to parse or write delimeter-separated (e.g. CSV) files
|
|
|
|
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 ${PORT_OPTIONS:MDOCS}
|
|
@ ${MKDIR} ${DOCSDIR}
|
|
@ ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|