1 |
commit: 560644c4f6e23332c8c972e746ba1f01092821b2 |
2 |
Author: Justin Lecher <jlec <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Nov 30 14:40:01 2015 +0000 |
4 |
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 30 14:42:27 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=560644c4 |
7 |
|
8 |
dev-python/cssutils: Clear broken lineendings |
9 |
|
10 |
Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=567160 |
11 |
|
12 |
Package-Manager: portage-2.2.25 |
13 |
Signed-off-by: Justin Lecher <jlec <AT> gentoo.org> |
14 |
|
15 |
dev-python/cssutils/cssutils-1.0.1.ebuild | 2 + |
16 |
.../files/cssutils-1.0.1-pypy-test-backport.patch | 64 +++++++++++----------- |
17 |
2 files changed, 34 insertions(+), 32 deletions(-) |
18 |
|
19 |
diff --git a/dev-python/cssutils/cssutils-1.0.1.ebuild b/dev-python/cssutils/cssutils-1.0.1.ebuild |
20 |
index c2be49f..d585a63 100644 |
21 |
--- a/dev-python/cssutils/cssutils-1.0.1.ebuild |
22 |
+++ b/dev-python/cssutils/cssutils-1.0.1.ebuild |
23 |
@@ -35,6 +35,8 @@ python_prepare_all() { |
24 |
-e '/tests_require/d' \ |
25 |
-i setup.py || die |
26 |
|
27 |
+ EPATCH_OPTS="--binary" |
28 |
+ |
29 |
distutils-r1_python_prepare_all |
30 |
} |
31 |
|
32 |
|
33 |
diff --git a/dev-python/cssutils/files/cssutils-1.0.1-pypy-test-backport.patch b/dev-python/cssutils/files/cssutils-1.0.1-pypy-test-backport.patch |
34 |
index 89c7608..f5f1bda 100644 |
35 |
--- a/dev-python/cssutils/files/cssutils-1.0.1-pypy-test-backport.patch |
36 |
+++ b/dev-python/cssutils/files/cssutils-1.0.1-pypy-test-backport.patch |
37 |
@@ -1,32 +1,32 @@ |
38 |
-# HG changeset patch |
39 |
-# User Daniel <kingdread@×××.de> |
40 |
-# Date 1448482419 -3600 |
41 |
-# Node ID 01a19d494b6f31e91c54ae39c5a6f43f6292a85d |
42 |
-# Parent 3a01bd18118a6466ad93aa23caaa4164528b59ac |
43 |
-Fix tests on PyPy 2 |
44 |
- |
45 |
-Tests fail because of the extra "u" prefix in the error message |
46 |
- |
47 |
-diff --git a/src/cssutils/tests/test_profiles.py b/src/cssutils/tests/test_profiles.py |
48 |
---- a/src/cssutils/tests/test_profiles.py |
49 |
-+++ b/src/cssutils/tests/test_profiles.py |
50 |
-@@ -2,6 +2,7 @@ |
51 |
- __version__ = '$Id: test_cssvalue.py 1443 2008-08-31 13:54:39Z cthedot $' |
52 |
- |
53 |
- import sys |
54 |
-+import platform |
55 |
- import basetest |
56 |
- import cssutils |
57 |
- |
58 |
-@@ -124,6 +125,11 @@ |
59 |
- expmsg = u"invalid literal for int(): x" |
60 |
- elif sys.platform.startswith('java'): |
61 |
- expmsg = u"invalid literal for int() with base 10: x" |
62 |
-+ # PyPy adds the u prefix, but only in versions lower than Python 3 |
63 |
-+ elif (platform.python_implementation() == "PyPy" and |
64 |
-+ sys.version_info < (3, 0)): |
65 |
-+ expmsg = u"invalid literal for int() with base 10: u'x'" |
66 |
-+ |
67 |
- |
68 |
- self.assertRaisesMsg(Exception, expmsg, |
69 |
- cssutils.profile.validate, u'-test-funcval', u'x') |
70 |
+# HG changeset patch |
71 |
+# User Daniel <kingdread@×××.de> |
72 |
+# Date 1448482419 -3600 |
73 |
+# Node ID 01a19d494b6f31e91c54ae39c5a6f43f6292a85d |
74 |
+# Parent 3a01bd18118a6466ad93aa23caaa4164528b59ac |
75 |
+Fix tests on PyPy 2 |
76 |
+ |
77 |
+Tests fail because of the extra "u" prefix in the error message |
78 |
+ |
79 |
+diff --git a/src/cssutils/tests/test_profiles.py b/src/cssutils/tests/test_profiles.py |
80 |
+--- a/src/cssutils/tests/test_profiles.py |
81 |
++++ b/src/cssutils/tests/test_profiles.py |
82 |
+@@ -2,6 +2,7 @@ |
83 |
+ __version__ = '$Id: test_cssvalue.py 1443 2008-08-31 13:54:39Z cthedot $' |
84 |
+ |
85 |
+ import sys |
86 |
++import platform |
87 |
+ import basetest |
88 |
+ import cssutils |
89 |
+ |
90 |
+@@ -124,6 +125,11 @@ |
91 |
+ expmsg = u"invalid literal for int(): x" |
92 |
+ elif sys.platform.startswith('java'): |
93 |
+ expmsg = u"invalid literal for int() with base 10: x" |
94 |
++ # PyPy adds the u prefix, but only in versions lower than Python 3 |
95 |
++ elif (platform.python_implementation() == "PyPy" and |
96 |
++ sys.version_info < (3, 0)): |
97 |
++ expmsg = u"invalid literal for int() with base 10: u'x'" |
98 |
++ |
99 |
+ |
100 |
+ self.assertRaisesMsg(Exception, expmsg, |
101 |
+ cssutils.profile.validate, u'-test-funcval', u'x') |