summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Delaney <idella4@gentoo.org>2012-12-07 17:57:55 +0000
committerIan Delaney <idella4@gentoo.org>2012-12-07 17:57:55 +0000
commitb5dfeefba1c6a1230d0f894f966da8cab6cfc16c (patch)
treec558131e622033947cea791380ad36210ef2a143 /dev-python
parentUse multiprocessing post-fork wait mode to avoid early output when all jobs a... (diff)
downloadhistorical-b5dfeefba1c6a1230d0f894f966da8cab6cfc16c.tar.gz
historical-b5dfeefba1c6a1230d0f894f966da8cab6cfc16c.tar.bz2
historical-b5dfeefba1c6a1230d0f894f966da8cab6cfc16c.zip
rev bump; use flag gtk3 added, conditional of gtk corrected, setup patch upgraded, deps added, use of separate source dirs var added, setting setup.cfg updraded, all of which address build with use gtk/gtk3 by corresponding python version
Package-Manager: portage-2.1.11.30/cvs/Linux x86_64 Manifest-Sign-Key: 0xB8072B0D
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/matplotlib/ChangeLog11
-rw-r--r--dev-python/matplotlib/Manifest17
-rw-r--r--dev-python/matplotlib/files/matplotlib-1.2.0-setup.patch19
-rw-r--r--dev-python/matplotlib/matplotlib-1.2.0-r1.ebuild188
-rw-r--r--dev-python/matplotlib/metadata.xml6
5 files changed, 230 insertions, 11 deletions
diff --git a/dev-python/matplotlib/ChangeLog b/dev-python/matplotlib/ChangeLog
index 6676dd2d3a78..196e54195534 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.130 2012/11/30 15:27:47 xarthisius Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/matplotlib/ChangeLog,v 1.131 2012/12/07 17:57:27 idella4 Exp $
+
+*matplotlib-1.2.0-r1 (08 Dec 2012)
+
+ 08 Dec 2012; Ian Delaney <idella4@gentoo.org> +matplotlib-1.2.0-r1.ebuild,
+ files/matplotlib-1.2.0-setup.patch, metadata.xml:
+ rev bump; use flag gtk3 added, conditional of gtk corrected, setup patch
+ upgraded, deps added, use of separate source dirs var added, setting setup.cfg
+ updraded, all of which address build with use gtk/gtk3 by corresponding python
+ version
30 Nov 2012; Ian Delaney <idella4@gentoo.org> matplotlib-1.2.0.ebuild:
Correction to DocCheck to doc check
diff --git a/dev-python/matplotlib/Manifest b/dev-python/matplotlib/Manifest
index d79f42398495..7fc3efd2ada0 100644
--- a/dev-python/matplotlib/Manifest
+++ b/dev-python/matplotlib/Manifest
@@ -1,9 +1,12 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
AUX matplotlib-1.0.1-libpng15.patch 2393 SHA256 fd6721b37b6de66b5d11804137a7040ad9bc4edcadfd1397b9afbe570e7c58c7 SHA512 608bf5ef86c5671dd472629224256e2b0ece9cd5f57fb1b5467e30fdd9c483aa74a53e62292c25fd5cfcb496c11b46465c199cd77906147a894d403ee179c7ba WHIRLPOOL df7d75efc0da51f8d19f84698d40ef4ac7dd311b24e45223fd016677165da9252c9ae502655c9207f12eaade1f578921aadd570c0e4b1d686e4adcbf5d2ce8b8
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
+AUX matplotlib-1.2.0-setup.patch 1283 SHA256 e078b2385dc0b882a7df1a13df070ad5ec704e9e18df2f19bd642c7ae40e8a97 SHA512 8741bd303f5483daf971120c5ae6f35ca568128481ab5b98a94a0391afb0f8802c8b885675d13bf8bfbfbfe650bf33c6330195adc87b54278839032f9d15ebb8 WHIRLPOOL eeb0db8a14f33ccfe82ab677c27f92456dd8255b9c0d352d1496b5ab1f9336e643698435d96b6ff2a3657445737105eb060158014001cd0cc3d894c391111ce9
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
@@ -13,6 +16,14 @@ DIST mpl_sampledata-1.1.0.tar.gz 874730 SHA256 eee173eaf9bd42bc57fb1bcff7044a184
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
+EBUILD matplotlib-1.2.0-r1.ebuild 4991 SHA256 59cfe336e2a7bb021ae6cd058a5661ec29ca84f9c86f38fb5b88621bcda4ca2c SHA512 85eaecfcbec29c9fdc8f0e976934eab81ee7e8e490a022ccbbe11bb4ed66a9b7a788df32bca6319126ece86b5b7099db902920ae0b64c9cf33a7e86b7b54f2c3 WHIRLPOOL 089f261a2b20d8da39e9e0031a5696108f319f38abd6336d605a47e5aafb7e34efd2c5f8b88b4a86559d19dfa2d7bb8d1e3bc792130de72ff1a537f148e8e608
EBUILD matplotlib-1.2.0.ebuild 4511 SHA256 e6a15f564761f60318112dada45c66590958b9ef4568de4ed2747e7d311fd438 SHA512 0c5bea7eff1384d6b8032ada9660fcd44f705a3eaf62d04220164d3853f835c5b09113d9c1fa49977af0ab23d0019f777330331cb6037e78694b48be5a47aadf WHIRLPOOL 60d98cd0ecf4dbb1ebb449048876bf62942d7d9f2b4fd4df2d7d67caac83bf318f10c39d11fb5bab6420ac69ff4e31430c60db9fc8c4fc46ff301bee2faae584
-MISC ChangeLog 24086 SHA256 c50d43770f33dcf1660feed12bdf9371a68cfdc4212056064f01190267d47690 SHA512 23b1ed3cc719e229f4f30b33d25ccc8576ab09014b361718ecf35fddd0eb414bc4d8e912a0a5f9e0482575850756e7df77535568f7f5f2da01400cb0e9790260 WHIRLPOOL 1dec124b3a09ff988cc6fdf4058bf9553f50b1a1790b0e50a6b14d579ee5a6e0338078705cc10858b9c5f5cbc752c9cfd0568a64853cf6bd3703464315b83505
-MISC metadata.xml 640 SHA256 6643fb3ec5019f58c1a7af76a25d791f1109c37929b3332ddbe1a2911f5de3b4 SHA512 8c53de2d65743b8bd37def8261aea4571db0eb3c72e79b968b5342619d75370de84e26f4808f7b6c069811a5a14c24add4e768a78cea9e0156125bfa2f7ccfb3 WHIRLPOOL 13996de565060c484b96f78396f6acfbd3e795722fc6344d02105b7bf1abfda705dd47c3ec227e68e8f4fbb798704779f18a5ff0a7f99e78a837461959b28b97
+MISC ChangeLog 24496 SHA256 6d4db5f1c73ea13a07c56d83a149a8a23b941e466903fe85f61e26478f402bac SHA512 eec52f1f548d93e2fafcd7dca173521c4cc57abee0ca254376d1bbb82176546447988cc7afcc7b0f6fed1c491dadd7eb1dd1a47d529b57dfcf28457c490ef992 WHIRLPOOL 54594e240112387d310d50650b5d2efc60cff546858258bbb95bd6d86af74dc80e2559faa8cee51da65f05f8d9b1aa472aaf6270bbfc9befd9015af1fa421ee6
+MISC metadata.xml 735 SHA256 6c85b9930d604ea5e2e4d1d4c952e9e592913e4b2e07e0369fc3f90887228271 SHA512 4dd21f45621794bb66ac02f14a19a2640a713e16acb8bb336e56c5e5cbb37bf78402755e55b114fffcf2bc0dec88649055fabda42a14200e456934a73a231a8a WHIRLPOOL 523e269928707384a0790cf158613e9f33c43b0920604d8a87c1ed0c82572bb464ada9ead43402589ef33c66cedc37fce15ed7b7abe269b0deaf625753e41777
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.19 (GNU/Linux)
+
+iEYEAREIAAYFAlDDDwYACgkQso7CE7gHKw3KzgCg28lEdCrv6DsMrRvAfdZHTbtU
+5wkAnRuy6LVbMMu77zdwShQn/DP1UhCB
+=/kTn
+-----END PGP SIGNATURE-----
diff --git a/dev-python/matplotlib/files/matplotlib-1.2.0-setup.patch b/dev-python/matplotlib/files/matplotlib-1.2.0-setup.patch
index ba4b77ca0999..ba0351840749 100644
--- a/dev-python/matplotlib/files/matplotlib-1.2.0-setup.patch
+++ b/dev-python/matplotlib/files/matplotlib-1.2.0-setup.patch
@@ -1,9 +1,17 @@
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'
+@@ -171,20 +171,19 @@
+ # regardless of the lack of dependencies. If auto, silently skip
+ # when dependencies are missing.
+ if options['build_tkagg']:
+- if check_for_tk() or (options['build_tkagg'] is True):
+- options['build_agg'] = 1
+- build_tkagg(ext_modules, packages)
+- rc['backend'] = 'TkAgg'
++ options['build_agg'] = 1
++ build_tkagg(ext_modules, packages)
++ rc['backend'] = 'TkAgg'
-hasgtk = check_for_gtk()
-if options['build_gtk']:
@@ -14,7 +22,10 @@ diff -ur matplotlib-1.2.0.orig/setup.py matplotlib-1.2.0/setup.py
- options['build_agg'] = 1
- build_gtkagg(ext_modules, packages)
- rc['backend'] = 'GTKAgg'
-+hasgtk = False if sys.version_info[0] >= 3 else True
++if sys.version_info[0] >= 3:
++ hasgtk = False
++else:
++ hasgtk = True
+if hasgtk and (options['build_gtk'] is True):
+ build_gdk(ext_modules, packages)
+ options['build_agg'] = 1
diff --git a/dev-python/matplotlib/matplotlib-1.2.0-r1.ebuild b/dev-python/matplotlib/matplotlib-1.2.0-r1.ebuild
new file mode 100644
index 000000000000..6e30bdfdfa80
--- /dev/null
+++ b/dev-python/matplotlib/matplotlib-1.2.0-r1.ebuild
@@ -0,0 +1,188 @@
+# 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-r1.ebuild,v 1.1 2012/12/07 17:57:27 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"
+DISTUTILS_USE_SEPARATE_SOURCE_DIRECTORIES="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 gtk3 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
+ dev-python/six
+ media-fonts/stix-fonts
+ media-libs/freetype:2
+ media-libs/libpng
+ gtk? ( dev-python/pygtk )
+ gtk3? ( dev-python/pygobject:3
+ x11-libs/gtk+:3[introspection] )
+ 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), default to py2.
+ cat > setup.cfg <<-EOF
+ [provide_packages]
+ pytz = False
+ dateutil = False
+ [gui_support]
+ six = False
+ $(use_setup cairo)
+ $(use_setup fltk)
+ $(use_setup gtk)
+ $(use_setup qt4)
+ $(use_setup tk)
+ $(use_setup wxwidgets wx)
+ EOF
+ distutils_src_prepare
+
+ SetSetup() {
+ if [[ "$(python_get_version --major)" == '3' ]]; then
+ sed -e 's:^gtk = True:gtk = False:' \
+ -e 's:^gtkagg = True:gtkagg = False:' \
+ -e 's:^wx = True:wx = False:' \
+ -e 's:^wxagg = True:wxagg = False:' \
+ -e 's:^six = False:six = True:' \
+ -i setup.cfg || die "deaded"
+ fi
+ }
+ python_execute_function -q -s SetSetup
+
+ # 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' ]] && use doc; then
+ eerror ""
+ eerror "Building of docs with python3 currently **FAILS**"
+ eerror "Docs can be built effectively with python2."
+ eerror "eselect python2 and recommence emerge "
+ eerror ""
+ die
+ fi
+ }
+ python_execute_function DocCheck
+}
+
+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
+}
diff --git a/dev-python/matplotlib/metadata.xml b/dev-python/matplotlib/metadata.xml
index 1415376dd63b..b6bcdd76c38b 100644
--- a/dev-python/matplotlib/metadata.xml
+++ b/dev-python/matplotlib/metadata.xml
@@ -8,9 +8,9 @@
variety of backends and hard copy formats for almost ready publication plots.
</longdescription>
<use>
- <flag name='excel'>Pull <pkg>dev-python/xlwt</pkg> for the
- exceltools toolkit</flag>
- <flag name='traits'>Pull <pkg>dev-python/traits</pkg> for the
+ <flag name='excel'>Pull <pkg>dev-python/xlwt</pkg> for the exceltools toolkit</flag>
+ <flag name='traits'>Pull <pkg>dev-python/traits</pkg> for the
experimental enthought traits support</flag>
+ <flag name='gtk3'>Use <pkg>x11-libs/gtk+:3</pkg> instead of <pkg>x11-libs/gtk+:2</pkg></flag>
</use>
</pkgmetadata>