svn commit: r358020 - in head/print/py-reportlab2: . files
William Grzybowski
wg at FreeBSD.org
Mon Jun 16 16:06:27 UTC 2014
Author: wg
Date: Mon Jun 16 16:06:26 2014
New Revision: 358020
URL: http://svnweb.freebsd.org/changeset/ports/358020
QAT: https://qat.redports.org/buildarchive/r358020/
Log:
print/py-reportlab2: update to 2.7
- Use PKGNAMESUFFIX to simplify changes
- Change deprecated LICENSE
- Adobe CMaps is deprecated long ago
https://bitbucket.org/rptlab/reportlab/commits/9877f90e0ad9f04f61b454cee4c2e88a07b70e6b
- Freetype fonts are brought in by py-imaging, the FREETYPE option has no effect
- Limit it to python 2.x
- Use PYDISTUTILS_AUTOPLIST
- Stagify
- Change patch+reinplace+reinplace chain to one simple reinplace
- Change from tab to space after 'WWW:' in pkg-descr
- Pass maintainership to submitter
PR: 186866
Submitted by: kozlov.sergey.404 gmail com
Approved by: maintainer
Deleted:
head/print/py-reportlab2/files/
Modified:
head/print/py-reportlab2/Makefile
head/print/py-reportlab2/distinfo
head/print/py-reportlab2/pkg-descr
Modified: head/print/py-reportlab2/Makefile
==============================================================================
--- head/print/py-reportlab2/Makefile Mon Jun 16 16:05:17 2014 (r358019)
+++ head/print/py-reportlab2/Makefile Mon Jun 16 16:06:26 2014 (r358020)
@@ -1,27 +1,24 @@
# Created by: Li-Wen Hsu <lwhsu at lwhsu.org>
# $FreeBSD$
-PORTNAME= reportlab2
-PORTVERSION= 2.5
-PORTREVISION= 1
+PORTNAME= reportlab
+PORTVERSION= 2.7
CATEGORIES= print python
MASTER_SITES= http://www.reportlab.com/ftp/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
-DISTFILES= reportlab-${PORTVERSION}${EXTRACT_SUFX} pfbfer-${PFBFER_VERSION}.zip
-EXTRACT_ONLY= reportlab-${PORTVERSION}${EXTRACT_SUFX}
+PKGNAMESUFFIX= 2
+DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
+ pfbfer-${PFBFER_VERSION}.zip
+EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
-MAINTAINER= buganini at gmail.com
+MAINTAINER= kozlov.sergey.404 at gmail.com
COMMENT= Library to create PDF documents using the Python language
-LICENSE= BSD
+LICENSE= BSD3CLAUSE
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}imaging>0:${PORTSDIR}/graphics/py-imaging
-OPTIONS_DEFINE= CJK FREETYPE DOCS
-OPTIONS_DEFAULT= CJK FREETYPE
-CJK_DESC= Adobe CMaps
-
-WRKSRC= ${WRKDIR}/reportlab-${PORTVERSION}
+OPTIONS_DEFINE= DOCS
CONFLICTS= py*-reportlab[^2]-[^2].* \
py*-reportlab-[^2].*
@@ -30,43 +27,35 @@ PORTSCOUT= limit:^2\.
PFBFER_VERSION= 20070710
-USE_PYTHON= yes
+USE_PYTHON= 2
USE_PYDISTUTILS= yes
-PYDISTUTILS_PKGNAME= reportlab
-
-MAKE_ENV= PACKAGE_PATH="${REPORTLABDIR}"
+PYDISTUTILS_AUTOPLIST= yes
-REPORTLABDIR= ${PYTHONPREFIX_SITELIBDIR}/reportlab
-DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
DOCS= reportlab-graphics-reference.pdf \
reportlab-reference.pdf \
reportlab-userguide.pdf
-NO_STAGE= yes
-post-patch:
- @${REINPLACE_CMD} -e 's|/usr/ports/distfiles|${DISTDIR}|g' ${WRKSRC}/setup.py
- @${REINPLACE_CMD} -e 's|pfbfer.zip|pfbfer-${PFBFER_VERSION}.zip|g' ${WRKSRC}/setup.py
+DOCS_PLIST_FILES= ${DOCSDIR}/reportlab-graphics-reference.pdf \
+ ${DOCSDIR}/reportlab-reference.pdf \
+ ${DOCSDIR}/reportlab-userguide.pdf
+DOCS_PLIST_DIRS= ${DOCSDIR}
.include <bsd.port.options.mk>
-.if ${ARCH} == "sparc64"
-BROKEN= Does not install on sparc64
+.if ${ARCH} == "sparc64"
+BROKEN= Does not install on sparc64
.endif
-.if ${PORT_OPTIONS:MCJK}
-RUN_DEPENDS+= ${LOCALBASE}/share/fonts/adobe-cmaps/ac15/cid2code.txt:${PORTSDIR}/print/adobe-cmaps
-.endif
-
-.if ${PORT_OPTIONS:MFREETYPE}
-LIB_DEPENDS+= libfreetype.so:${PORTSDIR}/print/freetype2
-.endif
+post-patch:
+ @${REINPLACE_CMD} -e 's|http://www.reportlab.com/ftp|file://${DISTDIR}|g' ${WRKSRC}/setup.py
post-install:
.if ${PORT_OPTIONS:MDOCS}
- @cd ${WRKSRC}/docs && ${PYTHON_CMD} genAll.py
- ${MKDIR} ${DOCSDIR}
+ @cd ${WRKSRC}/docs && \
+ PYTHONPATH=${STAGEDIR}${PYTHON_SITELIBDIR} ${PYTHON_CMD} genAll.py
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in ${DOCS}
- ${CP} ${WRKSRC}/docs/${i} ${DOCSDIR}
+ ${CP} ${WRKSRC}/docs/${i} ${STAGEDIR}${DOCSDIR}
.endfor
.endif
Modified: head/print/py-reportlab2/distinfo
==============================================================================
--- head/print/py-reportlab2/distinfo Mon Jun 16 16:05:17 2014 (r358019)
+++ head/print/py-reportlab2/distinfo Mon Jun 16 16:06:26 2014 (r358020)
@@ -1,4 +1,4 @@
-SHA256 (reportlab-2.5.tar.gz) = 805152084cc8421104a5e1e705482a1034598ecb4c266670dfba31996de6ff69
-SIZE (reportlab-2.5.tar.gz) = 1917306
+SHA256 (reportlab-2.7.tar.gz) = 82b56935e4a75641b40eb22050f0b6e46a0f0a9ebfacdf3b24a1e9c0eef2af6d
+SIZE (reportlab-2.7.tar.gz) = 1951460
SHA256 (pfbfer-20070710.zip) = fb1462ff6ce8efae58a0c496f0537c5ac16d4895c68f1640c2973db574ddb376
SIZE (pfbfer-20070710.zip) = 677333
Modified: head/print/py-reportlab2/pkg-descr
==============================================================================
--- head/print/py-reportlab2/pkg-descr Mon Jun 16 16:05:17 2014 (r358019)
+++ head/print/py-reportlab2/pkg-descr Mon Jun 16 16:06:26 2014 (r358020)
@@ -19,4 +19,4 @@ following contexts:
scientific papers
- Going from XML to PDF in one step!
-WWW: http://www.reportlab.org/rl_toolkit.html
+WWW: http://www.reportlab.org/rl_toolkit.html
More information about the svn-ports-all
mailing list