diff options
author | TAKATSU Tomonari <tota@FreeBSD.org> | 2014-02-25 12:44:10 +0000 |
---|---|---|
committer | TAKATSU Tomonari <tota@FreeBSD.org> | 2014-02-25 12:44:10 +0000 |
commit | 0cbe65e47c9209d69ce010b5ab926c714387ecb1 (patch) | |
tree | bc7942759dbfb01fc52a7089e3edbbfb635ff176 /print/py-reportlab/files/patch-setup.py | |
parent | Support staging (diff) |
- Repocopy print/py-reportlab to print/py-reportlab1
to preserve version 1.x and to update to 3.0
print/py-reportlab:
- Update print/py-reportlab to 3.0 based on print/py-reportlab2
- Support STAGEDIR
- Use PYDISTUTILS_AUTOPLIST
* Remove pkg-plist, accordingly
- Set CONFLICTS
- Add PORTSCOUT
- Replace tab with a single space after WWW: in pkg-descr
print/py-reportlab1:
- Support STAGEDIR
- Add PKGNAMESUFFIX not to duplicate ports with the same name
- Set CONFLICTS
- Use PYDISTUTILS_AUTOPLIST
* Remove pkg-plist, accordingly
- Make use of PORTDOCS
- Set OPTIONS_DEFINE explicitly
- Fix include statement
- Make docs unconditional to stage
- Replace tab with a single space after WWW: in pkg-descr
print/py-reportlab2:
- Update CONFLICTS
- Set PORTSCOUT
dependent ports:
- Switch dependency from print/py-reportlab to print/py-reportlab1
* biology/py-biopython
* deskutils/gourmet
* deskutils/griffith
* games/pythonsudoku
* misc/pdfmap
* print/py-trml2pdf
* www/py-satchmo
PR: ports/186970
Submitted by: tota (myself)
Approved by: Muhammad Moinur Rahman (maintainer)
Notes
Notes:
svn path=/head/; revision=345987
Diffstat (limited to 'print/py-reportlab/files/patch-setup.py')
-rw-r--r-- | print/py-reportlab/files/patch-setup.py | 38 |
1 files changed, 28 insertions, 10 deletions
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(): |