python 2.5.2: add some patches from pymaemo, remove old-and-deprecated package
[vuplus_openembedded] / packages / python / python-2.5.2 / 14-encodings-oriental.patch
1 Index: python-2.5.2/debian/rules
2 ===================================================================
3 --- python-2.5.2.orig/debian/rules      2008-02-26 14:15:36.000000000 -0300
4 +++ python-2.5.2/debian/rules   2008-02-26 14:17:42.000000000 -0300
5 @@ -134,6 +134,8 @@
6         )
7         find $(d_dev)/$(scriptdir) -name "*.pyo" -type f | grep -v -f $(only_dev_list) | xargs rm -f
8  
9 +       find $(d_dev)/$(scriptdir)/encodings | grep -f $(only_dev_list) | xargs -i mv '{}' $(d_dev)/$(scriptdir)/encodings_orient
10 +
11         # move the interpreter
12         mv $(d_dev)/usr/bin/python2.5 $(d_base)/usr/bin/python2.5
13  
14 Index: python-2.5.2/Lib/encodings/__init__.py
15 ===================================================================
16 --- python-2.5.2.orig/Lib/encodings/__init__.py 2008-02-26 14:15:07.000000000 -0300
17 +++ python-2.5.2/Lib/encodings/__init__.py      2008-02-26 14:17:42.000000000 -0300
18 @@ -99,6 +99,14 @@
19              pass
20          else:
21              break
22 +
23 +        try:
24 +            mod = __import__('encodings_orient.' + modname,
25 +                             globals(), locals(), _import_tail)
26 +        except ImportError:
27 +            pass
28 +        else:
29 +            break
30      else:
31          mod = None
32  
33 Index: python-2.5.2/Makefile.pre.in
34 ===================================================================
35 --- python-2.5.2.orig/Makefile.pre.in   2008-02-26 14:15:07.000000000 -0300
36 +++ python-2.5.2/Makefile.pre.in        2008-02-26 14:17:42.000000000 -0300
37 @@ -717,7 +717,7 @@
38  PLATMACPATH=:plat-mac:plat-mac/lib-scriptpackages
39  LIBSUBDIRS=    lib-tk site-packages test test/output test/data \
40                 test/decimaltestdata \
41 -               encodings compiler hotshot \
42 +               encodings encodings_orient compiler hotshot \
43                 email email/mime email/test email/test/data \
44                 sqlite3 sqlite3/test \
45                 logging bsddb bsddb/test csv wsgiref \
46 Index: python-2.5.2/debian/onlysdk
47 ===================================================================
48 --- python-2.5.2.orig/debian/onlysdk    2008-02-26 14:15:07.000000000 -0300
49 +++ python-2.5.2/debian/onlysdk 2008-02-26 14:17:42.000000000 -0300
50 @@ -1,7 +1,6 @@
51  distutils
52  compile
53 -encodings/cp
54 -encodings/mac
55 +encodings_orient
56  doctest
57  unittest
58  hotshot
59 Index: python-2.5.2/Lib/encodings_orient/__init__.py
60 ===================================================================
61 --- /dev/null   1970-01-01 00:00:00.000000000 +0000
62 +++ python-2.5.2/Lib/encodings_orient/__init__.py       2008-02-26 14:17:42.000000000 -0300
63 @@ -0,0 +1 @@
64 +#Dummy