2006-12-30 23:57:37 +01:00
|
|
|
# New ports collection makefile for: py-reportlab2
|
|
|
|
# Date created: 2006-12-31
|
|
|
|
# Whom: Li-Wen Hsu <lwhsu@lwhsu.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= reportlab2
|
2008-07-15 05:42:24 +02:00
|
|
|
PORTVERSION= 2.1
|
2006-12-30 23:57:37 +01:00
|
|
|
CATEGORIES= print python
|
|
|
|
MASTER_SITES= http://www.reportlab.org/ftp/ \
|
|
|
|
ftp://ftp.reportlab.org/ \
|
|
|
|
http://www.cs.nctu.edu.tw/~lwhsu/ports/distfiles/:accel
|
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
DISTFILES= ReportLab_${PORTVERSION:S/./_/}.tgz \
|
2008-07-15 05:42:24 +02:00
|
|
|
rl_accel-3242.tgz:accel
|
2006-12-30 23:57:37 +01:00
|
|
|
|
2007-04-04 10:49:31 +02:00
|
|
|
MAINTAINER= lwhsu@FreeBSD.org
|
2006-12-30 23:57:37 +01:00
|
|
|
COMMENT= Library to create PDF documents using the Python language
|
|
|
|
|
2008-07-15 05:42:24 +02:00
|
|
|
CONFLICTS= py2[0-9]-reportlab-[0-9]*
|
|
|
|
|
2006-12-30 23:57:37 +01:00
|
|
|
USE_PYTHON= 2.4+
|
|
|
|
USE_PYDISTUTILS= yes
|
2007-07-30 11:42:28 +02:00
|
|
|
PYDISTUTILS_PKGNAME= Reportlab
|
2006-12-30 23:57:37 +01:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/reportlab_${PORTVERSION:S/./_/}/reportlab
|
|
|
|
MAKE_ENV= PACKAGE_PATH="${REPORTLABDIR}"
|
|
|
|
|
|
|
|
REPORTLABDIR= ${PYTHONPREFIX_SITELIBDIR}/reportlab
|
|
|
|
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
|
|
|
|
DOCS= RML_UserGuide.pdf graphguide.pdf graphics_reference.pdf reference.pdf userguide.pdf
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' ${WRKSRC}/rl_config.py
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
.for i in ${DOCS}
|
|
|
|
${CP} ${WRKSRC}/docs/${i} ${DOCSDIR}
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|