diff options
author | Sebastien Fabbro <bicatali@gentoo.org> | 2007-05-28 15:40:49 +0000 |
---|---|---|
committer | Sebastien Fabbro <bicatali@gentoo.org> | 2007-05-28 15:40:49 +0000 |
commit | cfe31c44d4eb54349dbde964e14d6602824ac035 (patch) | |
tree | b4921d6d78ccf6eed28b51d64e86198f081d1392 /dev-python/matplotlib | |
parent | updated the 2006' version (diff) | |
download | gentoo-2-cfe31c44d4eb54349dbde964e14d6602824ac035.tar.gz gentoo-2-cfe31c44d4eb54349dbde964e14d6602824ac035.tar.bz2 gentoo-2-cfe31c44d4eb54349dbde964e14d6602824ac035.zip |
Default backend to gtk if tk and gtk are selected
(Portage version: 2.1.2.7)
Diffstat (limited to 'dev-python/matplotlib')
-rw-r--r-- | dev-python/matplotlib/ChangeLog | 6 | ||||
-rw-r--r-- | dev-python/matplotlib/matplotlib-0.90.0.ebuild | 26 |
2 files changed, 19 insertions, 13 deletions
diff --git a/dev-python/matplotlib/ChangeLog b/dev-python/matplotlib/ChangeLog index 54787103bd97..2426e04ecafe 100644 --- a/dev-python/matplotlib/ChangeLog +++ b/dev-python/matplotlib/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for dev-python/matplotlib # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/matplotlib/ChangeLog,v 1.29 2007/05/03 16:43:28 bicatali Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/matplotlib/ChangeLog,v 1.30 2007/05/28 15:40:49 bicatali Exp $ + + 28 May 2007; Sébastien Fabbro <bicatali@gentoo.org> + matplotlib-0.90.0.ebuild: + Default backend to gtk if tk and gtk are selected 03 May 2007; Sébastien Fabbro <bicatali@gentoo.org> matplotlib-0.90.0.ebuild: diff --git a/dev-python/matplotlib/matplotlib-0.90.0.ebuild b/dev-python/matplotlib/matplotlib-0.90.0.ebuild index 863036675759..24054b75c02a 100644 --- a/dev-python/matplotlib/matplotlib-0.90.0.ebuild +++ b/dev-python/matplotlib/matplotlib-0.90.0.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/matplotlib/matplotlib-0.90.0.ebuild,v 1.3 2007/05/03 16:43:28 bicatali Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/matplotlib/matplotlib-0.90.0.ebuild,v 1.4 2007/05/28 15:40:49 bicatali Exp $ NEED_PYTHON=2.3 @@ -55,24 +55,26 @@ src_unpack() { -e "/^BUILD_TK/s/'auto'/$(use tk && echo 1 || echo 0)/g" \ setup.py || die "sed failed" - # cleaning and remove vera fonts, they are now a dependency + # cleaning and remove vera fonts (they are now a dependency) chmod 644 images/*.svg find -name .cvsignore | xargs rm -rf rm -f fonts/ttf/Vera*.ttf + + # default to gtk backend if both gtk and tk are selected + if use gtk; then + sed -i \ + -e "s/^#rc\['backend'\] = GTKAgg/rc\['backend'\] = 'GTKAgg'/" \ + setup.py || die "sed backend failed" + fi } src_install() { distutils_src_install --install-data=usr/share + insinto /etc doins matplotlibrc - if use doc; then - insinto /usr/share/doc/${PF}/ - doins "${DISTDIR}"/users_guide_${DOC_PV}.pdf - fi - if use examples; then - insinto /usr/share/doc/${PF}/examples - doins examples/*.py examples/README - insinto /usr/share/doc/${PF}/examples/data - doins examples/data/*.dat - fi + + insinto /usr/share/doc/${PF} + use doc && doins "${DISTDIR}"/users_guide_${DOC_PV}.pdf + use examples && doins -r examples } |