blob: b0b694c52ce3c5da0239541fc610016a9554b979 (
plain)
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
31
32
33
34
35
36
37
|
# New ports collection makefile for: py-csv
# Date created: 17 January 2002
# Whom: Johann Visagie <wjv@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= dsv
PORTVERSION= 1.3.7
CATEGORIES= textproc python
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= python-${PORTNAME}
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= ${PORTNAME:U}-${PORTVERSION}
MAINTAINER= wjv@FreeBSD.org
COMMENT= A Python module to parse or write delimeter-separated (e.g. CSV) files
.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>
|