1 |
commit: aaf113d8586f42cb084ec4ba3b86284c4fb77574 |
2 |
Author: Justin Lecher <jlec <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Sep 29 07:25:44 2015 +0000 |
4 |
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Sep 29 07:28:18 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aaf113d8 |
7 |
|
8 |
dev-python/enable: Version Bump and fix for newer swig |
9 |
|
10 |
backport fix for newer swig |
11 |
|
12 |
Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=561752 |
13 |
|
14 |
Package-Manager: portage-2.2.22 |
15 |
Signed-off-by: Justin Lecher <jlec <AT> gentoo.org> |
16 |
|
17 |
dev-python/enable/Manifest | 1 + |
18 |
dev-python/enable/enable-4.4.1.ebuild | 13 ++- |
19 |
.../{enable-4.4.1.ebuild => enable-4.5.1.ebuild} | 20 +++-- |
20 |
dev-python/enable/files/enable-4.4.1-swig.patch | 93 ++++++++++++++++++++++ |
21 |
4 files changed, 117 insertions(+), 10 deletions(-) |
22 |
|
23 |
diff --git a/dev-python/enable/Manifest b/dev-python/enable/Manifest |
24 |
index 8be035d..4fc9823 100644 |
25 |
--- a/dev-python/enable/Manifest |
26 |
+++ b/dev-python/enable/Manifest |
27 |
@@ -1 +1,2 @@ |
28 |
DIST enable-4.4.1.tar.gz 2507048 SHA256 6bdba2754410b89d6c0531482a20b930c2a3965d843f374eda7e1e1902a03bdb SHA512 72c879f19e26a4311b900cb4665969b9f806ce47b23c214a25e3ec308cc5300b6d71084a793215b05302fbeba09e13a4561e661c3bddb700d529bd31cfeb4dff WHIRLPOOL be172d97a979270b3a355436a323f72e00eb1fe1544cfd73091f6d56eded44b463198c48bbb8dbabc06e9a417cf24fdd898eecae316376cd1b9845cd4af03d02 |
29 |
+DIST enable-4.5.1.tar.gz 2571975 SHA256 9a7e7c82872969bf11eed5347c735ba7703b6af01274ad4bd3a7c8d89b0da164 SHA512 1095a4490f4918756dd33864aaba2636c294c3b177d3f500d98a355ec86ef86ab211d33cdec95c2d37e7e1df41622acf2c8ecf524a1d93cc39797804c49e6971 WHIRLPOOL 3bda72d5228adb106ec654aacdb34c91285afa40ff676c520119415a6517c1c2b595cbdea6122f70e07365fca18d4bfcd0696cc4dbf1c815165a41418d1b9d71 |
30 |
|
31 |
diff --git a/dev-python/enable/enable-4.4.1.ebuild b/dev-python/enable/enable-4.4.1.ebuild |
32 |
index ae98e27..e34d454 100644 |
33 |
--- a/dev-python/enable/enable-4.4.1.ebuild |
34 |
+++ b/dev-python/enable/enable-4.4.1.ebuild |
35 |
@@ -3,21 +3,22 @@ |
36 |
# $Id$ |
37 |
|
38 |
EAPI=5 |
39 |
+ |
40 |
PYTHON_COMPAT=( python2_7 ) |
41 |
|
42 |
inherit distutils-r1 virtualx flag-o-matic |
43 |
|
44 |
DESCRIPTION="Enthought Tool Suite: Drawing and interaction packages" |
45 |
-HOMEPAGE="http://code.enthought.com/projects/enable/ https://pypi.python.org/pypi/enable" |
46 |
-SRC_URI="https://github.com/enthought/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
47 |
+HOMEPAGE="http://code.enthought.com/projects/enable/ https://pypi.python.org/pypi/enable https://github.com/enthought/enable" |
48 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
49 |
|
50 |
LICENSE="BSD" |
51 |
SLOT="0" |
52 |
KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux" |
53 |
IUSE="doc examples test" |
54 |
-DISTUTILS_IN_SOURCE_BUILD=1 |
55 |
|
56 |
-RDEPEND="dev-python/numpy[${PYTHON_USEDEP}] |
57 |
+RDEPEND=" |
58 |
+ dev-python/numpy[${PYTHON_USEDEP}] |
59 |
dev-python/reportlab[${PYTHON_USEDEP}] |
60 |
>=dev-python/traitsui-4[${PYTHON_USEDEP}] |
61 |
>=media-libs/freetype-2 |
62 |
@@ -35,6 +36,10 @@ DEPEND="${RDEPEND} |
63 |
media-fonts/font-misc-misc |
64 |
)" |
65 |
|
66 |
+DISTUTILS_IN_SOURCE_BUILD=1 |
67 |
+ |
68 |
+PATCHES=( "${FILESDIR}"/${P}-swig.patch ) |
69 |
+ |
70 |
python_prepare_all() { |
71 |
append-cflags -fno-strict-aliasing |
72 |
|
73 |
|
74 |
diff --git a/dev-python/enable/enable-4.4.1.ebuild b/dev-python/enable/enable-4.5.1.ebuild |
75 |
similarity index 74% |
76 |
copy from dev-python/enable/enable-4.4.1.ebuild |
77 |
copy to dev-python/enable/enable-4.5.1.ebuild |
78 |
index ae98e27..31a0a80 100644 |
79 |
--- a/dev-python/enable/enable-4.4.1.ebuild |
80 |
+++ b/dev-python/enable/enable-4.5.1.ebuild |
81 |
@@ -3,21 +3,25 @@ |
82 |
# $Id$ |
83 |
|
84 |
EAPI=5 |
85 |
+ |
86 |
PYTHON_COMPAT=( python2_7 ) |
87 |
|
88 |
inherit distutils-r1 virtualx flag-o-matic |
89 |
|
90 |
DESCRIPTION="Enthought Tool Suite: Drawing and interaction packages" |
91 |
-HOMEPAGE="http://code.enthought.com/projects/enable/ https://pypi.python.org/pypi/enable" |
92 |
-SRC_URI="https://github.com/enthought/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
93 |
+HOMEPAGE="http://code.enthought.com/projects/enable/ https://pypi.python.org/pypi/enable https://github.com/enthought/enable" |
94 |
+#SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
95 |
+SRC_URI="https://github.com/enthought/enable/archive/${PV}.tar.gz -> ${P}.tar.gz" |
96 |
|
97 |
LICENSE="BSD" |
98 |
SLOT="0" |
99 |
-KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux" |
100 |
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
101 |
IUSE="doc examples test" |
102 |
-DISTUTILS_IN_SOURCE_BUILD=1 |
103 |
|
104 |
-RDEPEND="dev-python/numpy[${PYTHON_USEDEP}] |
105 |
+RDEPEND=" |
106 |
+ dev-python/apptools[${PYTHON_USEDEP}] |
107 |
+ dev-python/kiwisolver[${PYTHON_USEDEP}] |
108 |
+ dev-python/numpy[${PYTHON_USEDEP}] |
109 |
dev-python/reportlab[${PYTHON_USEDEP}] |
110 |
>=dev-python/traitsui-4[${PYTHON_USEDEP}] |
111 |
>=media-libs/freetype-2 |
112 |
@@ -35,6 +39,10 @@ DEPEND="${RDEPEND} |
113 |
media-fonts/font-misc-misc |
114 |
)" |
115 |
|
116 |
+DISTUTILS_IN_SOURCE_BUILD=1 |
117 |
+ |
118 |
+PATCHES=( "${FILESDIR}"/${PN}-4.4.1-swig.patch ) |
119 |
+ |
120 |
python_prepare_all() { |
121 |
append-cflags -fno-strict-aliasing |
122 |
|
123 |
@@ -52,7 +60,7 @@ python_test() { |
124 |
pushd "${BUILD_DIR}"/lib > /dev/null |
125 |
# https://github.com/enthought/enable/issues/158 |
126 |
PYTHONPATH=.:kiva \ |
127 |
- VIRTUALX_COMMAND="nosetests" virtualmake |
128 |
+ VIRTUALX_COMMAND="nosetests" virtualmake --verbose |
129 |
popd > /dev/null |
130 |
} |
131 |
|
132 |
|
133 |
diff --git a/dev-python/enable/files/enable-4.4.1-swig.patch b/dev-python/enable/files/enable-4.4.1-swig.patch |
134 |
new file mode 100644 |
135 |
index 0000000..a82f3af |
136 |
--- /dev/null |
137 |
+++ b/dev-python/enable/files/enable-4.4.1-swig.patch |
138 |
@@ -0,0 +1,93 @@ |
139 |
+From f0e399174c5f55eb3a72860c620fdd5193ad57da Mon Sep 17 00:00:00 2001 |
140 |
+From: Jonathan Stickel <jjstickel@×××××.com> |
141 |
+Date: Wed, 25 Mar 2015 14:05:01 -0600 |
142 |
+Subject: [PATCH] fixes for recent swig |
143 |
+ |
144 |
+--- |
145 |
+ kiva/agg/src/affine_matrix.i | 4 ++-- |
146 |
+ kiva/agg/src/constants.i | 4 ++-- |
147 |
+ kiva/agg/src/hit_test.i | 4 ++-- |
148 |
+ kiva/agg/src/rgba.i | 4 ++-- |
149 |
+ 4 files changed, 8 insertions(+), 8 deletions(-) |
150 |
+ |
151 |
+diff --git a/kiva/agg/src/affine_matrix.i b/kiva/agg/src/affine_matrix.i |
152 |
+index 2f30e51..7c05a6a 100644 |
153 |
+--- a/kiva/agg/src/affine_matrix.i |
154 |
++++ b/kiva/agg/src/affine_matrix.i |
155 |
+@@ -157,7 +157,7 @@ namespace agg24 |
156 |
+ }; |
157 |
+ }; |
158 |
+ |
159 |
+-%pythoncode { |
160 |
++%pythoncode %{ |
161 |
+ def is_sequence(arg): |
162 |
+ try: |
163 |
+ len(arg) |
164 |
+@@ -184,7 +184,7 @@ class AffineMatrix(_AffineMatrix): |
165 |
+ """ |
166 |
+ self.multiply(other) |
167 |
+ return self |
168 |
+-} |
169 |
++%} |
170 |
+ |
171 |
+ %extend agg24::trans_affine |
172 |
+ { |
173 |
+diff --git a/kiva/agg/src/constants.i b/kiva/agg/src/constants.i |
174 |
+index b680cae..78f9d0c 100644 |
175 |
+--- a/kiva/agg/src/constants.i |
176 |
++++ b/kiva/agg/src/constants.i |
177 |
+@@ -44,7 +44,7 @@ |
178 |
+ unsigned path_cmd(unsigned c); |
179 |
+ unsigned path_flags(unsigned c); |
180 |
+ |
181 |
+-%pythoncode { |
182 |
++%pythoncode %{ |
183 |
+ |
184 |
+ #---------------------------------------------------------------------------- |
185 |
+ # |
186 |
+@@ -141,4 +141,4 @@ interp_enum_map = {} |
187 |
+ for key,value in interp_string_map.items(): |
188 |
+ interp_enum_map[value] = key |
189 |
+ |
190 |
+-} |
191 |
++%} |
192 |
+diff --git a/kiva/agg/src/hit_test.i b/kiva/agg/src/hit_test.i |
193 |
+index 76de0c9..2cfb1cf 100644 |
194 |
+--- a/kiva/agg/src/hit_test.i |
195 |
++++ b/kiva/agg/src/hit_test.i |
196 |
+@@ -22,7 +22,7 @@ namespace kiva |
197 |
+ } |
198 |
+ |
199 |
+ %pythoncode |
200 |
+-{ |
201 |
++%{ |
202 |
+ from numpy import shape, transpose, zeros, rank, reshape, int32 |
203 |
+ |
204 |
+ def points_in_polygon(pts, poly_pts, use_winding=False): |
205 |
+@@ -92,4 +92,4 @@ def points_in_polygon(pts, poly_pts, use_winding=False): |
206 |
+ else: |
207 |
+ _agg.points_in_polygon(pts, poly_pts, results) |
208 |
+ return results |
209 |
+-} |
210 |
++%} |
211 |
+diff --git a/kiva/agg/src/rgba.i b/kiva/agg/src/rgba.i |
212 |
+index f7624b8..183014f 100644 |
213 |
+--- a/kiva/agg/src/rgba.i |
214 |
++++ b/kiva/agg/src/rgba.i |
215 |
+@@ -74,7 +74,7 @@ namespace agg24 |
216 |
+ } |
217 |
+ |
218 |
+ |
219 |
+-%pythoncode { |
220 |
++%pythoncode %{ |
221 |
+ def is_sequence(arg): |
222 |
+ try: |
223 |
+ len(arg) |
224 |
+@@ -90,6 +90,6 @@ class Rgba(_Rgba): |
225 |
+ if len(args) not in [3,4]: |
226 |
+ raise ValueError, "array argument must be 1x3 or 1x4" |
227 |
+ _Rgba.__init__(self,*args) |
228 |
+-} |
229 |
++%} |
230 |
+ |
231 |
+ %clear double r, double g, double b, double a; |