summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Delaney <idella4@gentoo.org>2012-11-29 10:03:27 +0000
committerIan Delaney <idella4@gentoo.org>2012-11-29 10:03:27 +0000
commitdc425f62ba76a2aa0f9ffa93393d261dc7732ecd (patch)
tree02fb500c6a7db98f9271ed2782f3cfb5a09509e4 /dev-python/matplotlib
parentFix build failure with recent automake (bug #407683, thanks to Helmut Jarausc... (diff)
downloadhistorical-dc425f62ba76a2aa0f9ffa93393d261dc7732ecd.tar.gz
historical-dc425f62ba76a2aa0f9ffa93393d261dc7732ecd.tar.bz2
historical-dc425f62ba76a2aa0f9ffa93393d261dc7732ecd.zip
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
Package-Manager: portage-2.1.11.30/cvs/Linux x86_64 Manifest-Sign-Key: 0xB8072B0D
Diffstat (limited to 'dev-python/matplotlib')
-rw-r--r--dev-python/matplotlib/ChangeLog11
-rw-r--r--dev-python/matplotlib/Manifest12
-rw-r--r--dev-python/matplotlib/files/matplotlib-1.2.0-ft-refcount.patch41
-rw-r--r--dev-python/matplotlib/files/matplotlib-1.2.0-setup.patch25
-rw-r--r--dev-python/matplotlib/matplotlib-1.2.0.ebuild172
5 files changed, 256 insertions, 5 deletions
diff --git a/dev-python/matplotlib/ChangeLog b/dev-python/matplotlib/ChangeLog
index 15c6839d769e..57a80dab33a0 100644
--- a/dev-python/matplotlib/ChangeLog
+++ b/dev-python/matplotlib/ChangeLog
@@ -1,6 +1,15 @@
# ChangeLog for dev-python/matplotlib
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/matplotlib/ChangeLog,v 1.127 2012/11/26 06:21:01 idella4 Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/matplotlib/ChangeLog,v 1.128 2012/11/29 10:03:01 idella4 Exp $
+
+*matplotlib-1.2.0 (30 Nov 2012)
+
+ 30 Nov 2012; Ian Delaney <idella4@gentoo.org>
+ +files/matplotlib-1.2.0-ft-refcount.patch,
+ +files/matplotlib-1.2.0-setup.patch, +matplotlib-1.2.0.ebuild:
+ 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
26 Nov 2012; Ian Delaney <idella4@gentoo.org>
files/matplotlib-1.1.1-ft-refcount.patch, matplotlib-1.1.1.ebuild:
diff --git a/dev-python/matplotlib/Manifest b/dev-python/matplotlib/Manifest
index 58107ca90a49..cd341970f495 100644
--- a/dev-python/matplotlib/Manifest
+++ b/dev-python/matplotlib/Manifest
@@ -5,20 +5,24 @@ AUX matplotlib-1.0.1-libpng15.patch 2393 SHA256 fd6721b37b6de66b5d11804137a7040a
AUX matplotlib-1.0.1-linux3.patch 985 SHA256 2487d4b599a0b52ebccdc79a30365aa4ad56a2cb5fd8d5d3f8cfb167780bb380 SHA512 d4cb8152c5383434730b5145df8f2e845ff85e7ce22e64034d2c721ca38d8293fb3be3d7d94b555e97c6b3027003928ddfd62075f58baaedc055a3100ec32d8a WHIRLPOOL 3a0b689e630bd5bc0542b67afa341fdfa5890d73b966cfe40f100c3fbb17d400886f98d23140af9789296b7b58cbb4d279af4371169df8ddeaf8aa16ff070e66
AUX matplotlib-1.0.1-sphinx.patch 3441 SHA256 4396ca43e125a08cc113d8cf0fc5fe57fac063b3c1d0da6b66e8d60ca9d19345 SHA512 044d0087eab9138067a4ad7a3b25f67d70c143ea7910df2708ba8540985280e6fcbb33e9f27ef79457f7965ba5d3bf62a00827c2e225e2c3edc912d4abf8454a WHIRLPOOL b91291da20ee1b78b7a834daf25519b39f0ab988a4301a0329bea933eb0779bf4d44a9d41ad0c795ebeba027fbb9bddd61e8407a7601725b457667023a92ad86
AUX matplotlib-1.1.1-ft-refcount.patch 1849 SHA256 4368439bce9f956ffad3cf4551103e077e433761a2d20976d9d45c2b3a84838a SHA512 6e596e7c0d2d37b4d878d36c42f33272f22ba0c25e80b8038b08ec3793d15d3d2ff88c4777fd12d36fd277374d1a1fc78424f1e6c7ccabc29230e8205cdf4d06 WHIRLPOOL 435527651c7eb3e1cf1ae5d66d8e09783564e4a53bb6aa84f7c65467a04f615ea4285c428074b97c87455f09789ffe9937436c324231379e720ec28f9ce30306
+AUX matplotlib-1.2.0-ft-refcount.patch 1474 SHA256 53ac19eb195afc55173aee7617ebf2b7ca44e93943ee3713e9e62a1d959828b1 SHA512 9195c3046c6d2673d748f1864bfcf3fb6851260cd94f05ebf5241089d4c3b17af6f0dfc52875aa914d51ef79512ba686cc040958e2b4d6892a6a11a19c35b162 WHIRLPOOL ec1303427385fc697edff451576a7d5261a39e8134807be1a8a257077296d5171adf870826e8a0c96313c014e7f698cbed8c21a67a887d4479e33402842e07ea
+AUX matplotlib-1.2.0-setup.patch 940 SHA256 7dcd876ccf4c6290b060a62fd5e522f599f329b4fb63ea4af191377757cab488 SHA512 1a6b6be92902553b7b1418546b0075ae60d328fc1e99150b4a38255b60d0bd96304d7cae31475c72c12d5d1845ed2140437e167c6808645684c2a7624da2816e WHIRLPOOL 6966bdbba2dd9a93183281b6b61d1ec5d9134548d87b739db412f2b440601c8631c69cd4feee7e8687026fe3f8d18ddf0b2e16d641471b2172029dfc192753a3
DIST matplotlib-1.0.1.tar.gz 13285166 SHA256 83bc6377373b3f34b18eac1883c27f3f381f5c9b9c422b4d85c91e217a947af6 SHA512 20f8987be1cabbb2c10a8f4e34884f7bb5132c923ffe0217e6c847017975112dd6818e725772ebcd04cdfca6a8957ae9d52c116890115b2128f91364b6206331 WHIRLPOOL bcfab3944c0cdb604e90e1639e8a6fc0509557b25dd3fe1c48060fdc464c974b9ab8ac080552809903641b9b512c3cacbdfc79dbb28700def732b06cde6cec3e
DIST matplotlib-1.1.0.tar.gz 35842643 SHA256 be37e1d86c65ecacae6683f8805e051e9904e5f2e02bf2b7a34262c46a6d06a7 SHA512 f5ab95c29ef6958096970265a6079f0eb8c43a500924346c4a6c6eb89d9110eeeb6c34a53715e71240e82ded2b76a7b8d5a9b05a07baa000b2926718264ad8ff WHIRLPOOL 1d3c7f0bd8662a0581fc0ba2f1f526933a1e4e0ad17341101ed3ad1efcd9bfb182b876b3bc03d4992cf064d1b17cbea9b6eedf610000c25261a03b5748e23612
DIST matplotlib-1.1.1.tar.gz 33704843 SHA256 63b275eb8d98903264557ffbd6ec0fee2c31b5badb3678fce1ac7044594620ab SHA512 838977c1f57f9cfd10a3cd8935a5640bca25135b2176cb83286f309d57690cca7d6ec78c552c04067b3ded10f0358b92bb2387c018ecdb38ac30f661c4a67588 WHIRLPOOL d0fcc5a7f4d54c12a5b227b78b3977bb6822a61cf50f17d057458dab616ca293201d78e3ec5f1cb8722ee8a262ae2a252cb967a6bf24f7803841fb24831c4a96
+DIST matplotlib-1.2.0.tar.gz 36893347 SHA256 48fdb3b8f27010bc81ccf3925032768d499f82be979d9b6edccc4e2cced4dcaf SHA512 5b1a0fb52dcb21ca5f0ab71c8a49550e1e8cf633552ec6598dc43f0b32c03422bf5af65b30118c163231ecdddfd40846909336f16da318959106076e80a3fad0 WHIRLPOOL 586001ebb8e03bba9c83d30cc875db564d8c7091e086e343a8221123f2ccb3252110a3e2962045ba3a7bddc0b1362fba375f3138f8ae50dcc25338f60c8bf4a0
DIST matplotlib-sampledata.tar.bz2 1013421 SHA256 0a9d45f1e5f31bee1e6efeb453775153d0553b721971830d6c1657a8d9640a3e SHA512 2ca518bdd3a053f0119199c80120cd348ae8d4fdaf5ce6f09606229a6644d0ce9d0cddf13cb0021179b211439f3cbb42db51a802497be2c8ac3482e042c5c99c WHIRLPOOL 581828e041982dbc6162256849b10fa8b4139e6aa7e88a29461147702f00ec5e3b86ac1f72f82a6255b8285fd5197cb794f46836ecd3e519ec1416c7853b8d94
DIST mpl_sampledata-1.1.0.tar.gz 874730 SHA256 eee173eaf9bd42bc57fb1bcff7044a184da85e6ea1262c1a7d1fdc2e303e78d8 SHA512 7dac7c8a653c11934db3e5a7782c9c444cc037a32fa378d2a65184c3b7ecd7db98f9469068670447359b7e98ac30341973643f267582df0206e183663def401b WHIRLPOOL ce5b2e05c7f9a400fbd276c229b7fb38a8ec5a3f6c4dcaad7f119520f666ce71bb903dadfa61a24e2e85efa2ade034fa95b65edd1e22d18ef7305ed9755ff9d8
EBUILD matplotlib-1.0.1-r1.ebuild 6295 SHA256 025a3e1c92f996c2c683c55e74eb35afae2b2a85eef03b2a74a53ad5d980925d SHA512 bd47e184f9d13acd8c640c9864230a059bc54d7412e0307bfa0e5f3d581da20c1a2aa6e17f157455afc59bd0444efc95e79530e7f8218b4af6ac2848d7afffe5 WHIRLPOOL 24c74e60cd82219b17de97ed68bb0358efc197f1c65702d561faeab282ffc01a8fd459065b2e824d99317e2a4ec2c37d179bff501028770504e777fa2c450e5b
EBUILD matplotlib-1.1.0.ebuild 6078 SHA256 5bf26982bcbf6dc1cce209e17632dec2b26ab268f915136598f8458d1f9a68fe SHA512 5b9e2692084fc6a800234e89c1e724863e4b2cfb5f1d50129789e5615cded4049b2f3aa623c28feb69c047c07a88a57cfe3634fbfa664e9010c47d46241c0be3 WHIRLPOOL f5bbea32a9b1287ea427bf21c2102be329daf87fc802c8dfb654a17d4b3567500d2f6b726426184944ea25fca5eda2977a9621e174fbbcdb9ba4c0005499132e
EBUILD matplotlib-1.1.1.ebuild 4199 SHA256 5970b48392a1fbc1256b600e39c55c4c79493fb30ff570187ba9f15872632045 SHA512 c867bdf15aec2ffe278b60c52eecbc810bfc9819bd514624ac4b726b841e7d039fade8b6195fa052cb32f87b724d1d56ab68a1dec0b559f878dec79a1e44bab0 WHIRLPOOL 451be3cd6782f0e9b2c64a51ca6a0b68b0159181268f52dce59d2e6a2ed5535e087dcf8830aceb91a815ee01bab09f20c366631926fe82bb45b89cd3ac206d9b
-MISC ChangeLog 23480 SHA256 5a5925cfd2b9eb7da3e75c56fe065a26876e35321796228999f8e4d329776af9 SHA512 67868b850260d5dcd912982bcb6a1781f3eff9483c025b7516298c04b716cfcd616076e75a9d1705613b1637f731b63a5de463e7510c465cc8198c5f0eb7d51e WHIRLPOOL 814f7948e733fee52d1bfb05364715911b147a3ce80aa0885fc57733d877caa78b40dab1377bcd0b05a5b9348af51f2f573bf959eec6d0bb7d240ac855a2bf01
+EBUILD matplotlib-1.2.0.ebuild 4505 SHA256 42c08952d75b5f68a8807fac7fdd97a82759f906719c8856466af95f738a97a9 SHA512 a2ed8038eba27e4d06d9062b0bb8b607a78cd689aa012778d1a6684b9e8c7b25494a10766df3c5e61c8eef453d545e300058b96450e6112af3f0dc88aae801d9 WHIRLPOOL cb751382bc7cb22cf1a1219a16ff5c90c96175d94fb3ff459124f69ca57a6898864622fa980a8b30c4892c36acce34d3b1325b47180d17cb0775fa29425dc3c4
+MISC ChangeLog 23900 SHA256 934588839f0174bca818aa720788e23ee8e0e60296f81a3e642111954e21760d SHA512 e8bb3f06a6a216578b5f36adcfeb952f6636f4ca08d90f98c5be54f3a52b3e7a01177d8b13ef431cdc5df54c5a500310780b1a8b4c5c8f23394fb3e682f8435c WHIRLPOOL 429b28c3cda13e0501531ba05731b4a75456fc8a2571d9832eeaeac4be3e186bba997c5a71073b23de54899facbda2e931dc1e2bf5b36a278ca0aa30cefd5df6
MISC metadata.xml 640 SHA256 6643fb3ec5019f58c1a7af76a25d791f1109c37929b3332ddbe1a2911f5de3b4 SHA512 8c53de2d65743b8bd37def8261aea4571db0eb3c72e79b968b5342619d75370de84e26f4808f7b6c069811a5a14c24add4e768a78cea9e0156125bfa2f7ccfb3 WHIRLPOOL 13996de565060c484b96f78396f6acfbd3e795722fc6344d02105b7bf1abfda705dd47c3ec227e68e8f4fbb798704779f18a5ff0a7f99e78a837461959b28b97
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
-iEYEAREIAAYFAlCz60YACgkQso7CE7gHKw08hwCfaHaguF56qbgZjfMXHYYg2ky9
-M+gAoIYwD9M7Xu+QqYHKqrlARc8Wfs4F
-=aEYy
+iEYEAREIAAYFAlC4E9AACgkQso7CE7gHKw0XtQCgnEGi0v4eVmjJeBtBkAppwUY6
+cvUAnjtTWemX8iANmXGc23BxS471qhnn
+=FOOB
-----END PGP SIGNATURE-----
diff --git a/dev-python/matplotlib/files/matplotlib-1.2.0-ft-refcount.patch b/dev-python/matplotlib/files/matplotlib-1.2.0-ft-refcount.patch
new file mode 100644
index 000000000000..822f3491427b
--- /dev/null
+++ b/dev-python/matplotlib/files/matplotlib-1.2.0-ft-refcount.patch
@@ -0,0 +1,41 @@
+Issue 532; https://github.com/mdboom/matplotlib/commit/81068e9967387ea69133277242a9804d646ea4ef
+diff -ur matplotlib-1.2.0.orig/src/ft2font.cpp matplotlib-1.2.0/src/ft2font.cpp
+--- src/ft2font.cpp 2012-10-31 08:11:14.000000000 +0800
++++ src/ft2font.cpp 2012-11-29 11:09:43.569808461 +0800
+@@ -852,28 +852,24 @@
+ {
+ std::ostringstream s;
+ s << "Could not load facefile " << facefile << "; Unknown_File_Format" << std::endl;
+- ob_refcnt--;
+ throw Py::RuntimeError(s.str());
+ }
+ else if (error == FT_Err_Cannot_Open_Resource)
+ {
+ std::ostringstream s;
+ s << "Could not open facefile " << facefile << "; Cannot_Open_Resource" << std::endl;
+- ob_refcnt--;
+ throw Py::RuntimeError(s.str());
+ }
+ else if (error == FT_Err_Invalid_File_Format)
+ {
+ std::ostringstream s;
+ s << "Could not open facefile " << facefile << "; Invalid_File_Format" << std::endl;
+- ob_refcnt--;
+ throw Py::RuntimeError(s.str());
+ }
+ else if (error)
+ {
+ std::ostringstream s;
+ s << "Could not open facefile " << facefile << "; freetype error code " << error << std::endl;
+- ob_refcnt--;
+ throw Py::RuntimeError(s.str());
+ }
+
+@@ -891,7 +887,6 @@
+ {
+ std::ostringstream s;
+ s << "Could not set the fontsize for facefile " << facefile << std::endl;
+- ob_refcnt--;
+ throw Py::RuntimeError(s.str());
+ }
+
diff --git a/dev-python/matplotlib/files/matplotlib-1.2.0-setup.patch b/dev-python/matplotlib/files/matplotlib-1.2.0-setup.patch
new file mode 100644
index 000000000000..ba4b77ca0999
--- /dev/null
+++ b/dev-python/matplotlib/files/matplotlib-1.2.0-setup.patch
@@ -0,0 +1,25 @@
+diff -ur matplotlib-1.2.0.orig/setup.py matplotlib-1.2.0/setup.py
+--- setup.py 2012-11-08 10:24:12.000000000 +0800
++++ setup.py 2012-11-25 06:55:27.531042898 +0800
+@@ -176,15 +176,12 @@
+ build_tkagg(ext_modules, packages)
+ rc['backend'] = 'TkAgg'
+
+-hasgtk = check_for_gtk()
+-if options['build_gtk']:
+- if hasgtk or (options['build_gtk'] is True):
+- build_gdk(ext_modules, packages)
+-if options['build_gtkagg']:
+- if hasgtk or (options['build_gtkagg'] is True):
+- options['build_agg'] = 1
+- build_gtkagg(ext_modules, packages)
+- rc['backend'] = 'GTKAgg'
++hasgtk = False if sys.version_info[0] >= 3 else True
++if hasgtk and (options['build_gtk'] is True):
++ build_gdk(ext_modules, packages)
++ options['build_agg'] = 1
++ build_gtkagg(ext_modules, packages)
++ rc['backend'] = 'GTKAgg'
+
+ if options['build_macosx']:
+ if check_for_macosx() or (options['build_macosx'] is True):
diff --git a/dev-python/matplotlib/matplotlib-1.2.0.ebuild b/dev-python/matplotlib/matplotlib-1.2.0.ebuild
new file mode 100644
index 000000000000..41974d703512
--- /dev/null
+++ b/dev-python/matplotlib/matplotlib-1.2.0.ebuild
@@ -0,0 +1,172 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/matplotlib/matplotlib-1.2.0.ebuild,v 1.1 2012/11/29 10:03:01 idella4 Exp $
+
+EAPI="3"
+
+PYTHON_DEPEND="*:2.6"
+PYTHON_USE_WITH="tk"
+PYTHON_USE_WITH_OPT="tk"
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="*-jython 2.7-pypy-*"
+PYTHON_TESTS_RESTRICTED_ABIS="2.[56] 3.1"
+PYTHON_CFLAGS=("2.* + -fno-strict-aliasing" "3.* + -fno-strict-aliasing")
+PYTHON_CXXFLAGS=("2.* + -fno-strict-aliasing" "3.* + -fno-strict-aliasing")
+PYTHON_MODNAME="matplotlib mpl_toolkits pylab.py"
+
+WX_GTK_VER="2.8"
+
+inherit distutils eutils
+
+DESCRIPTION="Pure python plotting library with matlab like syntax"
+HOMEPAGE="http://matplotlib.org/ http://pypi.python.org/pypi/matplotlib"
+SRC_URI="https://github.com/downloads/${PN}/${PN}/${P}.tar.gz"
+
+IUSE="cairo doc excel examples fltk gtk latex qt4 test tk wxwidgets"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
+
+# Main license: matplotlib
+# Some modules: BSD
+# matplotlib/backends/qt4_editor: MIT
+# Fonts: BitstreamVera, OFL-1.1
+LICENSE="BitstreamVera BSD matplotlib MIT OFL-1.1"
+
+CDEPEND="dev-python/numpy
+ dev-python/python-dateutil
+ dev-python/pytz
+ media-libs/freetype:2
+ media-libs/libpng
+ gtk? ( dev-python/pygtk
+ || ( >=dev-lang/python-3.2 dev-python/pygtk:3 ) )
+ wxwidgets? ( dev-python/wxpython:2.8 )"
+
+# internal copy of pycxx highly patched
+# dev-python/pycxx
+
+DEPEND="${CDEPEND}
+ virtual/pkgconfig
+ doc? (
+ app-text/dvipng
+ dev-python/imaging
+ dev-python/ipython
+ dev-python/xlwt
+ dev-python/sphinx
+ dev-texlive/texlive-latexextra
+ dev-texlive/texlive-fontsrecommended
+ dev-texlive/texlive-latexrecommended
+ media-gfx/graphviz[cairo]
+ )
+ test? ( dev-python/nose )"
+
+RDEPEND="${CDEPEND}
+ dev-python/pyparsing
+ cairo? ( dev-python/pycairo )
+ excel? ( dev-python/xlwt )
+ fltk? ( dev-python/pyfltk )
+ latex? (
+ virtual/latex-base
+ app-text/ghostscript-gpl
+ app-text/dvipng
+ app-text/poppler[utils]
+ dev-texlive/texlive-fontsrecommended
+ )
+ qt4? ( || ( dev-python/PyQt4[X] dev-python/pyside[X] ) )"
+
+RESTRICT="mirror"
+
+use_setup() {
+ local uword="${2:-${1}}"
+ if use ${1}; then
+ echo "${uword} = True"
+ echo "${uword}agg = True"
+ else
+ echo "${uword} = False"
+ echo "${uword}agg = False"
+ fi
+}
+
+src_prepare() {
+ # create setup.cfg (see setup.cfg.template for any changes)
+ cat > setup.cfg <<-EOF
+ [provide_packages]
+ pytz = False
+ dateutil = False
+ six = False
+ [gui_support]
+ $(use_setup cairo)
+ $(use_setup fltk)
+ $(use_setup gtk)
+ $(use_setup qt4)
+ $(use_setup tk)
+ $(use_setup wxwidgets wx)
+ EOF
+
+ # avoid checks needing a X display
+ epatch "${FILESDIR}"/${P}-setup.patch
+
+ # Fix test, issue no. 1532
+ epatch "${FILESDIR}"/${P}-ft-refcount.patch
+
+ # remove internal copies of pyparsing
+ rm lib/matplotlib/pyparsing{_py2,_py3}.py || die
+ sed -i -e 's/matplotlib.pyparsing_py[23]/pyparsing/g' \
+ lib/matplotlib/{mathtext,fontconfig_pattern}.py \
+ || die "sed pyparsing failed"
+
+ DocCheck() {
+ if [[ "$(python_get_version --major)" == '3' ]]; then
+ eerror ""
+ eerror "Building of docs with python3 currently **FAILS**"
+ eerror "Docs can be built effectively with python2."
+ eerror "Prepend USE_PYTHON=2.7 and recommence emerge "
+ eerror ""
+ die
+ fi
+ }
+ python_execute_function DocCheck
+ distutils_src_prepare
+}
+
+src_compile() {
+ unset DISPLAY # bug #278524
+ distutils_src_compile
+ if use doc; then
+ pushd doc > /dev/null
+ VARTEXFONTS="${T}"/fonts \
+ PYTHONPATH=$(ls -d "${S}"/build-$(PYTHON -f --ABI)/lib*) \
+ ./make.py --small all
+ [[ -e build/latex/Matplotlib.pdf ]] || die "doc generation failed"
+ popd > /dev/null
+ fi
+}
+
+src_test() {
+ # if doc was enabled, all examples were built and tested
+ use doc && return
+ testing() {
+ "$(PYTHON)" setup.py build -b "build-${PYTHON_ABI}" install \
+ --home="${S}/test-${PYTHON_ABI}" --no-compile \
+ || die "install test failed"
+ pushd "${S}/test-${PYTHON_ABI}/"lib* > /dev/null
+ PYTHONPATH=python \
+ "$(PYTHON)" -c "import matplotlib as m; m.test(verbosity=2)" \
+ 2>&1 | tee test.log
+ grep -Eq "^(ERROR|FAIL):" test.log && return 1
+ popd > /dev/null
+ rm -r test-${PYTHON_ABI}
+ }
+ python_execute_function testing
+}
+
+src_install() {
+ distutils_src_install
+ if use doc; then
+ insinto /usr/share/doc/${PF}
+ doins -r doc/build/latex/Matplotlib.pdf doc/build/html || die
+ fi
+ if use examples; then
+ insinto /usr/share/doc/${PF}
+ doins -r examples || die
+ fi
+}