1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-29 05:38:00 +00:00
freebsd-ports/textproc/py-dsv/Makefile
Johann Visagie ff74b00308 - Update to version 1.3.7
- Install documentation and examples to $DOCSDIR and $EXAMPLESDIR
- Install an executable script into ${PREFIX}/bin to call DSV.py
- Add optional WITH_GUI knob for wxPython dependency
2002-11-11 13:00:12 +00:00

37 lines
951 B
Makefile

# 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
.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>