2000-04-06 09:06:21 +00:00
|
|
|
# Ports collection makefile for: piddle
|
|
|
|
# Date created: 29 Feb 2000
|
|
|
|
# Whom: dom@myrddin.demon.co.uk
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2000-04-14 10:48:02 +00:00
|
|
|
PORTNAME= piddle
|
|
|
|
PORTVERSION= 1.0b1
|
2000-04-06 09:06:21 +00:00
|
|
|
CATEGORIES= graphics python
|
|
|
|
MASTER_SITES= http://download.sourceforge.net/piddle/
|
2000-04-14 10:48:02 +00:00
|
|
|
DISTFILES= piddle-1.0b1-5.tgz
|
2000-04-06 09:06:21 +00:00
|
|
|
|
|
|
|
MAINTAINER= dom@myrddin.demon.co.uk
|
|
|
|
|
|
|
|
RUN_DEPENDS= python:${PORTSDIR}/lang/python
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${PKGNAME}
|
|
|
|
NO_BUILD= yes
|
|
|
|
|
|
|
|
PYTHON?= ${LOCALBASE}/bin/python
|
|
|
|
PYTHONLIBDIR?= ${LOCALBASE}/lib/python1.5
|
|
|
|
PIDDLEDIR= ${PYTHONLIBDIR}/site-packages/piddle
|
|
|
|
PIDDLEDOCDIR= ${PREFIX}/share/doc/piddle
|
|
|
|
PIDDLEEGDIR= ${PREFIX}/share/examples/piddle
|
|
|
|
|
|
|
|
post-extract:
|
|
|
|
@${ECHO} "===> Removing DOS line endings."
|
|
|
|
.for file in pdfdoc.py pdfgen.py pdfgeom.py pdfmetrics.py pdfutils.py piddlePDF.py
|
|
|
|
@${TR} -d '\r' < ${WRKSRC}/${file} > ${WRKSRC}/${file}.new
|
|
|
|
@${MV} ${WRKSRC}/${file}.new ${WRKSRC}/${file}
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${MKDIR} ${PIDDLEDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/*.py ${PIDDLEDIR}
|
|
|
|
${ECHO} 'piddle' > ${PIDDLEDIR}.pth
|
|
|
|
@${PYTHON} ${PYTHONLIBDIR}/compileall.py ${PIDDLEDIR}
|
|
|
|
@${PYTHON} -O ${PYTHONLIBDIR}/compileall.py ${PIDDLEDIR}
|
|
|
|
${MKDIR} ${PIDDLEDOCDIR}
|
|
|
|
(cd ${WRKSRC}/docs ; tar cf - *) | \
|
|
|
|
(cd ${PIDDLEDOCDIR} ; tar xf -)
|
|
|
|
${MKDIR} ${PIDDLEEGDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/* ${PIDDLEEGDIR}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|