[117102] trunk/dports/python/py-reportlab/Portfile
stromnov at macports.org
stromnov at macports.org
Sun Feb 16 10:21:16 PST 2014
Revision: 117102
https://trac.macports.org/changeset/117102
Author: stromnov at macports.org
Date: 2014-02-16 10:21:16 -0800 (Sun, 16 Feb 2014)
Log Message:
-----------
py-reportlab: update to version 3.0
Modified Paths:
--------------
trunk/dports/python/py-reportlab/Portfile
Modified: trunk/dports/python/py-reportlab/Portfile
===================================================================
--- trunk/dports/python/py-reportlab/Portfile 2014-02-16 18:03:26 UTC (rev 117101)
+++ trunk/dports/python/py-reportlab/Portfile 2014-02-16 18:21:16 UTC (rev 117102)
@@ -5,44 +5,56 @@
PortGroup python 1.0
name py-reportlab
-version 2.7
+version 3.0
revision 0
categories-append textproc
-platforms darwin freebsd
+platforms darwin
license BSD
-python.versions 24 25 26 27
+python.versions 24 25 26 27 33 34
maintainers stromnov openmaintainer
-description python library for creating pdf files
+description Engine for creating PDF documents
-long_description ReportLab is a software library that lets you directly \
- create documents in Adobe's Portable Document Format \
- (PDF) using the python programming language.
+long_description The ReportLab Toolkit is a library for programatically \
+ creating documents in PDF format.
homepage http://www.reportlab.com/software/opensource/rl-toolkit/
master_sites http://www.reportlab.com/ftp/
distname reportlab-${version}
-checksums rmd160 0ff90be737e925bc156c36dabb25b183834cf537 \
- sha256 82b56935e4a75641b40eb22050f0b6e46a0f0a9ebfacdf3b24a1e9c0eef2af6d
+checksums rmd160 2c6944aa8765e1f074ac134256eba18f30d67edc \
+ sha256 a8a75186a9f2cc219c9fee5ec52ae4e18084783906b6345109770ff933bed86f
if {${name} ne ${subport}} {
- depends_lib-append port:py${python.version}-pil
+ depends_lib-append port:freetype
- patchfiles patch-src_reportlab_lib_testutils.py.diff
+ # ReportLab 3.x requires Python 2.7+
+ if {[lsearch {24 25 26} ${python.version}] != -1} {
+ version 2.7
+ revision 0
+ checksums rmd160 0ff90be737e925bc156c36dabb25b183834cf537 \
+ sha256 82b56935e4a75641b40eb22050f0b6e46a0f0a9ebfacdf3b24a1e9c0eef2af6d
+ distname reportlab-${version}
+ patchfiles-append patch-src_reportlab_lib_testutils.py.diff
+ } elseif {${subport} eq "py27-reportlab"} {
+ depends_lib-append port:py${python.version}-pil
+ } else {
+ depends_lib-append port:py${python.version}-Pillow
+ }
+
post-destroot {
set docdir ${prefix}/share/doc/${subport}
xinstall -m 644 -W ${worksrcpath} README.txt CHANGES.txt LICENSE.txt \
${destroot}${docdir}
}
- livecheck.type none
+ livecheck.type none
} else {
- livecheck.type regex
- livecheck.url [lindex ${master_sites} 0]
- livecheck.regex reportlab-(\[0-9.\]+)${extract.suffix}
+ livecheck.type regex
+ livecheck.url [lindex ${master_sites} 0]
+ livecheck.regex {reportlab-(\d+(?:\.\d+)*)\.[tz]}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140216/7e6604e0/attachment.html>
More information about the macports-changes
mailing list