1 |
idella4 12/11/29 10:03:01 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: matplotlib-1.2.0.ebuild |
5 |
Log: |
6 |
bump to 1.2.0, test phase upgraded, new ft-refcount.patch from upstream, python3 support but for USE doc requiring special treatment, ack to users Nicolas Bigaouette and Rafal Muzylo for patches in entered in Bug #443836 |
7 |
|
8 |
(Portage version: 2.1.11.30/cvs/Linux x86_64, signed Manifest commit with key 0xB8072B0D) |
9 |
|
10 |
Revision Changes Path |
11 |
1.128 dev-python/matplotlib/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/matplotlib/ChangeLog?rev=1.128&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/matplotlib/ChangeLog?rev=1.128&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/matplotlib/ChangeLog?r1=1.127&r2=1.128 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-python/matplotlib/ChangeLog,v |
20 |
retrieving revision 1.127 |
21 |
retrieving revision 1.128 |
22 |
diff -u -r1.127 -r1.128 |
23 |
--- ChangeLog 26 Nov 2012 06:21:01 -0000 1.127 |
24 |
+++ ChangeLog 29 Nov 2012 10:03:01 -0000 1.128 |
25 |
@@ -1,6 +1,15 @@ |
26 |
# ChangeLog for dev-python/matplotlib |
27 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/dev-python/matplotlib/ChangeLog,v 1.127 2012/11/26 06:21:01 idella4 Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/dev-python/matplotlib/ChangeLog,v 1.128 2012/11/29 10:03:01 idella4 Exp $ |
30 |
+ |
31 |
+*matplotlib-1.2.0 (30 Nov 2012) |
32 |
+ |
33 |
+ 30 Nov 2012; Ian Delaney <idella4@g.o> |
34 |
+ +files/matplotlib-1.2.0-ft-refcount.patch, |
35 |
+ +files/matplotlib-1.2.0-setup.patch, +matplotlib-1.2.0.ebuild: |
36 |
+ bump to 1.2.0, test phase upgraded, new ft-refcount.patch from upstream, |
37 |
+ python3 support but for USE doc requiring special treatment, ack to users |
38 |
+ Nicolas Bigaouette and Rafal Muzylo for patches in entered in Bug #443836 |
39 |
|
40 |
26 Nov 2012; Ian Delaney <idella4@g.o> |
41 |
files/matplotlib-1.1.1-ft-refcount.patch, matplotlib-1.1.1.ebuild: |
42 |
|
43 |
|
44 |
|
45 |
1.1 dev-python/matplotlib/matplotlib-1.2.0.ebuild |
46 |
|
47 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/matplotlib/matplotlib-1.2.0.ebuild?rev=1.1&view=markup |
48 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/matplotlib/matplotlib-1.2.0.ebuild?rev=1.1&content-type=text/plain |
49 |
|
50 |
Index: matplotlib-1.2.0.ebuild |
51 |
=================================================================== |
52 |
# Copyright 1999-2012 Gentoo Foundation |
53 |
# Distributed under the terms of the GNU General Public License v2 |
54 |
# $Header: /var/cvsroot/gentoo-x86/dev-python/matplotlib/matplotlib-1.2.0.ebuild,v 1.1 2012/11/29 10:03:01 idella4 Exp $ |
55 |
|
56 |
EAPI="3" |
57 |
|
58 |
PYTHON_DEPEND="*:2.6" |
59 |
PYTHON_USE_WITH="tk" |
60 |
PYTHON_USE_WITH_OPT="tk" |
61 |
SUPPORT_PYTHON_ABIS="1" |
62 |
RESTRICT_PYTHON_ABIS="*-jython 2.7-pypy-*" |
63 |
PYTHON_TESTS_RESTRICTED_ABIS="2.[56] 3.1" |
64 |
PYTHON_CFLAGS=("2.* + -fno-strict-aliasing" "3.* + -fno-strict-aliasing") |
65 |
PYTHON_CXXFLAGS=("2.* + -fno-strict-aliasing" "3.* + -fno-strict-aliasing") |
66 |
PYTHON_MODNAME="matplotlib mpl_toolkits pylab.py" |
67 |
|
68 |
WX_GTK_VER="2.8" |
69 |
|
70 |
inherit distutils eutils |
71 |
|
72 |
DESCRIPTION="Pure python plotting library with matlab like syntax" |
73 |
HOMEPAGE="http://matplotlib.org/ http://pypi.python.org/pypi/matplotlib" |
74 |
SRC_URI="https://github.com/downloads/${PN}/${PN}/${P}.tar.gz" |
75 |
|
76 |
IUSE="cairo doc excel examples fltk gtk latex qt4 test tk wxwidgets" |
77 |
SLOT="0" |
78 |
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" |
79 |
|
80 |
# Main license: matplotlib |
81 |
# Some modules: BSD |
82 |
# matplotlib/backends/qt4_editor: MIT |
83 |
# Fonts: BitstreamVera, OFL-1.1 |
84 |
LICENSE="BitstreamVera BSD matplotlib MIT OFL-1.1" |
85 |
|
86 |
CDEPEND="dev-python/numpy |
87 |
dev-python/python-dateutil |
88 |
dev-python/pytz |
89 |
media-libs/freetype:2 |
90 |
media-libs/libpng |
91 |
gtk? ( dev-python/pygtk |
92 |
|| ( >=dev-lang/python-3.2 dev-python/pygtk:3 ) ) |
93 |
wxwidgets? ( dev-python/wxpython:2.8 )" |
94 |
|
95 |
# internal copy of pycxx highly patched |
96 |
# dev-python/pycxx |
97 |
|
98 |
DEPEND="${CDEPEND} |
99 |
virtual/pkgconfig |
100 |
doc? ( |
101 |
app-text/dvipng |
102 |
dev-python/imaging |
103 |
dev-python/ipython |
104 |
dev-python/xlwt |
105 |
dev-python/sphinx |
106 |
dev-texlive/texlive-latexextra |
107 |
dev-texlive/texlive-fontsrecommended |
108 |
dev-texlive/texlive-latexrecommended |
109 |
media-gfx/graphviz[cairo] |
110 |
) |
111 |
test? ( dev-python/nose )" |
112 |
|
113 |
RDEPEND="${CDEPEND} |
114 |
dev-python/pyparsing |
115 |
cairo? ( dev-python/pycairo ) |
116 |
excel? ( dev-python/xlwt ) |
117 |
fltk? ( dev-python/pyfltk ) |
118 |
latex? ( |
119 |
virtual/latex-base |
120 |
app-text/ghostscript-gpl |
121 |
app-text/dvipng |
122 |
app-text/poppler[utils] |
123 |
dev-texlive/texlive-fontsrecommended |
124 |
) |
125 |
qt4? ( || ( dev-python/PyQt4[X] dev-python/pyside[X] ) )" |
126 |
|
127 |
RESTRICT="mirror" |
128 |
|
129 |
use_setup() { |
130 |
local uword="${2:-${1}}" |
131 |
if use ${1}; then |
132 |
echo "${uword} = True" |
133 |
echo "${uword}agg = True" |
134 |
else |
135 |
echo "${uword} = False" |
136 |
echo "${uword}agg = False" |
137 |
fi |
138 |
} |
139 |
|
140 |
src_prepare() { |
141 |
# create setup.cfg (see setup.cfg.template for any changes) |
142 |
cat > setup.cfg <<-EOF |
143 |
[provide_packages] |
144 |
pytz = False |
145 |
dateutil = False |
146 |
six = False |
147 |
[gui_support] |
148 |
$(use_setup cairo) |
149 |
$(use_setup fltk) |
150 |
$(use_setup gtk) |
151 |
$(use_setup qt4) |
152 |
$(use_setup tk) |
153 |
$(use_setup wxwidgets wx) |
154 |
EOF |
155 |
|
156 |
# avoid checks needing a X display |
157 |
epatch "${FILESDIR}"/${P}-setup.patch |
158 |
|
159 |
# Fix test, issue no. 1532 |
160 |
epatch "${FILESDIR}"/${P}-ft-refcount.patch |
161 |
|
162 |
# remove internal copies of pyparsing |
163 |
rm lib/matplotlib/pyparsing{_py2,_py3}.py || die |
164 |
sed -i -e 's/matplotlib.pyparsing_py[23]/pyparsing/g' \ |
165 |
lib/matplotlib/{mathtext,fontconfig_pattern}.py \ |
166 |
|| die "sed pyparsing failed" |
167 |
|
168 |
DocCheck() { |
169 |
if [[ "$(python_get_version --major)" == '3' ]]; then |
170 |
eerror "" |
171 |
eerror "Building of docs with python3 currently **FAILS**" |
172 |
eerror "Docs can be built effectively with python2." |
173 |
eerror "Prepend USE_PYTHON=2.7 and recommence emerge " |
174 |
eerror "" |
175 |
die |
176 |
fi |
177 |
} |
178 |
python_execute_function DocCheck |
179 |
distutils_src_prepare |
180 |
} |
181 |
|
182 |
src_compile() { |
183 |
unset DISPLAY # bug #278524 |
184 |
distutils_src_compile |
185 |
if use doc; then |
186 |
pushd doc > /dev/null |
187 |
VARTEXFONTS="${T}"/fonts \ |
188 |
PYTHONPATH=$(ls -d "${S}"/build-$(PYTHON -f --ABI)/lib*) \ |
189 |
./make.py --small all |
190 |
[[ -e build/latex/Matplotlib.pdf ]] || die "doc generation failed" |
191 |
popd > /dev/null |
192 |
fi |
193 |
} |
194 |
|
195 |
src_test() { |
196 |
# if doc was enabled, all examples were built and tested |
197 |
use doc && return |
198 |
testing() { |
199 |
"$(PYTHON)" setup.py build -b "build-${PYTHON_ABI}" install \ |
200 |
--home="${S}/test-${PYTHON_ABI}" --no-compile \ |
201 |
|| die "install test failed" |
202 |
pushd "${S}/test-${PYTHON_ABI}/"lib* > /dev/null |
203 |
PYTHONPATH=python \ |
204 |
"$(PYTHON)" -c "import matplotlib as m; m.test(verbosity=2)" \ |
205 |
2>&1 | tee test.log |
206 |
grep -Eq "^(ERROR|FAIL):" test.log && return 1 |
207 |
popd > /dev/null |
208 |
rm -r test-${PYTHON_ABI} |
209 |
} |
210 |
python_execute_function testing |
211 |
} |
212 |
|
213 |
src_install() { |
214 |
distutils_src_install |
215 |
if use doc; then |
216 |
insinto /usr/share/doc/${PF} |
217 |
doins -r doc/build/latex/Matplotlib.pdf doc/build/html || die |
218 |
fi |
219 |
if use examples; then |
220 |
insinto /usr/share/doc/${PF} |
221 |
doins -r examples || die |
222 |
fi |
223 |
} |