Date: Mon, 19 Nov 2018 00:10:49 +0000 (UTC) From: Muhammad Moinur Rahman <bofh@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r485291 - in head/print/py-reportlab: . files Message-ID: <201811190010.wAJ0AnlN024960@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: bofh Date: Mon Nov 19 00:10:48 2018 New Revision: 485291 URL: https://svnweb.freebsd.org/changeset/ports/485291 Log: print/py-reportlab: Update version 3.2.0=>3.5.9 PR: 233017 Submitted by: wenheping2000@hotmail.com Relnotes: https://pypi.org/project/reportlab/#history Modified: head/print/py-reportlab/Makefile head/print/py-reportlab/distinfo head/print/py-reportlab/files/patch-setup.py Modified: head/print/py-reportlab/Makefile ============================================================================== --- head/print/py-reportlab/Makefile Sun Nov 18 23:36:38 2018 (r485290) +++ head/print/py-reportlab/Makefile Mon Nov 19 00:10:48 2018 (r485291) @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= reportlab -PORTVERSION= 3.2.0 +PORTVERSION= 3.5.9 CATEGORIES= print python MASTER_SITES= CHEESESHOP \ http://www.reportlab.com/ftp/ @@ -24,9 +24,7 @@ USE_PYTHON= distutils autoplist CONFLICTS= py*-reportlab[^3]-[^3].* \ py*-reportlab-[^3].* -PORTSCOUT= limit:^3\.0\. - -PFBFER_VERSION= 20070710 +PFBFER_VERSION= 20180109 PFBFER= pfbfer-${PFBFER_VERSION}.zip MAKE_ENV= PACKAGE_PATH="${REPORTLABDIR}" Modified: head/print/py-reportlab/distinfo ============================================================================== --- head/print/py-reportlab/distinfo Sun Nov 18 23:36:38 2018 (r485290) +++ head/print/py-reportlab/distinfo Mon Nov 19 00:10:48 2018 (r485291) @@ -1,4 +1,5 @@ -SHA256 (reportlab-3.2.0.tar.gz) = 72e687662bd854776407b9108483561831b45546d935df8b0477708199086293 -SIZE (reportlab-3.2.0.tar.gz) = 1948090 -SHA256 (pfbfer-20070710.zip) = fb1462ff6ce8efae58a0c496f0537c5ac16d4895c68f1640c2973db574ddb376 -SIZE (pfbfer-20070710.zip) = 677333 +TIMESTAMP = 1542585071 +SHA256 (reportlab-3.5.9.tar.gz) = f92f81314807cd860f29fe07a1a4100b03910ae6bbfca20a07e02c3b460f4f20 +SIZE (reportlab-3.5.9.tar.gz) = 2837351 +SHA256 (pfbfer-20180109.zip) = 851b431550e866b217317d09dd33b5535ae081200975ad4dd25e80be2af10fec +SIZE (pfbfer-20180109.zip) = 737561 Modified: head/print/py-reportlab/files/patch-setup.py ============================================================================== --- head/print/py-reportlab/files/patch-setup.py Sun Nov 18 23:36:38 2018 (r485290) +++ head/print/py-reportlab/files/patch-setup.py Mon Nov 19 00:10:48 2018 (r485291) @@ -1,29 +1,25 @@ ---- setup.py.orig 2014-02-14 14:22:37 UTC +--- setup.py.orig 2018-11-06 07:20:18 UTC +++ setup.py -@@ -241,11 +241,7 @@ reportlab_files= [ - ] +@@ -288,11 +288,6 @@ reportlab_files= [ - def get_fonts(PACKAGE_DIR, reportlab_files): -- import sys, os, os.path, zipfile, io + def url2data(url,returnRaw=False): + import io - if isPy3: - import urllib.request as ureq - else: - import urllib2 as ureq -+ import sys, os, os.path, zipfile - rl_dir = PACKAGE_DIR['reportlab'] - if not [x for x in reportlab_files if not os.path.isfile(pjoin(rl_dir,x))]: - infoline("Standard T1 font curves already downloaded") -@@ -254,12 +250,7 @@ def get_fonts(PACKAGE_DIR, reportlab_fil - infoline('not downloading T1 font curve files') - return +- remotehandle = ureq.urlopen(url) try: -- infoline("Downloading standard T1 font curves") -- -- remotehandle = ureq.urlopen("http://www.reportlab.com/ftp/pfbfer-20070710.zip") -- zipdata = io.BytesIO(remotehandle.read()) -- remotehandle.close() -- archive = zipfile.ZipFile(zipdata) -+ archive = zipfile.ZipFile("%%DISTDIR%%/%%PFBFER%%") - dst = pjoin(rl_dir, 'fonts') + raw = remotehandle.read() + return raw if returnRaw else io.BytesIO(raw) +@@ -308,9 +303,7 @@ def get_fonts(PACKAGE_DIR, reportlab_files): + xitmsg = "not downloading T1 font curve files" + else: + try: +- infoline("Downloading standard T1 font curves") +- zipdata = url2data("http://www.reportlab.com/ftp/pfbfer-20180109.zip") +- archive = zipfile.ZipFile(zipdata) ++ archive = zipfile.ZipFile("%%DISTDIR%%/%%PFBFER%%") + dst = pjoin(rl_dir, 'fonts') - for name in archive.namelist(): + for name in archive.namelist():
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201811190010.wAJ0AnlN024960>