diff options
Diffstat (limited to 'print/py-reportlab/files')
-rw-r--r-- | print/py-reportlab/files/patch-docs-genAll.py | 11 | ||||
-rw-r--r-- | print/py-reportlab/files/patch-docs-userguide-genuserguide.py | 12 | ||||
-rw-r--r-- | print/py-reportlab/files/patch-rl_config.py | 55 | ||||
-rw-r--r-- | print/py-reportlab/files/patch-setup.py | 38 |
4 files changed, 51 insertions, 65 deletions
diff --git a/print/py-reportlab/files/patch-docs-genAll.py b/print/py-reportlab/files/patch-docs-genAll.py new file mode 100644 index 000000000000..4dd9f403f40c --- /dev/null +++ b/print/py-reportlab/files/patch-docs-genAll.py @@ -0,0 +1,11 @@ +--- docs/genAll.py.orig 2014-02-14 23:22:37.000000000 +0900 ++++ docs/genAll.py 2014-02-16 16:20:21.000000000 +0900 +@@ -1,6 +1,7 @@ + #!/bin/env python +-import os, sys, traceback ++import os, sys, traceback, site + def _genAll(verbose=1): ++ site.addsitedir("%%STAGEDIR%%%%PYTHON_SITELIBDIR%%") + from reportlab.lib.testutils import setOutDir + setOutDir(__name__) + from reportlab.lib.testutils import testsFolder diff --git a/print/py-reportlab/files/patch-docs-userguide-genuserguide.py b/print/py-reportlab/files/patch-docs-userguide-genuserguide.py new file mode 100644 index 000000000000..8df153f3786f --- /dev/null +++ b/print/py-reportlab/files/patch-docs-userguide-genuserguide.py @@ -0,0 +1,12 @@ +--- docs/userguide/genuserguide.py.orig 2014-02-14 23:22:37.000000000 +0900 ++++ docs/userguide/genuserguide.py 2014-02-16 16:15:05.000000000 +0900 +@@ -8,7 +8,8 @@ + """ + + def run(pagesize=None, verbose=0, outDir=None): +- import sys,os ++ import sys,os,site ++ site.addsitedir("%%STAGEDIR%%%%PYTHON_SITELIBDIR%%") + from reportlab.lib.utils import open_and_read, asUnicode + cwd = os.getcwd() + docsDir=os.path.dirname(os.path.dirname(sys.argv[0]) or cwd) diff --git a/print/py-reportlab/files/patch-rl_config.py b/print/py-reportlab/files/patch-rl_config.py deleted file mode 100644 index 83099f00b322..000000000000 --- a/print/py-reportlab/files/patch-rl_config.py +++ /dev/null @@ -1,55 +0,0 @@ ---- rl_config.py.orig Wed Nov 10 00:09:28 2004 -+++ rl_config.py Mon Mar 21 03:24:22 2005 -@@ -22,15 +22,9 @@ - - # places to look for T1Font information - T1SearchPath = ( -- 'c:/Program Files/Adobe/Acrobat 6.0/Resource/Font', #Win32, Acrobat 6 -- 'c:/Program Files/Adobe/Acrobat 5.0/Resource/Font', #Win32, Acrobat 5 -- 'c:/Program Files/Adobe/Acrobat 4.0/Resource/Font', #Win32, Acrobat 4 -- '%(disk)s/Applications/Python %(sys_version)s/reportlab/fonts', #Mac? -- '/usr/lib/Acrobat5/Resource/Font', #Linux, Acrobat 5? -- '/usr/lib/Acrobat4/Resource/Font', #Linux, Acrobat 4 -- '/usr/local/Acrobat6/Resource/Font', #Linux, Acrobat 5? -- '/usr/local/Acrobat5/Resource/Font', #Linux, Acrobat 5? -- '/usr/local/Acrobat4/Resource/Font', #Linux, Acrobat 4 -+ '/usr/local/Acrobat6/Resource/Font', -+ '/usr/local/Acrobat5/Resource/Font', -+ '/usr/local/Acrobat4/Resource/Font', - '%(REPORTLAB_DIR)s/fonts', #special - '%(REPORTLAB_DIR)s/../fonts', #special - '%(REPORTLAB_DIR)s/../../fonts', #special -@@ -39,9 +33,7 @@ - - # places to look for TT Font information - TTFSearchPath = ( -- 'c:/winnt/fonts', -- 'c:/windows/fonts', -- '/usr/lib/X11/fonts/TrueType/', -+ '/usr/X11R6/lib/X11/fonts/TrueType/', - '%(REPORTLAB_DIR)s/fonts', #special - '%(REPORTLAB_DIR)s/../fonts', #special - '%(REPORTLAB_DIR)s/../../fonts',#special -@@ -49,20 +41,14 @@ - ) - - # places to look for CMap files - should ideally merge with above --CMapSearchPath = ('/usr/lib/Acrobat6/Resource/CMap', -- '/usr/lib/Acrobat5/Resource/CMap', -- '/usr/lib/Acrobat4/Resource/CMap', -- '/usr/local/Acrobat6/Resource/CMap', -+CMapSearchPath = ('/usr/local/Acrobat6/Resource/CMap', - '/usr/local/Acrobat5/Resource/CMap', - '/usr/local/Acrobat4/Resource/CMap', -- 'C:\\Program Files\\Adobe\\Acrobat\\Resource\\CMap', -- 'C:\\Program Files\\Adobe\\Acrobat 6.0\\Resource\\CMap', -- 'C:\\Program Files\\Adobe\\Acrobat 5.0\\Resource\\CMap', -- 'C:\\Program Files\\Adobe\\Acrobat 4.0\\Resource\\CMap' - '%(REPORTLAB_DIR)s/fonts/CMap', #special - '%(REPORTLAB_DIR)s/../fonts/CMap', #special - '%(REPORTLAB_DIR)s/../../fonts/CMap', #special - '%(HOME)s/fonts/CMap', #special -+ '/usr/local/share/ghostscript/Resource/CMap', - ) - - #### Normally don't need to edit below here #### diff --git a/print/py-reportlab/files/patch-setup.py b/print/py-reportlab/files/patch-setup.py index ca752318a999..fc7be0d9bf57 100644 --- a/print/py-reportlab/files/patch-setup.py +++ b/print/py-reportlab/files/patch-setup.py @@ -1,11 +1,29 @@ ---- setup.py.orig Fri Nov 26 00:12:20 2004 -+++ setup.py Mon Mar 21 03:26:45 2005 -@@ -19,7 +19,7 @@ - isfile = os.path.isfile - isdir = os.path.isfile - dirname = os.path.dirname --package_path = pjoin(package_home(distutils.__dict__), 'site-packages', 'reportlab') -+package_path = os.environ['PACKAGE_PATH'] +--- setup.py.orig 2014-02-14 23:22:37.000000000 +0900 ++++ setup.py 2014-02-16 00:48:02.000000000 +0900 +@@ -241,11 +241,7 @@ + ] - def get_version(): - #determine Version + def get_fonts(PACKAGE_DIR, reportlab_files): +- import sys, os, os.path, zipfile, 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 @@ + infoline('not downloading T1 font curve files') + return + 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') + + for name in archive.namelist(): |