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