Gentoo Archives: gentoo-commits

From: "Sebastien Fabbro (bicatali)" <bicatali@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/matplotlib: matplotlib-1.1.1.ebuild ChangeLog
Date: Wed, 01 Aug 2012 19:18:00
Message-Id: 20120801191740.587B22004B@flycatcher.gentoo.org
1 bicatali 12/08/01 19:17:40
2
3 Modified: ChangeLog
4 Added: matplotlib-1.1.1.ebuild
5 Log:
6 Version bump. Keep bundling of pycxx because it is patched, and some fonts to ease maintenance and portability
7
8 (Portage version: 2.2.0_alpha120/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.124 dev-python/matplotlib/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/matplotlib/ChangeLog?rev=1.124&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/matplotlib/ChangeLog?rev=1.124&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/matplotlib/ChangeLog?r1=1.123&r2=1.124
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-python/matplotlib/ChangeLog,v
20 retrieving revision 1.123
21 retrieving revision 1.124
22 diff -u -r1.123 -r1.124
23 --- ChangeLog 4 May 2012 15:12:16 -0000 1.123
24 +++ ChangeLog 1 Aug 2012 19:17:40 -0000 1.124
25 @@ -1,6 +1,13 @@
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.123 2012/05/04 15:12:16 patrick Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-python/matplotlib/ChangeLog,v 1.124 2012/08/01 19:17:40 bicatali Exp $
30 +
31 +*matplotlib-1.1.1 (01 Aug 2012)
32 +
33 + 01 Aug 2012; Sébastien Fabbro <bicatali@g.o>
34 + +files/matplotlib-1.1.1-ft-refcount.patch, +matplotlib-1.1.1.ebuild:
35 + Version bump. Keep bundling of pycxx because it is patched, and some fonts to
36 + ease maintenance and portability
37
38 04 May 2012; Patrick Lauer <patrick@g.o> matplotlib-1.0.1-r1.ebuild,
39 matplotlib-1.1.0.ebuild:
40 @@ -612,4 +619,3 @@
41 05 Dec 2004; Bryan Østergaard <kloeri@g.o> :
42 Initial import, ebuild by Fernando A. Serboncini <fserb@×××××××××.br> in bug
43 32895.
44 -
45
46
47
48 1.1 dev-python/matplotlib/matplotlib-1.1.1.ebuild
49
50 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/matplotlib/matplotlib-1.1.1.ebuild?rev=1.1&view=markup
51 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/matplotlib/matplotlib-1.1.1.ebuild?rev=1.1&content-type=text/plain
52
53 Index: matplotlib-1.1.1.ebuild
54 ===================================================================
55 # Copyright 1999-2012 Gentoo Foundation
56 # Distributed under the terms of the GNU General Public License v2
57 # $Header: /var/cvsroot/gentoo-x86/dev-python/matplotlib/matplotlib-1.1.1.ebuild,v 1.1 2012/08/01 19:17:40 bicatali Exp $
58
59 EAPI="3"
60
61 # python eclass bloat
62 PYTHON_DEPEND="2"
63 PYTHON_USE_WITH="tk"
64 PYTHON_USE_WITH_OPT="tk"
65 SUPPORT_PYTHON_ABIS="1"
66 RESTRICT_PYTHON_ABIS="3* *-jython 2.7-pypy-*"
67 PYTHON_CFLAGS=("2.* + -fno-strict-aliasing")
68 PYTHON_CXXFLAGS=("2.* + -fno-strict-aliasing")
69 PYTHON_MODNAME="matplotlib mpl_toolkits pylab.py"
70
71 WX_GTK_VER="2.8"
72
73 inherit distutils eutils
74
75 DESCRIPTION="Pure python plotting library with matlab like syntax"
76 HOMEPAGE="http://matplotlib.sourceforge.net/ http://pypi.python.org/pypi/matplotlib"
77 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
78
79 IUSE="cairo doc excel examples fltk gtk latex qt4 test tk wxwidgets"
80 SLOT="0"
81 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~ppc-macos ~x64-macos ~x86-freebsd ~x86-linux ~x86-macos"
82
83 # Main license: matplotlib
84 # Some modules: BSD
85 # matplotlib/backends/qt4_editor: MIT
86 # Fonts: BitstreamVera, OFL-1.1
87 LICENSE="BitstreamVera BSD matplotlib MIT OFL-1.1"
88
89 CDEPEND="dev-python/numpy
90 dev-python/python-dateutil
91 dev-python/pytz
92 media-libs/freetype:2
93 media-libs/libpng
94 gtk? ( dev-python/pygtk )
95 wxwidgets? ( dev-python/wxpython:2.8 )"
96
97 # internal copy of pycxx highly patched
98 # dev-python/pycxx
99
100 DEPEND="${CDEPEND}
101 virtual/pkgconfig
102 doc? (
103 app-text/dvipng
104 dev-python/imaging
105 dev-python/ipython
106 dev-python/xlwt
107 dev-python/sphinx
108 dev-texlive/texlive-latexextra
109 dev-texlive/texlive-fontsrecommended
110 dev-texlive/texlive-latexrecommended
111 media-gfx/graphviz[cairo]
112 )
113 test? ( dev-python/nose )"
114
115 RDEPEND="${CDEPEND}
116 dev-python/pyparsing
117 cairo? ( dev-python/pycairo )
118 excel? ( dev-python/xlwt )
119 fltk? ( dev-python/pyfltk )
120 latex? (
121 virtual/latex-base
122 app-text/ghostscript-gpl
123 app-text/dvipng
124 app-text/poppler[utils]
125 dev-texlive/texlive-fontsrecommended
126 )
127 qt4? ( || ( dev-python/PyQt4[X] dev-python/pyside[X] ) )"
128
129
130 use_setup() {
131 local uword="${2:-${1}}"
132 if use ${1}; then
133 echo "${uword} = True"
134 echo "${uword}agg = True"
135 else
136 echo "${uword} = False"
137 echo "${uword}agg = False"
138 fi
139 }
140
141 src_prepare() {
142 epatch "${FILESDIR}"/${P}-ft-refcount.patch
143 # create setup.cfg (see setup.cfg.template for any changes)
144 cat > setup.cfg <<-EOF
145 [provide_packages]
146 pytz = False
147 dateutil = False
148 [gui_support]
149 $(use_setup cairo)
150 $(use_setup fltk)
151 $(use_setup gtk)
152 $(use_setup qt4)
153 $(use_setup tk)
154 $(use_setup wxwidgets wx)
155 EOF
156
157 # avoid checks needing a X display
158 sed -i \
159 -e "s/check_for_gtk()/$(use gtk && echo True || echo False)/" \
160 -e "s/check_for_tk()/$(use tk && echo True || echo False)/" \
161 setup.py || die "sed setup.py failed"
162
163 # remove internal copies of pyparsing
164 rm lib/matplotlib/pyparsing.py || die
165 sed -i \
166 -e 's/matplotlib.pyparsing/pyparsing/g' \
167 lib/matplotlib/{mathtext,fontconfig_pattern}.py \
168 || die "sed pyparsing failed"
169 distutils_src_prepare
170 }
171
172 src_compile() {
173 unset DISPLAY # bug #278524
174 distutils_src_compile
175 if use doc; then
176 cd "${S}/doc"
177 VARTEXFONTS="${T}"/fonts \
178 PYTHONPATH=$(ls -d "${S}"/build-$(PYTHON -f --ABI)/lib*) \
179 ./make.py --small all
180 [[ -e build/latex/Matplotlib.pdf ]] || die "doc generation failed"
181 fi
182 }
183
184 src_test() {
185 # if doc was enabled, all examples were built and tested
186 use doc && return
187 testing() {
188 "$(PYTHON)" setup.py build -b "build-${PYTHON_ABI}" install \
189 --home="${S}/test-${PYTHON_ABI}" --no-compile \
190 || die "install test failed"
191 pushd "${S}/test-${PYTHON_ABI}/"lib* > /dev/null
192 PYTHONPATH=python \
193 "$(PYTHON)" -c "import matplotlib as m; m.test(verbosity=2)" \
194 2>&1 | tee test.log
195 grep -Eq "^(ERROR|FAIL):" test.log && return 1
196 popd > /dev/null
197 rm -r test-${PYTHON_ABI}
198 }
199 python_execute_function testing
200 }
201
202 src_install() {
203 distutils_src_install
204 if use doc; then
205 insinto /usr/share/doc/${PF}
206 doins -r doc/build/latex/Matplotlib.pdf doc/build/html || die
207 fi
208 if use examples; then
209 insinto /usr/share/doc/${PF}
210 doins -r examples || die
211 fi
212 }