1 |
patrick 09/01/25 16:01:56 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: matplotlib-0.98.5.2-r2.ebuild |
5 |
Log: |
6 |
Fixing pyparsing dep, closes #256256 |
7 |
(Portage version: 2.2_rc23/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.58 dev-python/matplotlib/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/matplotlib/ChangeLog?rev=1.58&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/matplotlib/ChangeLog?rev=1.58&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/matplotlib/ChangeLog?r1=1.57&r2=1.58 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/dev-python/matplotlib/ChangeLog,v |
19 |
retrieving revision 1.57 |
20 |
retrieving revision 1.58 |
21 |
diff -u -r1.57 -r1.58 |
22 |
--- ChangeLog 21 Jan 2009 09:32:07 -0000 1.57 |
23 |
+++ ChangeLog 25 Jan 2009 16:01:56 -0000 1.58 |
24 |
@@ -1,6 +1,12 @@ |
25 |
# ChangeLog for dev-python/matplotlib |
26 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/dev-python/matplotlib/ChangeLog,v 1.57 2009/01/21 09:32:07 bicatali Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/dev-python/matplotlib/ChangeLog,v 1.58 2009/01/25 16:01:56 patrick Exp $ |
29 |
+ |
30 |
+*matplotlib-0.98.5.2-r2 (25 Jan 2009) |
31 |
+ |
32 |
+ 25 Jan 2009; Patrick Lauer <patrick@g.o> |
33 |
+ +matplotlib-0.98.5.2-r2.ebuild: |
34 |
+ Fixing pyparsing dep, closes #256256 |
35 |
|
36 |
21 Jan 2009; Sébastien Fabbro <bicatali@g.o> |
37 |
matplotlib-0.98.5.2.ebuild, matplotlib-0.98.5.2-r1.ebuild: |
38 |
|
39 |
|
40 |
|
41 |
1.1 dev-python/matplotlib/matplotlib-0.98.5.2-r2.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/matplotlib/matplotlib-0.98.5.2-r2.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/matplotlib/matplotlib-0.98.5.2-r2.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: matplotlib-0.98.5.2-r2.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2009 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/dev-python/matplotlib/matplotlib-0.98.5.2-r2.ebuild,v 1.1 2009/01/25 16:01:56 patrick Exp $ |
51 |
|
52 |
WX_GTK_VER=2.8 |
53 |
EAPI=2 |
54 |
inherit distutils wxwidgets |
55 |
|
56 |
PDOC="users_guide_${PV}" |
57 |
|
58 |
DESCRIPTION="Pure python plotting library with matlab like syntax" |
59 |
HOMEPAGE="http://matplotlib.sourceforge.net/" |
60 |
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz |
61 |
doc? ( http://matplotlib.sourceforge.net/Matplotlib.pdf -> ${PDOC}.pdf )" |
62 |
|
63 |
IUSE="cairo doc excel examples fltk gtk latex qt3 qt4 traits tk wxwindows" |
64 |
SLOT="0" |
65 |
KEYWORDS="~amd64 ~x86" |
66 |
LICENSE="PYTHON BSD" |
67 |
|
68 |
CDEPEND=">=dev-python/numpy-1.1 |
69 |
dev-python/python-dateutil |
70 |
dev-python/pytz |
71 |
media-libs/freetype:2 |
72 |
media-libs/libpng |
73 |
gtk? ( dev-python/pygtk ) |
74 |
tk? ( dev-lang/python[tk] ) |
75 |
wxwindows? ( dev-python/wxpython:2.8 )" |
76 |
|
77 |
DEPEND="${CDEPEND} |
78 |
dev-python/pycxx |
79 |
dev-util/pkgconfig" |
80 |
|
81 |
RDEPEND="${CDEPEND} |
82 |
>=dev-python/pyparsing-1.5.1 |
83 |
|| ( media-fonts/dejavu media-fonts/ttf-bitstream-vera ) |
84 |
cairo? ( dev-python/pycairo ) |
85 |
excel? ( dev-python/xlwt ) |
86 |
fltk? ( dev-python/pyfltk ) |
87 |
qt3? ( dev-python/PyQt ) |
88 |
qt4? ( dev-python/PyQt4 ) |
89 |
traits? ( dev-python/traits dev-python/configobj ) |
90 |
latex? ( |
91 |
virtual/latex-base |
92 |
virtual/ghostscript |
93 |
app-text/dvipng |
94 |
app-text/poppler |
95 |
media-fonts/stix-fonts |
96 |
|| ( dev-texlive/texlive-fontsrecommended |
97 |
app-text/tetex |
98 |
app-text/ptex ) )" |
99 |
|
100 |
DOCS="INTERACTIVE" |
101 |
|
102 |
use_setup() { |
103 |
local uword="${2}" |
104 |
[ -z "${2}" ] && uword="${1}" |
105 |
if use ${1}; then |
106 |
echo "${uword} = True" |
107 |
echo "${uword}agg = True" |
108 |
else |
109 |
echo "${uword} = False" |
110 |
echo "${uword}agg = False" |
111 |
fi |
112 |
} |
113 |
|
114 |
src_prepare() { |
115 |
# create setup.cfg (see setup.cfg.template for any changes) |
116 |
cat > setup.cfg <<-EOF |
117 |
[provide_packages] |
118 |
pytz = False |
119 |
dateutil = False |
120 |
configobj = False |
121 |
enthought.traits = False |
122 |
[gui_support] |
123 |
$(use_setup gtk) |
124 |
$(use_setup tk) |
125 |
$(use_setup wxwindows wx) |
126 |
$(use_setup qt3 qt) |
127 |
$(use_setup qt4) |
128 |
$(use_setup fltk) |
129 |
$(use_setup cairo) |
130 |
EOF |
131 |
|
132 |
# avoid checks needing a X display |
133 |
sed -i \ |
134 |
-e "s/check_for_gtk()/$(use gtk && echo True || echo False)/" \ |
135 |
-e "s/check_for_tk()/$(use tk && echo True || echo False)/" \ |
136 |
setup.py || die "sed setup.py failed" |
137 |
|
138 |
# respect FHS: |
139 |
# - mpl-data in /usr/share/matplotlib |
140 |
# - config files in /etc/matplotlib |
141 |
sed -i \ |
142 |
-e "/'mpl-data\/matplotlibrc',/d" \ |
143 |
-e "/'mpl-data\/matplotlib.conf',/d" \ |
144 |
-e "s:'lib/matplotlib/mpl-data/matplotlibrc':'matplotlibrc':" \ |
145 |
-e "s:'lib/matplotlib/mpl-data/matplotlib.conf':'matplotlib.conf':" \ |
146 |
setup.py \ |
147 |
|| die "sed setup.py for FHS failed" |
148 |
|
149 |
sed -i \ |
150 |
-e "s:path = get_data_path():path = '/etc/matplotlib':" \ |
151 |
-e "s:os.path.dirname(__file__):'/usr/share/${PN}':g" \ |
152 |
lib/matplotlib/{__init__,config/cutils}.py \ |
153 |
|| die "sed init for FHS failed" |
154 |
|
155 |
# remove internal copies of fonts, pycxx, pyparsing |
156 |
rm -rf \ |
157 |
CXX \ |
158 |
lib/matplotlib/mpl-data/fonts \ |
159 |
lib/matplotlib/pyparsing.py \ |
160 |
|| die "removed internal copies failed" |
161 |
ln -s /usr/share/python*/CXX . || die |
162 |
sed -i \ |
163 |
-e 's/matplotlib.pyparsing/pyparsing/g' \ |
164 |
lib/matplotlib/*.py || die "sed for pyparsing failed" |
165 |
} |
166 |
|
167 |
src_install() { |
168 |
distutils_src_install |
169 |
|
170 |
# respect FHS |
171 |
dodir /usr/share/${PN} |
172 |
mv "${D}"/usr/*/*/site-packages/${PN}/{mpl-data,backends/Matplotlib.nib} \ |
173 |
"${D}"/usr/share/${PN} || die "failed renaming" |
174 |
insinto /etc/matplotlib |
175 |
doins matplotlibrc matplotlib.conf \ |
176 |
|| die "installing config files failed" |
177 |
|
178 |
# doc and examples |
179 |
insinto /usr/share/doc/${PF} |
180 |
if use doc; then |
181 |
doins "${DISTDIR}"/${PDOC}.pdf || die |
182 |
fi |
183 |
if use examples; then |
184 |
doins -r examples || die |
185 |
fi |
186 |
} |