From 6f73941d92a3fb0c4ae7529553c5de4fcf02f887 Mon Sep 17 00:00:00 2001 From: joerg Date: Wed, 10 Feb 2010 15:30:27 +0000 Subject: Use builtin set if present. Bump revision. --- print/py-pisa/Makefile | 3 ++- print/py-pisa/distinfo | 3 ++- print/py-pisa/patches/patch-aa | 25 +++++++++++++++++++++++++ 3 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 print/py-pisa/patches/patch-aa (limited to 'print') diff --git a/print/py-pisa/Makefile b/print/py-pisa/Makefile index 57d0edf04fd..2ad5be3d84b 100644 --- a/print/py-pisa/Makefile +++ b/print/py-pisa/Makefile @@ -1,8 +1,9 @@ -# $NetBSD: Makefile,v 1.5 2009/10/19 11:19:36 joerg Exp $ +# $NetBSD: Makefile,v 1.6 2010/02/10 15:30:27 joerg Exp $ # DISTNAME= pisa-3.0.32 PKGNAME= ${PYPKGPREFIX}-${DISTNAME} +PKGREVISION= 1 CATEGORIES= textproc print www python MASTER_SITES= http://pypi.python.org/packages/source/p/pisa/ diff --git a/print/py-pisa/distinfo b/print/py-pisa/distinfo index ad9acd8bdfe..6f7b54b957e 100644 --- a/print/py-pisa/distinfo +++ b/print/py-pisa/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.2 2009/10/19 11:19:37 joerg Exp $ +$NetBSD: distinfo,v 1.3 2010/02/10 15:30:27 joerg Exp $ SHA1 (pisa-3.0.32.tar.gz) = d46519677af2290d298928b8f03a1436695ff90b RMD160 (pisa-3.0.32.tar.gz) = 380b0bcc4d00b3ee27205571383c754dd833ceb9 Size (pisa-3.0.32.tar.gz) = 4517663 bytes +SHA1 (patch-aa) = d0fd5bd36c204755c271e00cc72445aa6412f6c8 diff --git a/print/py-pisa/patches/patch-aa b/print/py-pisa/patches/patch-aa new file mode 100644 index 00000000000..aaf3e329ee6 --- /dev/null +++ b/print/py-pisa/patches/patch-aa @@ -0,0 +1,25 @@ +$NetBSD: patch-aa,v 1.1 2010/02/10 15:30:27 joerg Exp $ + +--- sx/w3c/css.py.orig 2010-02-10 16:17:54.000000000 +0100 ++++ sx/w3c/css.py +@@ -37,7 +37,10 @@ Dependencies: + #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + import copy +-import sets ++try: ++ set ++except NameError: ++ from sets import Set as set + import cssParser + import cssSpecial + +@@ -526,7 +529,7 @@ class CSSInlineRuleset(CSSRuleset, CSSDe + class CSSBuilder(cssParser.CSSBuilderAbstract): + RulesetFactory = CSSRuleset + SelectorFactory = CSSMutableSelector +- MediumSetFactory = sets.Set ++ MediumSetFactory = set + DeclarationsFactory = CSSDeclarations + TermFunctionFactory = CSSTerminalFunction + TermOperatorFactory = CSSTerminalOperator -- cgit v1.2.3