blob: 0678cb6a6635bed9a0fcdcc5eb91222a9659a563 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# 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>
|