diff options
author | tsarna <tsarna> | 2000-08-31 22:39:45 +0000 |
---|---|---|
committer | tsarna <tsarna> | 2000-08-31 22:39:45 +0000 |
commit | 4dd73733eecd797b4024de508309e12b3332e677 (patch) | |
tree | be3a445aa522f9c164e86efc21af198b5dc870ef | |
parent | 4e690def6e78427176e5c0754811100fed56b8d2 (diff) | |
download | pkgsrc-4dd73733eecd797b4024de508309e12b3332e677.tar.gz |
ReportLab, A powerful PDF-generating toolkit for Python
-rw-r--r-- | print/py-reportlab/Makefile | 44 | ||||
-rw-r--r-- | print/py-reportlab/files/md5 | 3 | ||||
-rw-r--r-- | print/py-reportlab/patches/patch-aa | 9 | ||||
-rw-r--r-- | print/py-reportlab/patches/patch-ab | 20 | ||||
-rw-r--r-- | print/py-reportlab/pkg/COMMENT | 1 | ||||
-rw-r--r-- | print/py-reportlab/pkg/DESCR | 1 | ||||
-rw-r--r-- | print/py-reportlab/pkg/PLIST.pre | 1 |
7 files changed, 79 insertions, 0 deletions
diff --git a/print/py-reportlab/Makefile b/print/py-reportlab/Makefile new file mode 100644 index 00000000000..0ed882c7183 --- /dev/null +++ b/print/py-reportlab/Makefile @@ -0,0 +1,44 @@ +# $NetBSD: Makefile,v 1.1.1.1 2000/08/31 22:39:45 tsarna Exp $ +# + +DISTNAME= ReportLab_1_00 +PKGNAME= py-reportlab-1.00 +CATEGORIES= print +MASTER_SITES= ftp://ftp.reportlab.com/ +EXTRACT_SUFX= .tgz + +MAINTAINER= tsarna@netbsd.org +HOMEPAGE= http://www.reportlab.com/ + +DEPENDS+= python-1.5.2:../../lang/python + +WRKSRC= ${WRKDIR}/reportlab/pdfbase + +ALL_TARGET= default +PLIST_SRC= ${WRKDIR}/.PLIST_SRC +SITE_PKG= lib/python1.5/site-packages +PYTHON_LIBDIR= ${LOCALBASE}/${SITE_PKG} +PYTHON_CONFIGDIR= ${LOCALBASE}/lib/python1.5/config + +do-configure: + (cd ${WRKSRC} ;\ + ${CP} ${PYTHON_CONFIGDIR}/Makefile.pre.in . ;\ + ${MAKE} -f Makefile.pre.in boot) + +post-build: + (cd ${WRKDIR}; \ + ${LOCALBASE}/bin/python ${PREFIX}/lib/python1.5/compileall.py . ; \ + ${LOCALBASE}/bin/python -O ${PREFIX}/lib/python1.5/compileall.py . ) + (cd ${WRKSRC}; \ + ${MAKE} clean; ${RM} -f *.c *.orig Makefile* Setup* sedscript ) + +do-install: + ${INSTALL_SCRIPT_DIR} ${PYTHON_LIBDIR} + ${CAT} ${PKGDIR}/PLIST.pre >${PLIST_SRC} + (cd ${WRKDIR}; ${PAX} -r -w -v -p p reportlab ${PYTHON_LIBDIR}) + (cd ${PREFIX}; ${FIND} ${SITE_PKG}/reportlab \ + -type f -print >>${PLIST_SRC}) + (cd ${PREFIX}; ${FIND} -d ${SITE_PKG}/reportlab \ + -type d -print | ${SED} -e "s/^/@dirrm /" >>${PLIST_SRC}) + +.include "../../mk/bsd.pkg.mk" diff --git a/print/py-reportlab/files/md5 b/print/py-reportlab/files/md5 new file mode 100644 index 00000000000..2bd88317f52 --- /dev/null +++ b/print/py-reportlab/files/md5 @@ -0,0 +1,3 @@ +$NetBSD: md5,v 1.1.1.1 2000/08/31 22:39:45 tsarna Exp $ + +MD5 (ReportLab_1_00.tgz) = 6c8da48a5e5483842419da9e195a6748 diff --git a/print/py-reportlab/patches/patch-aa b/print/py-reportlab/patches/patch-aa new file mode 100644 index 00000000000..0ee29a3af50 --- /dev/null +++ b/print/py-reportlab/patches/patch-aa @@ -0,0 +1,9 @@ +$NetBSD: patch-aa,v 1.1.1.1 2000/08/31 22:39:45 tsarna Exp $ + +Build shared modules, not a new python interpreter! + +--- Setup.in.orig Mon Aug 21 17:14:57 2000 ++++ Setup.in Mon Aug 21 17:15:12 2000 +@@ -1 +1,2 @@ ++*shared* + _pdfmetrics _pdfmetrics.c diff --git a/print/py-reportlab/patches/patch-ab b/print/py-reportlab/patches/patch-ab new file mode 100644 index 00000000000..3dc77578f17 --- /dev/null +++ b/print/py-reportlab/patches/patch-ab @@ -0,0 +1,20 @@ +$NetBSD: patch-ab,v 1.1.1.1 2000/08/31 22:39:45 tsarna Exp $ + +--- _pdfmetrics.c.orig Mon Aug 21 17:15:05 2000 ++++ _pdfmetrics.c Mon Aug 21 17:15:52 2000 +@@ -19,13 +19,13 @@ + static eI_t* find_encoding(char* name) + { + eI_t* e = Encodings; +- for(;e;e=e->next) if(!stricmp(name,e->name)) return e; ++ for(;e;e=e->next) if(!strcasecmp(name,e->name)) return e; + return (eI_t*)0; + } + + static fI_t* find_font(char* name, fI_t* f) + { +- for(;f;f=f->next) if(!stricmp(name,f->name)) return f; ++ for(;f;f=f->next) if(!strcasecmp(name,f->name)) return f; + return (fI_t*)0; + } + diff --git a/print/py-reportlab/pkg/COMMENT b/print/py-reportlab/pkg/COMMENT new file mode 100644 index 00000000000..e540fdd308f --- /dev/null +++ b/print/py-reportlab/pkg/COMMENT @@ -0,0 +1 @@ +A powerful PDF-generating toolkit for Python diff --git a/print/py-reportlab/pkg/DESCR b/print/py-reportlab/pkg/DESCR new file mode 100644 index 00000000000..e540fdd308f --- /dev/null +++ b/print/py-reportlab/pkg/DESCR @@ -0,0 +1 @@ +A powerful PDF-generating toolkit for Python diff --git a/print/py-reportlab/pkg/PLIST.pre b/print/py-reportlab/pkg/PLIST.pre new file mode 100644 index 00000000000..2b1c6285395 --- /dev/null +++ b/print/py-reportlab/pkg/PLIST.pre @@ -0,0 +1 @@ +@comment $NetBSD: PLIST.pre,v 1.1.1.1 2000/08/31 22:39:45 tsarna Exp $ |