1 |
bicatali 09/01/15 09:57:46 |
2 |
|
3 |
Modified: metadata.xml ChangeLog matplotlib-0.98.5.2.ebuild |
4 |
Added: matplotlib-0.98.5.2-r1.ebuild |
5 |
Removed: matplotlib-0.98.3.ebuild |
6 |
Log: |
7 |
Reorganized dependencies. Added enthought traits support, removed bundled pyparsing, pycxx (bug #252947) and fonts. Temporary mirror restricting since upstream has changed source (bug #252578) |
8 |
(Portage version: 2.2_rc20/cvs/Linux 2.6.25-gentoo-r7 x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.6 dev-python/matplotlib/metadata.xml |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/matplotlib/metadata.xml?rev=1.6&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/matplotlib/metadata.xml?rev=1.6&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/matplotlib/metadata.xml?r1=1.5&r2=1.6 |
16 |
|
17 |
Index: metadata.xml |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-python/matplotlib/metadata.xml,v |
20 |
retrieving revision 1.5 |
21 |
retrieving revision 1.6 |
22 |
diff -u -r1.5 -r1.6 |
23 |
--- metadata.xml 19 Dec 2008 15:47:55 -0000 1.5 |
24 |
+++ metadata.xml 15 Jan 2009 09:57:46 -0000 1.6 |
25 |
@@ -9,6 +9,9 @@ |
26 |
variety of backends and hard copy formats for almost ready publication plots. |
27 |
</longdescription> |
28 |
<use> |
29 |
- <flag name='excel'>Pull <pkg>dev-python/xlwt</pkg> for the exceltools toolkit</flag> |
30 |
+ <flag name='excel'>Pull <pkg>dev-python/xlwt</pkg> for the |
31 |
+ exceltools toolkit</flag> |
32 |
+ <flag name='traits'>Pull <pkg>dev-python/traits</pkg> for the |
33 |
+ experimental enthought traits support</flag> |
34 |
</use> |
35 |
</pkgmetadata> |
36 |
|
37 |
|
38 |
|
39 |
1.56 dev-python/matplotlib/ChangeLog |
40 |
|
41 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/matplotlib/ChangeLog?rev=1.56&view=markup |
42 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/matplotlib/ChangeLog?rev=1.56&content-type=text/plain |
43 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/matplotlib/ChangeLog?r1=1.55&r2=1.56 |
44 |
|
45 |
Index: ChangeLog |
46 |
=================================================================== |
47 |
RCS file: /var/cvsroot/gentoo-x86/dev-python/matplotlib/ChangeLog,v |
48 |
retrieving revision 1.55 |
49 |
retrieving revision 1.56 |
50 |
diff -u -r1.55 -r1.56 |
51 |
--- ChangeLog 23 Dec 2008 11:41:41 -0000 1.55 |
52 |
+++ ChangeLog 15 Jan 2009 09:57:46 -0000 1.56 |
53 |
@@ -1,6 +1,15 @@ |
54 |
# ChangeLog for dev-python/matplotlib |
55 |
-# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 |
56 |
-# $Header: /var/cvsroot/gentoo-x86/dev-python/matplotlib/ChangeLog,v 1.55 2008/12/23 11:41:41 bicatali Exp $ |
57 |
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
58 |
+# $Header: /var/cvsroot/gentoo-x86/dev-python/matplotlib/ChangeLog,v 1.56 2009/01/15 09:57:46 bicatali Exp $ |
59 |
+ |
60 |
+*matplotlib-0.98.5.2-r1 (15 Jan 2009) |
61 |
+ |
62 |
+ 15 Jan 2009; Sébastien Fabbro <bicatali@g.o> |
63 |
+ -matplotlib-0.98.3.ebuild, matplotlib-0.98.5.2.ebuild, |
64 |
+ +matplotlib-0.98.5.2-r1.ebuild: |
65 |
+ Reorganized dependencies. Added enthought traits support, removed bundled |
66 |
+ pyparsing, pycxx (bug #252947) and fonts. Temporary mirror restricting |
67 |
+ since upstream has changed source (bug #252578) |
68 |
|
69 |
23 Dec 2008; Sébastien Fabbro <bicatali@g.o> |
70 |
matplotlib-0.98.5.2.ebuild: |
71 |
|
72 |
|
73 |
|
74 |
1.3 dev-python/matplotlib/matplotlib-0.98.5.2.ebuild |
75 |
|
76 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/matplotlib/matplotlib-0.98.5.2.ebuild?rev=1.3&view=markup |
77 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/matplotlib/matplotlib-0.98.5.2.ebuild?rev=1.3&content-type=text/plain |
78 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/matplotlib/matplotlib-0.98.5.2.ebuild?r1=1.2&r2=1.3 |
79 |
|
80 |
Index: matplotlib-0.98.5.2.ebuild |
81 |
=================================================================== |
82 |
RCS file: /var/cvsroot/gentoo-x86/dev-python/matplotlib/matplotlib-0.98.5.2.ebuild,v |
83 |
retrieving revision 1.2 |
84 |
retrieving revision 1.3 |
85 |
diff -u -r1.2 -r1.3 |
86 |
--- matplotlib-0.98.5.2.ebuild 23 Dec 2008 11:41:41 -0000 1.2 |
87 |
+++ matplotlib-0.98.5.2.ebuild 15 Jan 2009 09:57:46 -0000 1.3 |
88 |
@@ -1,6 +1,6 @@ |
89 |
-# Copyright 1999-2008 Gentoo Foundation |
90 |
+# Copyright 1999-2009 Gentoo Foundation |
91 |
# Distributed under the terms of the GNU General Public License v2 |
92 |
-# $Header: /var/cvsroot/gentoo-x86/dev-python/matplotlib/matplotlib-0.98.5.2.ebuild,v 1.2 2008/12/23 11:41:41 bicatali Exp $ |
93 |
+# $Header: /var/cvsroot/gentoo-x86/dev-python/matplotlib/matplotlib-0.98.5.2.ebuild,v 1.3 2009/01/15 09:57:46 bicatali Exp $ |
94 |
|
95 |
WX_GTK_VER=2.8 |
96 |
EAPI=2 |
97 |
@@ -39,7 +39,7 @@ |
98 |
qt4? ( dev-python/PyQt4 )" |
99 |
|
100 |
DOCS="INTERACTIVE" |
101 |
- |
102 |
+RESTRICT="mirror" |
103 |
use_setup() { |
104 |
local uword="${2}" |
105 |
[ -z "${2}" ] && uword="${1}" |
106 |
|
107 |
|
108 |
|
109 |
1.1 dev-python/matplotlib/matplotlib-0.98.5.2-r1.ebuild |
110 |
|
111 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/matplotlib/matplotlib-0.98.5.2-r1.ebuild?rev=1.1&view=markup |
112 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/matplotlib/matplotlib-0.98.5.2-r1.ebuild?rev=1.1&content-type=text/plain |
113 |
|
114 |
Index: matplotlib-0.98.5.2-r1.ebuild |
115 |
=================================================================== |
116 |
# Copyright 1999-2009 Gentoo Foundation |
117 |
# Distributed under the terms of the GNU General Public License v2 |
118 |
# $Header: /var/cvsroot/gentoo-x86/dev-python/matplotlib/matplotlib-0.98.5.2-r1.ebuild,v 1.1 2009/01/15 09:57:46 bicatali Exp $ |
119 |
|
120 |
WX_GTK_VER=2.8 |
121 |
EAPI=2 |
122 |
inherit distutils wxwidgets |
123 |
|
124 |
PDOC="users_guide_${PV}" |
125 |
|
126 |
DESCRIPTION="Pure python plotting library with matlab like syntax" |
127 |
HOMEPAGE="http://matplotlib.sourceforge.net/" |
128 |
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz |
129 |
doc? ( http://matplotlib.sourceforge.net/Matplotlib.pdf -> ${PDOC}.pdf )" |
130 |
|
131 |
IUSE="cairo doc excel examples fltk gtk latex qt3 qt4 traits tk wxwindows" |
132 |
SLOT="0" |
133 |
KEYWORDS="~amd64 ~x86" |
134 |
LICENSE="PYTHON BSD" |
135 |
|
136 |
CDEPEND=">=dev-python/numpy-1.1 |
137 |
dev-python/python-dateutil |
138 |
dev-python/pytz |
139 |
media-libs/freetype:2 |
140 |
media-libs/libpng |
141 |
gtk? ( dev-python/pygtk ) |
142 |
tk? ( dev-lang/python[tk] ) |
143 |
wxwindows? ( dev-python/wxpython:2.8 )" |
144 |
|
145 |
DEPEND="${CDEPEND} |
146 |
dev-python/pycxx |
147 |
dev-util/pkgconfig" |
148 |
|
149 |
RDEPEND="${CDEPEND} |
150 |
dev-python/pyparsing |
151 |
|| ( media-fonts/dejavu media-fonts/ttf-bitstream-vera ) |
152 |
cairo? ( dev-python/pycairo ) |
153 |
excel? ( dev-python/xlwt ) |
154 |
fltk? ( dev-python/pyfltk ) |
155 |
qt3? ( dev-python/PyQt ) |
156 |
qt4? ( dev-python/PyQt4 ) |
157 |
traits? ( dev-python/traits dev-python/configobj ) |
158 |
latex? ( |
159 |
virtual/latex-base |
160 |
virtual/ghostscript |
161 |
app-text/dvipng |
162 |
app-text/poppler |
163 |
media-fonts/stix-fonts |
164 |
|| ( dev-texlive/texlive-fontsrecommended |
165 |
app-text/tetex |
166 |
app-text/ptex ) )" |
167 |
|
168 |
RESTRICT=mirror |
169 |
DOCS="INTERACTIVE" |
170 |
|
171 |
use_setup() { |
172 |
local uword="${2}" |
173 |
[ -z "${2}" ] && uword="${1}" |
174 |
if use ${1}; then |
175 |
echo "${uword} = True" |
176 |
echo "${uword}agg = True" |
177 |
else |
178 |
echo "${uword} = False" |
179 |
echo "${uword}agg = False" |
180 |
fi |
181 |
} |
182 |
|
183 |
src_prepare() { |
184 |
# create setup.cfg (see setup.cfg.template for any changes) |
185 |
cat > setup.cfg <<-EOF |
186 |
[provide_packages] |
187 |
pytz = False |
188 |
dateutil = False |
189 |
configobj = False |
190 |
enthought.traits = False |
191 |
[gui_support] |
192 |
$(use_setup gtk) |
193 |
$(use_setup tk) |
194 |
$(use_setup wxwindows wx) |
195 |
$(use_setup qt3 qt) |
196 |
$(use_setup qt4) |
197 |
$(use_setup fltk) |
198 |
$(use_setup cairo) |
199 |
EOF |
200 |
|
201 |
# avoid checks needing a X display |
202 |
sed -i \ |
203 |
-e "s/check_for_gtk()/$(use gtk && echo True || echo False)/" \ |
204 |
-e "s/check_for_tk()/$(use tk && echo True || echo False)/" \ |
205 |
setup.py || die "sed setup.py failed" |
206 |
|
207 |
# respect FHS: |
208 |
# - mpl-data in /usr/share/matplotlib |
209 |
# - config files in /etc/matplotlib |
210 |
sed -i \ |
211 |
-e "/'mpl-data\/matplotlibrc',/d" \ |
212 |
-e "/'mpl-data\/matplotlib.conf',/d" \ |
213 |
-e "s:'lib/matplotlib/mpl-data/matplotlibrc':'matplotlibrc':" \ |
214 |
-e "s:'lib/matplotlib/mpl-data/matplotlib.conf':'matplotlib.conf':" \ |
215 |
setup.py \ |
216 |
|| die "sed setup.py for FHS failed" |
217 |
|
218 |
sed -i \ |
219 |
-e "s:path = get_data_path():path = '/etc/matplotlib':" \ |
220 |
-e "s:os.path.dirname(__file__):'/usr/share/${PN}':g" \ |
221 |
lib/matplotlib/{__init__,config/cutils}.py \ |
222 |
|| die "sed init for FHS failed" |
223 |
|
224 |
# remove internal copies of fonts, pycxx, pyparsing |
225 |
rm -rf \ |
226 |
CXX \ |
227 |
lib/matplotlib/mpl-data/fonts \ |
228 |
lib/matplotlib/pyparsing.py \ |
229 |
|| die "removed internal copies failed" |
230 |
ln -s /usr/share/python*/CXX . || die |
231 |
sed -i \ |
232 |
-e 's/matplotlib.pyparsing/pyparsing/g' \ |
233 |
lib/matplotlib/*.py || die "sed for pyparsing failed" |
234 |
} |
235 |
|
236 |
src_install() { |
237 |
distutils_src_install |
238 |
|
239 |
# respect FHS |
240 |
dodir /usr/share/${PN} |
241 |
mv "${D}"/usr/*/*/site-packages/${PN}/{mpl-data,backends/Matplotlib.nib} \ |
242 |
"${D}"/usr/share/${PN} || die "failed renaming" |
243 |
insinto /etc/matplotlib |
244 |
doins matplotlibrc matplotlib.conf \ |
245 |
|| die "installing config files failed" |
246 |
|
247 |
# doc and examples |
248 |
insinto /usr/share/doc/${PF} |
249 |
if use doc; then |
250 |
doins "${DISTDIR}"/${PDOC}.pdf || die |
251 |
fi |
252 |
if use examples; then |
253 |
doins -r examples || die |
254 |
fi |
255 |
} |