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
|
2016-01-03 22:53:08 +01:00
|
|
|
PORTVERSION= 3.2.0
|
2000-08-22 13:45:41 +02:00
|
|
|
CATEGORIES= print python
|
2014-02-25 13:44:10 +01:00
|
|
|
MASTER_SITES= CHEESESHOP \
|
|
|
|
http://www.reportlab.com/ftp/
|
2000-10-17 14:12:37 +02:00
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
2015-05-11 20:34:57 +02:00
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
|
2014-02-25 13:44:10 +01:00
|
|
|
${PFBFER}
|
2015-05-11 20:34:57 +02:00
|
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
2000-08-22 13:45:41 +02:00
|
|
|
|
2014-12-24 01:14:11 +01:00
|
|
|
MAINTAINER= bofh@FreeBSD.org
|
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
|
|
|
|
2014-12-07 15:55:18 +01:00
|
|
|
LICENSE= BSD3CLAUSE
|
2014-02-25 13:44:10 +01:00
|
|
|
|
|
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pillow>0:${PORTSDIR}/graphics/py-pillow
|
2012-03-17 06:21:05 +01:00
|
|
|
|
2014-10-24 18:42:59 +02:00
|
|
|
USES= python
|
|
|
|
USE_PYTHON= distutils autoplist
|
2014-02-25 13:44:10 +01:00
|
|
|
|
|
|
|
CONFLICTS= py*-reportlab[^3]-[^3].* \
|
|
|
|
py*-reportlab-[^3].*
|
|
|
|
|
|
|
|
PORTSCOUT= limit:^3\.0\.
|
|
|
|
|
|
|
|
PFBFER_VERSION= 20070710
|
|
|
|
PFBFER= pfbfer-${PFBFER_VERSION}.zip
|
2007-01-06 11:20:17 +01:00
|
|
|
|
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}
|
2015-06-10 16:04:06 +02:00
|
|
|
PORTDOCS= reportlab-userguide.pdf
|
2000-08-22 13:45:41 +02:00
|
|
|
|
2014-02-25 13:44:10 +01:00
|
|
|
OPTIONS_DEFINE= CJK FREETYPE DOCS
|
|
|
|
OPTIONS_DEFAULT= CJK FREETYPE
|
|
|
|
CJK_DESC= Adobe CMaps
|
2016-01-03 22:53:08 +01:00
|
|
|
CJK_RUN_DEPENDS= ${LOCALBASE}/share/fonts/adobe-cmaps/ac15/cid2code.txt:${PORTSDIR}/print/adobe-cmaps
|
2014-02-25 13:44:10 +01:00
|
|
|
FREETYPE_LIB_DEPENDS= libfreetype.so:${PORTSDIR}/print/freetype2
|
2002-05-11 10:23:24 +02:00
|
|
|
|
2016-01-03 22:53:08 +01:00
|
|
|
.include <bsd.port.options.mk>
|
2007-01-06 11:20:17 +01:00
|
|
|
|
2014-02-25 13:44:10 +01:00
|
|
|
.if ${ARCH} == "sparc64"
|
|
|
|
BROKEN= Does not install on sparc64
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|%%DISTDIR%%|${DISTDIR}|' \
|
|
|
|
-e 's|%%PFBFER%%|${PFBFER}|' \
|
|
|
|
${WRKSRC}/setup.py
|
2016-01-03 22:53:08 +01:00
|
|
|
|
|
|
|
post-patch-DOCS-on:
|
2014-02-25 13:44:10 +01:00
|
|
|
.for f in genAll.py userguide/genuserguide.py
|
|
|
|
@${REINPLACE_CMD} -e 's|%%STAGEDIR%%|${STAGEDIR}|' \
|
|
|
|
-e 's|%%PYTHON_SITELIBDIR%%|${PYTHON_SITELIBDIR}|' \
|
|
|
|
${WRKSRC}/docs/${f}
|
|
|
|
.endfor
|
|
|
|
|
2002-04-29 20:37:38 +02:00
|
|
|
post-install:
|
2015-06-10 16:04:06 +02:00
|
|
|
${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/reportlab/*/*.so
|
2016-01-03 22:53:08 +01:00
|
|
|
|
|
|
|
post-install-DOCS-on:
|
2014-02-25 13:44:10 +01:00
|
|
|
@cd ${WRKSRC}/docs && ${PYTHON_CMD} genAll.py
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
2015-06-10 16:04:06 +02:00
|
|
|
.for i in ${PORTDOCS}
|
2014-02-25 13:44:10 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs/${i} ${STAGEDIR}${DOCSDIR}
|
2007-01-06 11:20:17 +01:00
|
|
|
.endfor
|
2002-07-29 09:31:50 +02:00
|
|
|
|
2016-01-03 22:53:08 +01:00
|
|
|
.include <bsd.port.mk>
|