summaryrefslogtreecommitdiff
path: root/graphics/piddle/Makefile
diff options
context:
space:
mode:
authorMichael Johnson <ahze@FreeBSD.org>2005-03-03 13:47:56 +0000
committerMichael Johnson <ahze@FreeBSD.org>2005-03-03 13:47:56 +0000
commitda9172ec2bde10bdd105a74a434f1af30ef8f143 (patch)
tree2455ce77b907a920c63edc3a65d41e1c8c26591a /graphics/piddle/Makefile
parent- remove redundant line (diff)
- Update to 1.0.15
PR: ports/78104 Submitted by: Dominic Mitchell <dom@happygiraffe.net> (maintainer)
Diffstat (limited to 'graphics/piddle/Makefile')
-rw-r--r--graphics/piddle/Makefile39
1 files changed, 12 insertions, 27 deletions
diff --git a/graphics/piddle/Makefile b/graphics/piddle/Makefile
index a4ff4a7ed6de..f10b7802dca1 100644
--- a/graphics/piddle/Makefile
+++ b/graphics/piddle/Makefile
@@ -6,42 +6,27 @@
#
PORTNAME= piddle
-PORTVERSION= 1.0b1
+PORTVERSION= 1.0.15
+PORTEPOCH= 1
CATEGORIES= graphics python
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
-DISTFILES= ${DISTNAME}-5.tgz
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= dom@happygiraffe.net
COMMENT= Graphical Drawing library for Python
USE_PYTHON= yes
-NO_BUILD= yes
+USE_PYDISTUTILS= yes
-PIDDLEDIR= ${PYTHON_SITELIBDIR}/piddle
-PIDDLEDOCDIR= ${PREFIX}/share/doc/piddle
-PIDDLEEGDIR= ${PREFIX}/share/examples/piddle
+.if !defined(NOPORTDOCS)
+PORTDOCS= *
+.endif
-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}/pilfonts
- ${INSTALL_DATA} ${WRKSRC}/*.py ${PIDDLEDIR}
- ${INSTALL_DATA} ${WRKSRC}/pilfonts/*.pil ${PIDDLEDIR}/pilfonts
- ${INSTALL_DATA} ${WRKSRC}/pilfonts/*.pbm ${PIDDLEDIR}/pilfonts
- ${INSTALL_DATA} ${WRKSRC}/pilfonts/metrics.dat ${PIDDLEDIR}/pilfonts
- ${ECHO_CMD} 'piddle' > ${PIDDLEDIR}.pth
- @${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${PIDDLEDIR}
- @${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${PIDDLEDIR}
- ${MKDIR} ${PIDDLEDOCDIR}
- (cd ${WRKSRC}/docs ; tar cf - *) | \
- (cd ${PIDDLEDOCDIR} ; tar xf -)
- ${MKDIR} ${PIDDLEEGDIR}
- ${INSTALL_DATA} ${WRKSRC}/examples/* ${PIDDLEEGDIR}
+post-install:
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR}
+ (cd ${WRKSRC}/docs ; tar cf - *) | (cd ${DOCSDIR} ; tar xf -)
+.endif
.include <bsd.port.mk>