1 |
bicatali 08/06/23 15:16:01 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: matplotlib-0.91.3.ebuild matplotlib-0.98.0.ebuild |
5 |
Log: |
6 |
Two version bumps: 0.91.3, a bugfix release and 0.98.0 a release with api changes |
7 |
(Portage version: 2.1.4.4) |
8 |
|
9 |
Revision Changes Path |
10 |
1.48 dev-python/matplotlib/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/matplotlib/ChangeLog?rev=1.48&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/matplotlib/ChangeLog?rev=1.48&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/matplotlib/ChangeLog?r1=1.47&r2=1.48 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/dev-python/matplotlib/ChangeLog,v |
19 |
retrieving revision 1.47 |
20 |
retrieving revision 1.48 |
21 |
diff -u -r1.47 -r1.48 |
22 |
--- ChangeLog 24 May 2008 08:03:30 -0000 1.47 |
23 |
+++ ChangeLog 23 Jun 2008 15:16:00 -0000 1.48 |
24 |
@@ -1,6 +1,15 @@ |
25 |
# ChangeLog for dev-python/matplotlib |
26 |
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/dev-python/matplotlib/ChangeLog,v 1.47 2008/05/24 08:03:30 bicatali Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/dev-python/matplotlib/ChangeLog,v 1.48 2008/06/23 15:16:00 bicatali Exp $ |
29 |
+ |
30 |
+*matplotlib-0.98.0 (22 Jun 2008) |
31 |
+*matplotlib-0.91.3 (22 Jun 2008) |
32 |
+ |
33 |
+ 22 Jun 2008; Sébastien Fabbro <bicatali@g.o> |
34 |
+ -files/matplotlib-0.90.1-setup.patch, +matplotlib-0.91.3.ebuild, |
35 |
+ +matplotlib-0.98.0.ebuild: |
36 |
+ Two version bumps: 0.91.3, a bugfix release and 0.98.0 a release with api |
37 |
+ changes |
38 |
|
39 |
24 May 2008; Sébastien Fabbro <bicatali@g.o> |
40 |
+files/matplotlib-0.91.2-gcc43.patch, matplotlib-0.91.2.ebuild: |
41 |
|
42 |
|
43 |
|
44 |
1.1 dev-python/matplotlib/matplotlib-0.91.3.ebuild |
45 |
|
46 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/matplotlib/matplotlib-0.91.3.ebuild?rev=1.1&view=markup |
47 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/matplotlib/matplotlib-0.91.3.ebuild?rev=1.1&content-type=text/plain |
48 |
|
49 |
Index: matplotlib-0.91.3.ebuild |
50 |
=================================================================== |
51 |
# Copyright 1999-2008 Gentoo Foundation |
52 |
# Distributed under the terms of the GNU General Public License v2 |
53 |
# $Header: /var/cvsroot/gentoo-x86/dev-python/matplotlib/matplotlib-0.91.3.ebuild,v 1.1 2008/06/23 15:16:00 bicatali Exp $ |
54 |
|
55 |
NEED_PYTHON=2.3 |
56 |
|
57 |
inherit eutils distutils |
58 |
|
59 |
DOC_PV=0.91.2svn |
60 |
|
61 |
DESCRIPTION="Pure python plotting library with matlab like syntax" |
62 |
HOMEPAGE="http://matplotlib.sourceforge.net/" |
63 |
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz |
64 |
doc? ( http://matplotlib.sourceforge.net/users_guide_${DOC_PV}.pdf )" |
65 |
|
66 |
IUSE="cairo doc examples fltk gtk latex qt3 qt4 tk wxwindows" |
67 |
SLOT="0" |
68 |
KEYWORDS="~amd64 ~ppc ~x86" |
69 |
LICENSE="PYTHON BSD stix bakoma" |
70 |
|
71 |
DEPEND="dev-python/numpy |
72 |
>=media-libs/freetype-2 |
73 |
media-libs/libpng |
74 |
dev-python/pytz |
75 |
dev-python/python-dateutil |
76 |
gtk? ( dev-python/pygtk ) |
77 |
wxwindows? ( dev-python/wxpython )" |
78 |
|
79 |
RDEPEND="${DEPEND} |
80 |
|| ( media-fonts/ttf-bitstream-vera media-fonts/dejavu ) |
81 |
latex? ( virtual/latex-base |
82 |
virtual/ghostscript |
83 |
app-text/dvipng |
84 |
app-text/poppler ) |
85 |
cairo? ( dev-python/pycairo ) |
86 |
fltk? ( dev-python/pyfltk ) |
87 |
qt3? ( dev-python/PyQt ) |
88 |
qt4? ( dev-python/PyQt4 )" |
89 |
|
90 |
DOCS="INTERACTIVE API_CHANGES" |
91 |
|
92 |
pkg_setup() { |
93 |
use tk && distutils_python_tkinter |
94 |
} |
95 |
|
96 |
use_setup() { |
97 |
local uword="${2}" |
98 |
[ -z "${2}" ] && uword="${1}" |
99 |
if use ${1}; then |
100 |
echo "${uword} = True" |
101 |
echo "${uword}agg = True" |
102 |
else |
103 |
echo "${uword} = False" |
104 |
echo "${uword}agg = False" |
105 |
fi |
106 |
} |
107 |
|
108 |
src_unpack() { |
109 |
unpack ${A} |
110 |
cd "${S}" |
111 |
# create setup.cfg (see setup.cfg.template for any changes) |
112 |
cat > setup.cfg <<-EOF |
113 |
[provide_packages] |
114 |
pytz = False |
115 |
dateutil = False |
116 |
configobj = False |
117 |
enthought.traits = False |
118 |
[gui_support] |
119 |
$(use_setup gtk) |
120 |
$(use_setup tk) |
121 |
$(use_setup wxwindows wx) |
122 |
$(use_setup qt3 qt) |
123 |
$(use_setup qt4) |
124 |
$(use_setup fltk) |
125 |
$(use_setup cairo) |
126 |
EOF |
127 |
|
128 |
# sed to avoid checks needing a X display |
129 |
sed -i \ |
130 |
-e "s/check_for_gtk()/$(use gtk && echo True || echo False)/" \ |
131 |
-e "s/check_for_tk()/$(use tk && echo True || echo False)/" \ |
132 |
setup.py || die "sed setup.py failed" |
133 |
|
134 |
# respect FHS: put mpl-data in /usr/share/matplotlib |
135 |
# and config files in /etc/matplotlib |
136 |
sed -i \ |
137 |
-e "/'mpl-data\/matplotlibrc',/d" \ |
138 |
-e "/'mpl-data\/matplotlib.conf',/d" \ |
139 |
-e "s:'lib/matplotlib/mpl-data/matplotlibrc':'matplotlibrc':" \ |
140 |
-e "s:'lib/matplotlib/mpl-data/matplotlib.conf':'matplotlib.conf':" \ |
141 |
setup.py \ |
142 |
|| die "sed setup.py for FHS failed" |
143 |
|
144 |
sed -i \ |
145 |
-e "s:path = get_data_path():path = '/etc/matplotlib':" \ |
146 |
-e "s:os.path.dirname(__file__):'/usr/share/${PN}':g" \ |
147 |
lib/matplotlib/{__init__,config/cutils}.py \ |
148 |
|| die "sed init for FHS failed" |
149 |
|
150 |
# remove vera fonts (they are now a dependency) |
151 |
cd lib/matplotlib/mpl-data |
152 |
rm -f ttf/Vera*.ttf ttf/*.TXT ttf/local.conf pdfcorefonts/readme.txt |
153 |
} |
154 |
|
155 |
src_install() { |
156 |
distutils_src_install |
157 |
|
158 |
# respect FHS |
159 |
dodir /usr/share/${PN} |
160 |
mv "${D}"/usr/*/*/site-packages/${PN}/{mpl-data,backends/Matplotlib.nib} \ |
161 |
"${D}"/usr/share/${PN} || die "failed renaming" |
162 |
|
163 |
insinto /etc/matplotlib |
164 |
doins matplotlibrc matplotlib.conf \ |
165 |
|| die "installing config files failed" |
166 |
|
167 |
insinto /usr/share/doc/${PF} |
168 |
use doc && newins "${DISTDIR}"/users_guide_${DOC_PV}.pdf \ |
169 |
${P}-users-guide.pdf |
170 |
use examples && doins -r examples |
171 |
} |
172 |
|
173 |
|
174 |
|
175 |
1.1 dev-python/matplotlib/matplotlib-0.98.0.ebuild |
176 |
|
177 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/matplotlib/matplotlib-0.98.0.ebuild?rev=1.1&view=markup |
178 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/matplotlib/matplotlib-0.98.0.ebuild?rev=1.1&content-type=text/plain |
179 |
|
180 |
Index: matplotlib-0.98.0.ebuild |
181 |
=================================================================== |
182 |
# Copyright 1999-2008 Gentoo Foundation |
183 |
# Distributed under the terms of the GNU General Public License v2 |
184 |
# $Header: /var/cvsroot/gentoo-x86/dev-python/matplotlib/matplotlib-0.98.0.ebuild,v 1.1 2008/06/23 15:16:00 bicatali Exp $ |
185 |
|
186 |
inherit eutils distutils |
187 |
|
188 |
DOC_PV=${PV} |
189 |
|
190 |
DESCRIPTION="Pure python plotting library with matlab like syntax" |
191 |
HOMEPAGE="http://matplotlib.sourceforge.net/" |
192 |
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz |
193 |
doc? ( http://matplotlib.sourceforge.net/users_guide_${DOC_PV}.pdf )" |
194 |
|
195 |
IUSE="cairo doc examples fltk gtk latex qt3 qt4 tk wxwindows" |
196 |
SLOT="0" |
197 |
KEYWORDS="~amd64 ~ppc ~x86" |
198 |
LICENSE="PYTHON BSD stix bakoma" |
199 |
|
200 |
DEPEND=">=dev-python/numpy-1.1 |
201 |
>=media-libs/freetype-2 |
202 |
media-libs/libpng |
203 |
dev-python/pytz |
204 |
dev-python/python-dateutil |
205 |
gtk? ( dev-python/pygtk ) |
206 |
wxwindows? ( dev-python/wxpython )" |
207 |
|
208 |
RDEPEND="${DEPEND} |
209 |
|| ( media-fonts/ttf-bitstream-vera media-fonts/dejavu ) |
210 |
latex? ( virtual/latex-base |
211 |
virtual/ghostscript |
212 |
app-text/dvipng |
213 |
app-text/poppler ) |
214 |
cairo? ( dev-python/pycairo ) |
215 |
fltk? ( dev-python/pyfltk ) |
216 |
qt3? ( dev-python/PyQt ) |
217 |
qt4? ( dev-python/PyQt4 )" |
218 |
|
219 |
DOCS="INTERACTIVE API_CHANGES" |
220 |
|
221 |
pkg_setup() { |
222 |
use tk && distutils_python_tkinter |
223 |
} |
224 |
|
225 |
use_setup() { |
226 |
local uword="${2}" |
227 |
[ -z "${2}" ] && uword="${1}" |
228 |
if use ${1}; then |
229 |
echo "${uword} = True" |
230 |
echo "${uword}agg = True" |
231 |
else |
232 |
echo "${uword} = False" |
233 |
echo "${uword}agg = False" |
234 |
fi |
235 |
} |
236 |
|
237 |
src_unpack() { |
238 |
unpack ${A} |
239 |
cd "${S}" |
240 |
# create setup.cfg (see setup.cfg.template for any changes) |
241 |
cat > setup.cfg <<-EOF |
242 |
[provide_packages] |
243 |
pytz = False |
244 |
dateutil = False |
245 |
configobj = False |
246 |
enthought.traits = False |
247 |
[gui_support] |
248 |
$(use_setup gtk) |
249 |
$(use_setup tk) |
250 |
$(use_setup wxwindows wx) |
251 |
$(use_setup qt3 qt) |
252 |
$(use_setup qt4) |
253 |
$(use_setup fltk) |
254 |
$(use_setup cairo) |
255 |
EOF |
256 |
|
257 |
# sed to avoid checks needing a X display |
258 |
sed -i \ |
259 |
-e "s/check_for_gtk()/$(use gtk && echo True || echo False)/" \ |
260 |
-e "s/check_for_tk()/$(use tk && echo True || echo False)/" \ |
261 |
setup.py || die "sed setup.py failed" |
262 |
|
263 |
# respect FHS: put mpl-data in /usr/share/matplotlib |
264 |
# and config files in /etc/matplotlib |
265 |
sed -i \ |
266 |
-e "/'mpl-data\/matplotlibrc',/d" \ |
267 |
-e "/'mpl-data\/matplotlib.conf',/d" \ |
268 |
-e "s:'lib/matplotlib/mpl-data/matplotlibrc':'matplotlibrc':" \ |
269 |
-e "s:'lib/matplotlib/mpl-data/matplotlib.conf':'matplotlib.conf':" \ |
270 |
setup.py \ |
271 |
|| die "sed setup.py for FHS failed" |
272 |
|
273 |
sed -i \ |
274 |
-e "s:path = get_data_path():path = '/etc/matplotlib':" \ |
275 |
-e "s:os.path.dirname(__file__):'/usr/share/${PN}':g" \ |
276 |
lib/matplotlib/{__init__,config/cutils}.py \ |
277 |
|| die "sed init for FHS failed" |
278 |
|
279 |
# remove vera fonts (they are now a dependency) |
280 |
cd lib/matplotlib/mpl-data |
281 |
rm -f ttf/Vera*.ttf ttf/*.TXT ttf/local.conf pdfcorefonts/readme.txt |
282 |
} |
283 |
|
284 |
src_install() { |
285 |
distutils_src_install |
286 |
|
287 |
# respect FHS |
288 |
dodir /usr/share/${PN} |
289 |
mv "${D}"/usr/*/*/site-packages/${PN}/{mpl-data,backends/Matplotlib.nib} \ |
290 |
"${D}"/usr/share/${PN} || die "failed renaming" |
291 |
|
292 |
insinto /etc/matplotlib |
293 |
doins matplotlibrc matplotlib.conf \ |
294 |
|| die "installing config files failed" |
295 |
|
296 |
insinto /usr/share/doc/${PF} |
297 |
use doc && newins "${DISTDIR}"/users_guide_${DOC_PV}.pdf \ |
298 |
${P}-users-guide.pdf |
299 |
use examples && doins -r examples |
300 |
} |
301 |
|
302 |
|
303 |
|
304 |
-- |
305 |
gentoo-commits@l.g.o mailing list |