diff options
-rw-r--r-- | print/py-reportlab2/Makefile | 57 | ||||
-rw-r--r-- | print/py-reportlab2/distinfo | 4 | ||||
-rw-r--r-- | print/py-reportlab2/files/patch-setup.py | 11 | ||||
-rw-r--r-- | print/py-reportlab2/pkg-descr | 2 |
4 files changed, 26 insertions, 48 deletions
diff --git a/print/py-reportlab2/Makefile b/print/py-reportlab2/Makefile index f52feec3bd0b..6502a8eb18a9 100644 --- a/print/py-reportlab2/Makefile +++ b/print/py-reportlab2/Makefile @@ -1,27 +1,24 @@ # Created by: Li-Wen Hsu <lwhsu@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@gmail.com +MAINTAINER= kozlov.sergey.404@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 diff --git a/print/py-reportlab2/distinfo b/print/py-reportlab2/distinfo index 4c0c7df1ef37..bdede65af200 100644 --- a/print/py-reportlab2/distinfo +++ b/print/py-reportlab2/distinfo @@ -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 diff --git a/print/py-reportlab2/files/patch-setup.py b/print/py-reportlab2/files/patch-setup.py deleted file mode 100644 index c2cc67b55d9c..000000000000 --- a/print/py-reportlab2/files/patch-setup.py +++ /dev/null @@ -1,11 +0,0 @@ ---- setup.py.orig 2011-08-05 17:12:44.000000000 +0800 -+++ setup.py 2011-08-05 17:13:39.000000000 +0800 -@@ -224,7 +224,7 @@ - try: - infoline("Downloading standard T1 font curves") - -- remotehandle = urllib2.urlopen("http://www.reportlab.com/ftp/fonts/pfbfer.zip") -+ remotehandle = open("/usr/ports/distfiles/pfbfer.zip") - zipdata = StringIO.StringIO(remotehandle.read()) - remotehandle.close() - archive = zipfile.ZipFile(zipdata) diff --git a/print/py-reportlab2/pkg-descr b/print/py-reportlab2/pkg-descr index 6c7622eb6c87..d17a3fbd2b71 100644 --- a/print/py-reportlab2/pkg-descr +++ b/print/py-reportlab2/pkg-descr @@ -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 |