Added a patch from eric4 (IDE) which fixes a problem with foreign characters.
Added MODPY_WANTLIB and bump revision for -python. ok jasper@.
This commit is contained in:
parent
3b3edd9bee
commit
a6b1e21ba3
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.41 2011/06/08 18:09:58 jasper Exp $
|
||||
# $OpenBSD: Makefile,v 1.42 2011/06/16 08:11:12 rpointel Exp $
|
||||
|
||||
SHARED_ONLY= Yes
|
||||
|
||||
@ -9,7 +9,7 @@ MODPY_EGG_VERSION=0.8.4
|
||||
VERSION= ${MODPY_EGG_VERSION}
|
||||
DISTNAME= PyXML-${VERSION}
|
||||
PKGNAME= py-xml-${VERSION}
|
||||
REVISION= 10
|
||||
REVISION= 11
|
||||
CATEGORIES= textproc devel
|
||||
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pyxml/}
|
||||
@ -36,6 +36,8 @@ FLAVOR?=
|
||||
WANTLIB += expat
|
||||
.endif
|
||||
|
||||
WANTLIB += ${MODPY_WANTLIB}
|
||||
|
||||
REGRESS_DEPENDS= python-tests-${MODPY_VSPEC}:lang/python/${MODPY_VERSION},-tests
|
||||
|
||||
DOC_DIR= ${PREFIX}/share/doc/py-xml/
|
||||
|
12
textproc/py-xml/patches/patch-xml_parser_xmlproc_xmlutils_py
Normal file
12
textproc/py-xml/patches/patch-xml_parser_xmlproc_xmlutils_py
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-xml_parser_xmlproc_xmlutils_py,v 1.1 2011/06/16 08:11:12 rpointel Exp $
|
||||
from and needed for editors/eric4
|
||||
--- xml/parsers/xmlproc/xmlutils.py.orig 2002-09-13 15:37:17.000000000 +0000
|
||||
+++ xml/parsers/xmlproc/xmlutils.py
|
||||
@@ -720,6 +720,7 @@ class XMLCommonParser(EntityParser):
|
||||
# to the recoding.
|
||||
try:
|
||||
self.data = self.charset_converter(self.data)
|
||||
+ self.datasize = len(self.data)
|
||||
except UnicodeError, e:
|
||||
self._handle_decoding_error(self.data, e)
|
||||
self.input_encoding = enc1
|
Loading…
Reference in New Issue
Block a user