diff options
Diffstat (limited to 'print/py-reportlab1')
-rw-r--r-- | print/py-reportlab1/Makefile | 51 | ||||
-rw-r--r-- | print/py-reportlab1/distinfo | 4 | ||||
-rw-r--r-- | print/py-reportlab1/files/patch-rl_config.py | 55 | ||||
-rw-r--r-- | print/py-reportlab1/files/patch-setup.py | 11 | ||||
-rw-r--r-- | print/py-reportlab1/pkg-descr | 22 | ||||
-rw-r--r-- | print/py-reportlab1/pkg-message | 4 |
6 files changed, 147 insertions, 0 deletions
diff --git a/print/py-reportlab1/Makefile b/print/py-reportlab1/Makefile new file mode 100644 index 000000000000..94840d99cb4f --- /dev/null +++ b/print/py-reportlab1/Makefile @@ -0,0 +1,51 @@ +# Created by: Thomas Gellekum <tg@FreeBSD.org> +# $FreeBSD$ + +PORTNAME= reportlab +PORTVERSION= 1.21.2 +PORTREVISION= 3 +CATEGORIES= print python +MASTER_SITES= http://www.reportlab.com/ftp/ \ + ${MASTER_SITE_LOCAL:S/$/:accel/} \ + http://www.cs.nctu.edu.tw/~lwhsu/ports/distfiles/:accel +MASTER_SITE_SUBDIR= erwin/:accel +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +PKGNAMESUFFIX= 1 +DISTFILES= reportlab-${PORTVERSION}.tar.gz \ + rl_accel-3004.tgz:accel + +MAINTAINER= 5u623l20@gmail.com +COMMENT= Library to create PDF documents using the Python language + +CONFLICTS= py*-reportlab[^1]-[^1].* \ + py*-reportlab-[^1].* + +PORTSCOUT= ignore:1 # Last version of 1.X branch + +USE_PYTHON= yes +USE_PYDISTUTILS= yes +PYDISTUTILS_AUTOPLIST= yes +PYDISTUTILS_PKGNAME= Reportlab + +WRKSRC= ${WRKDIR}/reportlab_${PORTVERSION:S/./_/g}/reportlab +MAKE_ENV= PACKAGE_PATH="${REPORTLABDIR}" + +REPORTLABDIR= ${PYTHONPREFIX_SITELIBDIR}/reportlab +DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}${PKGNAMESUFFIX} +PORTDOCS= RML_UserGuide.pdf RML_UserGuide_1_0.pdf diagradoc.pdf graphguide.pdf \ + graphics_reference.pdf reference.pdf userguide.pdf + +OPTIONS_DEFINE= DOCS + +post-patch: + @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' ${WRKSRC}/rl_config.py + @${REINPLACE_CMD} -e 's#with#with26#g' ${WRKSRC}/lib/PyFontify.py + +post-install: + @${MKDIR} ${STAGEDIR}${DOCSDIR} +.for i in ${PORTDOCS} + ${CP} ${WRKSRC}/docs/${i} ${STAGEDIR}${DOCSDIR} +.endfor + @${CAT} ${PKGMESSAGE} + +.include <bsd.port.mk> diff --git a/print/py-reportlab1/distinfo b/print/py-reportlab1/distinfo new file mode 100644 index 000000000000..309dac9d1393 --- /dev/null +++ b/print/py-reportlab1/distinfo @@ -0,0 +1,4 @@ +SHA256 (reportlab-1.21.2.tar.gz) = dbefc02b43ee72484f95b82b21c0a8fe874d7facc9f5fbcacdde82c2b15b5d30 +SIZE (reportlab-1.21.2.tar.gz) = 3464482 +SHA256 (rl_accel-3004.tgz) = a2ac1b7dbf5f37e98c5f5a80cd364fa682d830561a9694328460430a04baf20d +SIZE (rl_accel-3004.tgz) = 58569 diff --git a/print/py-reportlab1/files/patch-rl_config.py b/print/py-reportlab1/files/patch-rl_config.py new file mode 100644 index 000000000000..83099f00b322 --- /dev/null +++ b/print/py-reportlab1/files/patch-rl_config.py @@ -0,0 +1,55 @@ +--- 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-reportlab1/files/patch-setup.py b/print/py-reportlab1/files/patch-setup.py new file mode 100644 index 000000000000..ca752318a999 --- /dev/null +++ b/print/py-reportlab1/files/patch-setup.py @@ -0,0 +1,11 @@ +--- 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'] + + def get_version(): + #determine Version diff --git a/print/py-reportlab1/pkg-descr b/print/py-reportlab1/pkg-descr new file mode 100644 index 000000000000..d17a3fbd2b71 --- /dev/null +++ b/print/py-reportlab1/pkg-descr @@ -0,0 +1,22 @@ +ReportLab is a software library that lets you directly create +documents in Adobe's Portabe Document Format (PDF) using the Python +programming language. + +The ReportLab library directly creates PDF based on your graphics +commands. There are no intervening steps. Your applications can +generate reports extremely fast - sometimes orders of magnitude +faster than traditional report-writing tools. + +The ReportLab library is expected to be useful in at least the +following contexts: + +- Dynamic PDF generation on the web +- High-volume corporate reporting and database publishing +- An embeddable print engine for other applications, including + a 'report language' so that users can customize their own reports. +- A 'build system' for complex documents with charts, tables + and text such as management accounts, statistical reports and + scientific papers +- Going from XML to PDF in one step! + +WWW: http://www.reportlab.org/rl_toolkit.html diff --git a/print/py-reportlab1/pkg-message b/print/py-reportlab1/pkg-message new file mode 100644 index 000000000000..bfe4eb36d62f --- /dev/null +++ b/print/py-reportlab1/pkg-message @@ -0,0 +1,4 @@ +======================================================= + You may need to install print/adobe-cmaps port to use + East Asian languages. +======================================================= |