2013-09-21 00:43:59 +02:00
|
|
|
# Created by: Thomas Gellekum <tg@FreeBSD.org>
|
2000-08-22 13:45:41 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= reportlab
|
2008-08-14 06:43:58 +02:00
|
|
|
PORTVERSION= 1.21.2
|
2011-02-25 01:47:51 +01:00
|
|
|
PORTREVISION= 3
|
2000-08-22 13:45:41 +02:00
|
|
|
CATEGORIES= print python
|
2010-12-07 15:33:24 +01:00
|
|
|
MASTER_SITES= http://www.reportlab.com/ftp/ \
|
2010-11-28 15:45:30 +01:00
|
|
|
${MASTER_SITE_LOCAL:S/$/:accel/} \
|
2007-01-06 11:20:17 +01:00
|
|
|
http://www.cs.nctu.edu.tw/~lwhsu/ports/distfiles/:accel
|
2010-11-28 15:45:30 +01:00
|
|
|
MASTER_SITE_SUBDIR= erwin/:accel
|
2000-10-17 14:12:37 +02:00
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
2010-12-07 15:33:24 +01:00
|
|
|
DISTFILES= reportlab-${PORTVERSION}.tar.gz \
|
2007-01-06 11:20:17 +01:00
|
|
|
rl_accel-3004.tgz:accel
|
2000-08-22 13:45:41 +02:00
|
|
|
|
2012-03-17 06:21:05 +01:00
|
|
|
MAINTAINER= 5u623l20@gmail.com
|
2003-02-25 07:25:35 +01:00
|
|
|
COMMENT= Library to create PDF documents using the Python language
|
2002-01-10 12:24:57 +01:00
|
|
|
|
2012-03-17 06:21:05 +01:00
|
|
|
PORTSCOUT= ignore:1 # Last version of 1.X branch
|
|
|
|
|
2014-01-13 22:00:02 +01:00
|
|
|
USE_PYTHON= yes
|
2002-04-29 20:37:38 +02:00
|
|
|
USE_PYDISTUTILS= yes
|
2007-07-30 11:42:28 +02:00
|
|
|
PYDISTUTILS_PKGNAME= Reportlab
|
2007-01-06 11:20:17 +01:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/reportlab_${PORTVERSION:S/./_/g}/reportlab
|
2003-03-03 08:15:10 +01:00
|
|
|
MAKE_ENV= PACKAGE_PATH="${REPORTLABDIR}"
|
2000-08-22 13:45:41 +02:00
|
|
|
|
2002-11-19 17:45:45 +01:00
|
|
|
REPORTLABDIR= ${PYTHONPREFIX_SITELIBDIR}/reportlab
|
2003-09-27 19:26:00 +02:00
|
|
|
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
|
2007-01-06 11:20:17 +01:00
|
|
|
DOCS= RML_UserGuide.pdf RML_UserGuide_1_0.pdf diagradoc.pdf graphguide.pdf \
|
|
|
|
graphics_reference.pdf reference.pdf userguide.pdf
|
2000-08-22 13:45:41 +02:00
|
|
|
|
2013-09-21 00:43:59 +02:00
|
|
|
NO_STAGE= yes
|
2002-01-10 12:24:57 +01:00
|
|
|
post-patch:
|
2003-09-27 19:26:00 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' ${WRKSRC}/rl_config.py
|
2009-08-14 21:52:36 +02:00
|
|
|
@${REINPLACE_CMD} -e 's#with#with26#g' ${WRKSRC}/lib/PyFontify.py
|
2002-05-11 10:23:24 +02:00
|
|
|
|
2007-01-06 11:20:17 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2002-04-29 20:37:38 +02:00
|
|
|
post-install:
|
2007-01-06 11:20:17 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
.for i in ${DOCS}
|
|
|
|
${CP} ${WRKSRC}/docs/${i} ${DOCSDIR}
|
|
|
|
.endfor
|
|
|
|
.endif
|
2002-07-29 09:31:50 +02:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
2007-01-06 11:20:17 +01:00
|
|
|
.include <bsd.port.post.mk>
|