summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2010-09-28 21:50:53 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2010-09-28 21:50:53 +0000
commit22b36d645992d532d11845f338b67169379c4ba7 (patch)
tree093e70d09e025e241caf70e58516130643424199 /dev-python/matplotlib
parentMarking activerecord-2.3.8 ~ppc for bug 322175 (diff)
downloadgentoo-2-22b36d645992d532d11845f338b67169379c4ba7.tar.gz
gentoo-2-22b36d645992d532d11845f338b67169379c4ba7.tar.bz2
gentoo-2-22b36d645992d532d11845f338b67169379c4ba7.zip
Delete older ebuilds.
(Portage version: 2.2_rc88_p32/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/matplotlib')
-rw-r--r--dev-python/matplotlib/ChangeLog13
-rw-r--r--dev-python/matplotlib/files/matplotlib-0.98.5.2-no-xv.patch11
-rw-r--r--dev-python/matplotlib/files/matplotlib-0.99.0-freebsd7+.patch14
-rw-r--r--dev-python/matplotlib/files/matplotlib-0.99.1.1-docs.patch16
-rw-r--r--dev-python/matplotlib/files/matplotlib-0.99.1.1-eintr.patch46
-rw-r--r--dev-python/matplotlib/files/matplotlib-0.99.1.1-gtk-tooltip.patch81
-rw-r--r--dev-python/matplotlib/files/matplotlib-0.99.1.1-libpng14.patch13
-rw-r--r--dev-python/matplotlib/files/matplotlib-0.99.1.1-prefix.patch49
-rw-r--r--dev-python/matplotlib/files/matplotlib-0.99.3-nopiwik.patch22
-rw-r--r--dev-python/matplotlib/matplotlib-0.99.1.1-r1.ebuild190
-rw-r--r--dev-python/matplotlib/matplotlib-0.99.3.ebuild195
11 files changed, 12 insertions, 638 deletions
diff --git a/dev-python/matplotlib/ChangeLog b/dev-python/matplotlib/ChangeLog
index 83eca785af6b..2a39ce65e579 100644
--- a/dev-python/matplotlib/ChangeLog
+++ b/dev-python/matplotlib/ChangeLog
@@ -1,6 +1,17 @@
# ChangeLog for dev-python/matplotlib
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/matplotlib/ChangeLog,v 1.95 2010/09/28 15:33:44 ranger Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/matplotlib/ChangeLog,v 1.96 2010/09/28 21:50:52 arfrever Exp $
+
+ 28 Sep 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+ -files/matplotlib-0.98.5.2-no-xv.patch,
+ -files/matplotlib-0.99.0-freebsd7+.patch, -matplotlib-0.99.1.1-r1.ebuild,
+ -files/matplotlib-0.99.1.1-docs.patch,
+ -files/matplotlib-0.99.1.1-eintr.patch,
+ -files/matplotlib-0.99.1.1-gtk-tooltip.patch,
+ -files/matplotlib-0.99.1.1-libpng14.patch,
+ -files/matplotlib-0.99.1.1-prefix.patch, -matplotlib-0.99.3.ebuild,
+ -files/matplotlib-0.99.3-nopiwik.patch:
+ Delete.
28 Sep 2010; Brent Baude <ranger@gentoo.org> matplotlib-1.0.0.ebuild:
stable ppc, bug 333193
diff --git a/dev-python/matplotlib/files/matplotlib-0.98.5.2-no-xv.patch b/dev-python/matplotlib/files/matplotlib-0.98.5.2-no-xv.patch
deleted file mode 100644
index 9e709d01d412..000000000000
--- a/dev-python/matplotlib/files/matplotlib-0.98.5.2-no-xv.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- doc/mpl_examples/pylab_examples/to_numeric.py.orig 2009-02-27 17:10:43.000000000 +0000
-+++ doc/mpl_examples/pylab_examples/to_numeric.py 2009-02-27 17:06:20.000000000 +0000
-@@ -28,6 +28,6 @@
- X = fromstring(s, uint8)
- X.shape = h, w, 3
-
--im = Image.fromstring( "RGB", (w,h), s)
--im.show()
-+im = imshow(Image.fromstring( "RGB", (w,h), s),origin='lower')
-+show()
-
diff --git a/dev-python/matplotlib/files/matplotlib-0.99.0-freebsd7+.patch b/dev-python/matplotlib/files/matplotlib-0.99.0-freebsd7+.patch
deleted file mode 100644
index 88c7db018ca2..000000000000
--- a/dev-python/matplotlib/files/matplotlib-0.99.0-freebsd7+.patch
+++ /dev/null
@@ -1,14 +0,0 @@
-add support for FreeBSD 7 and 8
-http://bugs.gentoo.org/show_bug.cgi?id=282059
-
---- setupext.py
-+++ setupext.py
-@@ -54,6 +54,8 @@
- 'freebsd4' : [],
- 'freebsd5' : [],
- 'freebsd6' : [],
-+ 'freebsd7' : [],
-+ 'freebsd8' : [],
- 'sunos5' : [],
- 'gnukfreebsd5' : [],
- 'gnukfreebsd6' : [],
diff --git a/dev-python/matplotlib/files/matplotlib-0.99.1.1-docs.patch b/dev-python/matplotlib/files/matplotlib-0.99.1.1-docs.patch
deleted file mode 100644
index c734953342b6..000000000000
--- a/dev-python/matplotlib/files/matplotlib-0.99.1.1-docs.patch
+++ /dev/null
@@ -1,16 +0,0 @@
-Description: Pass DPI, along with format, in plot format configuration
-Forwarded: yes
-Author: Sandro Tosi <morph@debian.org>
-
-diff -urNad matplotlib~/doc/make.py matplotlib/doc/make.py
---- matplotlib~/doc/make.py 2009-08-01 21:14:12.000000000 +0200
-+++ matplotlib/doc/make.py 2009-10-09 08:56:04.000000000 +0200
-@@ -30,7 +30,7 @@
- check_build()
- shutil.copy('../lib/matplotlib/mpl-data/matplotlibrc', '_static/matplotlibrc')
- if small_docs:
-- options = "-D plot_formats=\"['png']\""
-+ options = "-D plot_formats=\"[('png', 80)]\""
- else:
- options = ''
- if os.system('sphinx-build %s -P -b html -d build/doctrees . build/html' % options):
diff --git a/dev-python/matplotlib/files/matplotlib-0.99.1.1-eintr.patch b/dev-python/matplotlib/files/matplotlib-0.99.1.1-eintr.patch
deleted file mode 100644
index 3af61d34e33a..000000000000
--- a/dev-python/matplotlib/files/matplotlib-0.99.1.1-eintr.patch
+++ /dev/null
@@ -1,46 +0,0 @@
---- lib/matplotlib/font_manager.py 2009/11/12 17:27:34 7952
-+++ lib/matplotlib/font_manager.py 2009/11/12 17:28:22 7953
-@@ -42,7 +42,7 @@
- see license/LICENSE_TTFQUERY.
- """
-
--import os, sys, glob
-+import os, sys, glob, subprocess
- try:
- set
- except NameError:
-@@ -292,16 +292,12 @@
- grab all of the fonts the user wants to be made available to
- applications, without needing knowing where all of them reside.
- """
-- try:
-- import commands
-- except ImportError:
-- return {}
--
- fontext = get_fontext_synonyms(fontext)
-
- fontfiles = {}
-- status, output = commands.getstatusoutput("fc-list file")
-- if status == 0:
-+ pipe = subprocess.Popen(['fc-list', '', 'file'], stdout=subprocess.PIPE)
-+ output = pipe.communicate()[0]
-+ if pipe.returncode == 0:
- for line in output.split('\n'):
- fname = line.split(':')[0]
- if (os.path.splitext(fname)[1][1:] in fontext and
-@@ -1244,11 +1240,11 @@
- import re
-
- def fc_match(pattern, fontext):
-- import commands
- fontexts = get_fontext_synonyms(fontext)
- ext = "." + fontext
-- status, output = commands.getstatusoutput('fc-match -sv "%s"' % pattern)
-- if status == 0:
-+ pipe = subprocess.Popen(['fc-match', '-sv', pattern], stdout=subprocess.PIPE)
-+ output = pipe.communicate()[0]
-+ if pipe.returncode == 0:
- for match in _fc_match_regex.finditer(output):
- file = match.group(1)
- if os.path.splitext(file)[1][1:] in fontexts:
diff --git a/dev-python/matplotlib/files/matplotlib-0.99.1.1-gtk-tooltip.patch b/dev-python/matplotlib/files/matplotlib-0.99.1.1-gtk-tooltip.patch
deleted file mode 100644
index e4c6091a4c9f..000000000000
--- a/dev-python/matplotlib/files/matplotlib-0.99.1.1-gtk-tooltip.patch
+++ /dev/null
@@ -1,81 +0,0 @@
---- lib/matplotlib/backends/backend_gtk.py 2010/02/18 14:54:30 8141
-+++ lib/matplotlib/backends/backend_gtk.py 2010/03/20 22:49:25 8203
-@@ -17,6 +17,8 @@
- % (gtk.pygtk_version + pygtk_version_required))
- del pygtk_version_required
-
-+_new_tooltip_api = (gtk.pygtk_version[1] >= 12)
-+
- import matplotlib
- from matplotlib import verbose
- from matplotlib._pylab_helpers import Gcf
-@@ -448,7 +450,7 @@
- # diong a blanket catch here, but an not sure what a
- # better way is - JDH
- verbose.report('Could not load matplotlib icon: %s' % sys.exc_info()[1])
--
-+
- self.vbox = gtk.VBox()
- self.window.add(self.vbox)
- self.vbox.show()
-@@ -618,7 +620,8 @@
-
- def _init_toolbar2_4(self):
- basedir = os.path.join(matplotlib.rcParams['datapath'],'images')
-- self.tooltips = gtk.Tooltips()
-+ if not _new_tooltip_api:
-+ self.tooltips = gtk.Tooltips()
-
- for text, tooltip_text, image_file, callback in self.toolitems:
- if text is None:
-@@ -630,7 +633,10 @@
- tbutton = gtk.ToolButton(image, text)
- self.insert(tbutton, -1)
- tbutton.connect('clicked', getattr(self, callback))
-- tbutton.set_tooltip(self.tooltips, tooltip_text, 'Private')
-+ if _new_tooltip_api:
-+ tbutton.set_tooltip_text(tooltip_text)
-+ else:
-+ tbutton.set_tooltip(self.tooltips, tooltip_text, 'Private')
-
- toolitem = gtk.SeparatorToolItem()
- self.insert(toolitem, -1)
-@@ -760,7 +766,8 @@
- def _create_toolitems_2_4(self):
- # use the GTK+ 2.4 GtkToolbar API
- iconSize = gtk.ICON_SIZE_SMALL_TOOLBAR
-- self.tooltips = gtk.Tooltips()
-+ if not _new_tooltip_api:
-+ self.tooltips = gtk.Tooltips()
-
- for text, tooltip_text, image_num, callback, callback_arg, scroll \
- in self.toolitems:
-@@ -778,15 +785,22 @@
- tbutton.connect('clicked', getattr(self, callback))
- if scroll:
- tbutton.connect('scroll_event', getattr(self, callback))
-- tbutton.set_tooltip(self.tooltips, tooltip_text, 'Private')
-+ if _new_tooltip_api:
-+ tbutton.set_tooltip_text(tooltip_text)
-+ else:
-+ tbutton.set_tooltip(self.tooltips, tooltip_text, 'Private')
-
- # Axes toolitem, is empty at start, update() adds a menu if >=2 axes
- self.axes_toolitem = gtk.ToolItem()
- self.insert(self.axes_toolitem, 0)
-- self.axes_toolitem.set_tooltip (
-- self.tooltips,
-- tip_text='Select axes that controls affect',
-- tip_private = 'Private')
-+ if _new_tooltip_api:
-+ self.axes_toolitem.set_tooltip_text(
-+ 'Select axes that controls affect')
-+ else:
-+ self.axes_toolitem.set_tooltip (
-+ self.tooltips,
-+ tip_text='Select axes that controls affect',
-+ tip_private = 'Private')
-
- align = gtk.Alignment (xalign=0.5, yalign=0.5, xscale=0.0, yscale=0.0)
- self.axes_toolitem.add(align)
-
diff --git a/dev-python/matplotlib/files/matplotlib-0.99.1.1-libpng14.patch b/dev-python/matplotlib/files/matplotlib-0.99.1.1-libpng14.patch
deleted file mode 100644
index bcdcb14e0673..000000000000
--- a/dev-python/matplotlib/files/matplotlib-0.99.1.1-libpng14.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-http://www.mail-archive.com/pld-cvs-commit@lists.pld-linux.org/msg209718.html
-
---- src/_png.cpp
-+++ src/_png.cpp
-@@ -290,7 +290,7 @@
-
- //free the png memory
- png_read_end(png_ptr, info_ptr);
-- png_destroy_read_struct(&png_ptr, &info_ptr, png_infopp_NULL);
-+ png_destroy_read_struct(&png_ptr, &info_ptr, NULL);
- fclose(fp);
- for (row = 0; row < height; row++)
- delete [] row_pointers[row];
diff --git a/dev-python/matplotlib/files/matplotlib-0.99.1.1-prefix.patch b/dev-python/matplotlib/files/matplotlib-0.99.1.1-prefix.patch
deleted file mode 100644
index 53d389850811..000000000000
--- a/dev-python/matplotlib/files/matplotlib-0.99.1.1-prefix.patch
+++ /dev/null
@@ -1,49 +0,0 @@
---- setupext.py
-+++ setupext.py
-@@ -46,12 +46,11 @@
- import subprocess
-
- basedir = {
-- 'win32' : ['win32_static',],
-- 'linux2' : ['/usr/local', '/usr'],
-- 'linux' : ['/usr/local', '/usr',],
-- 'cygwin' : ['/usr/local', '/usr',],
-- '_darwin' : ['/sw/lib/freetype2', '/sw/lib/freetype219', '/usr/local',
-- '/usr', '/sw'],
-+ 'win32' : [],
-+ 'linux2' : [],
-+ 'linux' : [],
-+ 'cygwin' : [],
-+ '_darwin' : [],
- # it appears builds with darwin are broken because of all the
- # different flags the deps can be compile with, so I am pushing
- # people to :
-@@ -59,13 +58,13 @@
-
- 'darwin' : [],
-
-- 'freebsd4' : ['/usr/local', '/usr'],
-- 'freebsd5' : ['/usr/local', '/usr'],
-- 'freebsd6' : ['/usr/local', '/usr'],
-- 'sunos5' : [os.getenv('MPLIB_BASE') or '/usr/local',],
-- 'gnukfreebsd5' : ['/usr/local', '/usr'],
-- 'gnukfreebsd6' : ['/usr/local', '/usr'],
-- 'aix5' : ['/usr/local'],
-+ 'freebsd4' : [],
-+ 'freebsd5' : [],
-+ 'freebsd6' : [],
-+ 'sunos5' : [],
-+ 'gnukfreebsd5' : [],
-+ 'gnukfreebsd6' : [],
-+ 'aix5' : [],
- }
-
- import sys, os, stat
-@@ -328,6 +327,7 @@
-
- module.include_dirs.extend(incdirs)
- module.include_dirs.append('.')
-+ module.include_dirs.append(os.path.join(sys.prefix, 'include'))
- module.library_dirs.extend(libdirs)
-
- def getoutput(s):
diff --git a/dev-python/matplotlib/files/matplotlib-0.99.3-nopiwik.patch b/dev-python/matplotlib/files/matplotlib-0.99.3-nopiwik.patch
deleted file mode 100644
index 49f979553306..000000000000
--- a/dev-python/matplotlib/files/matplotlib-0.99.3-nopiwik.patch
+++ /dev/null
@@ -1,22 +0,0 @@
-diff -ur matplotlib-0.99.3.orig/doc/_templates/layout.html matplotlib-0.99.3/doc/_templates/layout.html
---- matplotlib-0.99.3.orig/doc/_templates/layout.html 2010-03-09 14:20:18.000000000 +0000
-+++ matplotlib-0.99.3/doc/_templates/layout.html 2010-06-03 20:12:02.164916326 +0100
-@@ -11,18 +11,6 @@
-
-
- {% block relbar1 %}
--<!-- Piwik -->
--<script type="text/javascript">
--var pkBaseURL = (("https:" == document.location.protocol) ? "https://apps.sourceforge.net/piwik/matplotlib/" : "http://apps.sourceforge.net/piwik/matplotlib/");
--document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E"));
--</script><script type="text/javascript">
--piwik_action_name = '';
--piwik_idsite = 1;
--piwik_url = pkBaseURL + "piwik.php";
--piwik_log(piwik_action_name, piwik_idsite, piwik_url);
--</script>
--<object><noscript><p><img src="http://apps.sourceforge.net/piwik/matplotlib/piwik.php?idsite=1" alt="piwik"/></p></noscript></object>
--<!-- End Piwik Tag -->
- <link rel="shortcut icon" href="_static/favicon.ico">
-
- <div style="background-color: white; text-align: left; padding: 10px 10px 15px 15px">
diff --git a/dev-python/matplotlib/matplotlib-0.99.1.1-r1.ebuild b/dev-python/matplotlib/matplotlib-0.99.1.1-r1.ebuild
deleted file mode 100644
index 4da07a739a61..000000000000
--- a/dev-python/matplotlib/matplotlib-0.99.1.1-r1.ebuild
+++ /dev/null
@@ -1,190 +0,0 @@
-# Copyright 1999-2010 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/matplotlib/matplotlib-0.99.1.1-r1.ebuild,v 1.9 2010/06/03 19:12:09 bicatali Exp $
-
-EAPI="2"
-PYTHON_DEPEND="2"
-SUPPORT_PYTHON_ABIS="1"
-WX_GTK_VER="2.8"
-
-inherit eutils distutils wxwidgets flag-o-matic
-
-PDOC="users_guide_${PV}"
-
-DESCRIPTION="Pure python plotting library with matlab like syntax"
-HOMEPAGE="http://matplotlib.sourceforge.net/ http://pypi.python.org/pypi/matplotlib"
-SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
-
-IUSE="cairo doc excel examples fltk gtk latex qt4 traits tk wxwidgets"
-SLOT="0"
-KEYWORDS="amd64 ppc x86 ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
-LICENSE="PYTHON BSD"
-
-CDEPEND=">=dev-python/numpy-1.1
- dev-python/python-dateutil
- dev-python/pytz
- media-libs/freetype:2
- media-libs/libpng
- gtk? ( dev-python/pygtk )
- tk? ( dev-lang/python[tk] )
- wxwidgets? ( dev-python/wxpython:2.8 )"
-
-DEPEND="${CDEPEND}
- dev-python/pycxx
- dev-util/pkgconfig
- doc? (
- >=dev-python/sphinx-0.5.1
- || (
- >=media-gfx/graphviz-2.24.0[cairo]
- <media-gfx/graphviz-2.24.0[cairo,png]
- )
- || ( ( dev-texlive/texlive-latexextra
- dev-texlive/texlive-latexrecommended )
- ( app-text/ptex dev-tex/latex-unicode ) )
- app-text/dvipng
- dev-python/imaging
- dev-python/ipython )"
-
-RDEPEND="${CDEPEND}
- virtual/ttf-fonts
- media-fonts/texcm-ttf
- cairo? ( dev-python/pycairo )
- excel? ( dev-python/xlwt )
- fltk? ( dev-python/pyfltk )
- qt4? ( dev-python/PyQt4[X] )
- traits? ( dev-python/traits dev-python/configobj )
- latex? (
- virtual/latex-base
- app-text/ghostscript-gpl
- app-text/dvipng
- >=app-text/poppler-0.12.3-r3[utils]
- || ( dev-texlive/texlive-fontsrecommended
- app-text/ptex ) )"
-RESTRICT_PYTHON_ABIS="3.*"
-
-DOCS="INTERACTIVE"
-
-use_setup() {
- local uword="${2}"
- [ -z "${2}" ] && uword="${1}"
- if use ${1}; then
- echo "${uword} = True"
- echo "${uword}agg = True"
- else
- echo "${uword} = False"
- echo "${uword}agg = False"
- fi
-}
-
-src_prepare() {
- # avoid to launch xv while building examples docs
- epatch "${FILESDIR}"/${PN}-0.98.5.2-no-xv.patch
-
- # removes hardcoded lib paths, should not break non-Prefix, more
- # likely to fix it in case of multilib
- epatch "${FILESDIR}"/${P}-prefix.patch
- epatch "${FILESDIR}"/${PN}-0.99.0-freebsd7+.patch
-
- # create setup.cfg (see setup.cfg.template for any changes)
- cat > setup.cfg <<-EOF
- [provide_packages]
- pytz = False
- dateutil = False
- configobj = False
- enthought.traits = False
- [gui_support]
- $(use_setup gtk)
- $(use_setup tk)
- $(use_setup wxwidgets wx)
- $(use_setup qt4)
- $(use_setup fltk)
- $(use_setup cairo)
- EOF
-
- # avoid checks needing a X display
- sed -i \
- -e "s/check_for_gtk()/$(use gtk && echo True || echo False)/" \
- -e "s/check_for_tk()/$(use tk && echo True || echo False)/" \
- setup.py || die "sed setup.py failed"
-
- # respect FHS:
- # - mpl-data in /usr/share/matplotlib
- # - config files in /etc/matplotlib
- sed -i \
- -e "/'mpl-data\/matplotlibrc',/d" \
- -e "/'mpl-data\/matplotlib.conf',/d" \
- -e "s:'lib/matplotlib/mpl-data/matplotlibrc':'matplotlibrc':" \
- -e "s:'lib/matplotlib/mpl-data/matplotlib.conf':'matplotlib.conf':" \
- setup.py \
- || die "sed setup.py for FHS failed"
-
- sed -i \
- -e "s:path = get_data_path():path = '${EPREFIX}/etc/matplotlib':" \
- -e "s:os.path.dirname(__file__):'${EPREFIX}/usr/share/${PN}':g" \
- lib/matplotlib/{__init__,config/cutils}.py \
- || die "sed init for FHS failed"
-
- # remove internal copies of fonts, pycxx, pyparsing
- rm -rf \
- CXX \
- lib/matplotlib/mpl-data/fonts/{afm,pdfcorefonts} \
- lib/matplotlib/mpl-data/fonts/ttf/{Vera*,cm*,*.TXT} \
- || die "removed internal copies failed"
-
- # remove pyparsing only when upstream pyparsing included matplotlib
- # fixes. See bug #260025
- #rm -f lib/matplotlib/pyparsing.py
-
- epatch "${FILESDIR}"/${P}-libpng14.patch
-}
-
-src_compile() {
- unset DISPLAY # bug #278524
- append-flags -DNDEBUG # bug #322347
- distutils_src_compile_pre_hook() {
- ln -fs "${EPREFIX}/usr/share/python$(python_get_version)/CXX" .
- }
- distutils_src_compile
-
- if use doc; then
- cd "${S}/doc"
- export VARTEXFONTS="${T}"/fonts
- MATPLOTLIBDATA="${S}/lib/matplotlib/mpl-data" \
- PYTHONPATH=$(ls -d "${S}"/build-$(PYTHON -f --ABI)/lib*) \
- "$(PYTHON -f)" make.py all
- [[ -e build/latex/Matplotlib.pdf ]] || die "doc generation failed"
- fi
-}
-
-src_test() {
- einfo "Tests are quite long, be patient"
- cd "${S}/examples/tests"
- testing() {
- PYTHONPATH=$(ls -d "${S}"/build-${PYTHON_ABI}/lib*) "$(PYTHON)" backend_driver.py agg || return 1
- PYTHONPATH=$(ls -d "${S}"/build-${PYTHON_ABI}/lib*) "$(PYTHON)" backend_driver.py --clean
- }
- python_execute_function testing
-}
-
-src_install() {
- [[ -z ${ED} ]] && local ED=${D}
- distutils_src_install
-
- # Respect FHS
- dodir /usr/share/${PN}
- mv "${ED}$(python_get_sitedir -f)/${PN}/"{mpl-data,backends/Matplotlib.nib} "${ED}usr/share/${PN}" || die "Renaming failed"
- rm -fr "${ED}"usr/lib*/python*/site-packages/${PN}/{mpl-data,backends/Matplotlib.nib}
-
- insinto /etc/matplotlib
- doins matplotlibrc matplotlib.conf || die "installing config files failed"
-
- # doc and examples
- insinto /usr/share/doc/${PF}
- if use doc; then
- doins doc/build/latex/Matplotlib.pdf || die
- doins -r doc/build/html || die
- fi
- if use examples; then
- doins -r examples || die
- fi
-}
diff --git a/dev-python/matplotlib/matplotlib-0.99.3.ebuild b/dev-python/matplotlib/matplotlib-0.99.3.ebuild
deleted file mode 100644
index f7919b67198f..000000000000
--- a/dev-python/matplotlib/matplotlib-0.99.3.ebuild
+++ /dev/null
@@ -1,195 +0,0 @@
-# Copyright 1999-2010 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/matplotlib/matplotlib-0.99.3.ebuild,v 1.2 2010/06/07 16:44:27 bicatali Exp $
-
-EAPI="2"
-PYTHON_DEPEND="2"
-SUPPORT_PYTHON_ABIS="1"
-WX_GTK_VER="2.8"
-
-inherit eutils distutils wxwidgets flag-o-matic
-
-PDOC="users_guide_${PV}"
-
-DESCRIPTION="Pure python plotting library with matlab like syntax"
-HOMEPAGE="http://matplotlib.sourceforge.net/ http://pypi.python.org/pypi/matplotlib"
-SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
-
-IUSE="cairo doc excel examples fltk gtk latex qt4 traits tk wxwidgets"
-SLOT="0"
-KEYWORDS="~amd64 ~ppc ~x86 ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
-LICENSE="PYTHON BSD"
-
-CDEPEND="dev-python/numpy
- dev-python/python-dateutil
- dev-python/pytz
- media-libs/freetype:2
- media-libs/libpng
- gtk? ( dev-python/pygtk )
- tk? ( dev-lang/python[tk] )
- wxwidgets? ( dev-python/wxpython:2.8 )"
-
-DEPEND="${CDEPEND}
- dev-python/pycxx
- dev-util/pkgconfig
- doc? (
- dev-python/sphinx
- media-gfx/graphviz[cairo]
- || ( ( dev-texlive/texlive-latexextra
- dev-texlive/texlive-fontsrecommended
- dev-texlive/texlive-latexrecommended )
- ( app-text/ptex dev-tex/latex-unicode ) )
- app-text/dvipng
- dev-python/imaging
- dev-python/ipython
- excel? ( dev-python/xlwt ) )"
-
-RDEPEND="${CDEPEND}
- virtual/ttf-fonts
- media-fonts/texcm-ttf
- dev-python/pyparsing
- cairo? ( dev-python/pycairo )
- excel? ( dev-python/xlwt )
- fltk? ( dev-python/pyfltk )
- qt4? ( dev-python/PyQt4[X] )
- traits? ( dev-python/traits dev-python/configobj )
- latex? (
- virtual/latex-base
- app-text/ghostscript-gpl
- app-text/dvipng
- app-text/poppler[utils]
- || ( dev-texlive/texlive-fontsrecommended
- app-text/ptex ) )"
-RESTRICT_PYTHON_ABIS="3.*"
-
-DOCS="INTERACTIVE"
-
-use_setup() {
- local uword="${2}"
- [ -z "${2}" ] && uword="${1}"
- if use ${1}; then
- echo "${uword} = True"
- echo "${uword}agg = True"
- else
- echo "${uword} = False"
- echo "${uword}agg = False"
- fi
-}
-
-src_prepare() {
- # avoid to launch xv while building examples docs
- epatch "${FILESDIR}"/${PN}-0.98.5.2-no-xv.patch
- # allow better small docs (from upstream svn)
- epatch "${FILESDIR}"/${PN}-0.99.1.1-docs.patch
- # allow compatibility with pygtk-2.12 tooltop (from upstream svn)
- epatch "${FILESDIR}"/${PN}-0.99.1.1-gtk-tooltip.patch
- # some font stuff (from upstream svn)
- epatch "${FILESDIR}"/${PN}-0.99.1.1-eintr.patch
- # avoid slow piwik (bug #323005)
- epatch "${FILESDIR}"/${PN}-0.99.3-nopiwik.patch
-
- # create setup.cfg (see setup.cfg.template for any changes)
- cat > setup.cfg <<-EOF
- [provide_packages]
- pytz = False
- dateutil = False
- configobj = False
- enthought.traits = False
- [gui_support]
- $(use_setup gtk)
- $(use_setup tk)
- $(use_setup wxwidgets wx)
- $(use_setup qt4)
- $(use_setup fltk)
- $(use_setup cairo)
- EOF
-
- # avoid checks needing a X display
- sed -i \
- -e "s/check_for_gtk()/$(use gtk && echo True || echo False)/" \
- -e "s/check_for_tk()/$(use tk && echo True || echo False)/" \
- setup.py || die "sed setup.py failed"
-
- # respect FHS:
- # - mpl-data in /usr/share/matplotlib
- # - config files in /etc/matplotlib
- sed -i \
- -e "/'mpl-data\/matplotlibrc',/d" \
- -e "/'mpl-data\/matplotlib.conf',/d" \
- -e "s:'lib/matplotlib/mpl-data/matplotlibrc':'matplotlibrc':" \
- -e "s:'lib/matplotlib/mpl-data/matplotlib.conf':'matplotlib.conf':" \
- setup.py \
- || die "sed setup.py for FHS failed"
-
- # remove internal copies of fonts, pycxx, pyparsing
- rm -rf \
- CXX \
- lib/matplotlib/mpl-data/fonts/{afm,pdfcorefonts} \
- lib/matplotlib/mpl-data/fonts/ttf/{Vera*,cm*,*.TXT} \
- lib/matplotlib/pyparsing.py \
- || die "removed internal copies failed"
-
- sed -i \
- -e 's/matplotlib.pyparsing/pyparsing/g' \
- lib/matplotlib/{mathtext,fontconfig_pattern}.py \
- || die "sed pyparsing failed"
-}
-
-src_compile() {
- unset DISPLAY # bug #278524
- append-flags -DNDEBUG # bug #322347
- distutils_src_compile_pre_hook() {
- ln -fs "${EPREFIX}/usr/share/python$(python_get_version)/CXX" .
- }
- distutils_src_compile
-
- if use doc; then
- cd "${S}/doc"
- export VARTEXFONTS="${T}"/fonts
- MATPLOTLIBDATA="${S}/lib/matplotlib/mpl-data" \
- PYTHONPATH=$(ls -d "${S}"/build-$(PYTHON -f --ABI)/lib*) \
- "$(PYTHON -f)" make.py --small all
- [[ -e build/latex/Matplotlib.pdf ]] || die "doc generation failed"
- fi
-}
-
-src_test() {
- # if doc were enabled, all examples were built and tested
- use doc && return
- einfo "Tests are quite long, be patient"
- cd "${S}/examples/tests"
- testing() {
- PYTHONPATH=$(ls -d "${S}"/build-${PYTHON_ABI}/lib*) "$(PYTHON)" backend_driver.py agg || return 1
- PYTHONPATH=$(ls -d "${S}"/build-${PYTHON_ABI}/lib*) "$(PYTHON)" backend_driver.py --clean
- }
- python_execute_function testing
-}
-
-src_install() {
- # sed only after doc building, to allow using default configs
- sed -i \
- -e "s:path = get_data_path():path = '${EPREFIX}/etc/matplotlib':" \
- -e "s:os.path.dirname(__file__):'${EPREFIX}/usr/share/${PN}':g" \
- build-*/lib*/matplotlib/__init__.py \
- || die "sed init for FHS failed"
- [[ -z ${ED} ]] && local ED="${D}"
- distutils_src_install
-
- # Respect FHS
- dodir /usr/share/${PN}
- mv "${ED}$(python_get_sitedir -f)/${PN}/"{mpl-data,backends/Matplotlib.nib} "${ED}usr/share/${PN}" || die "Renaming failed"
- rm -fr "${ED}"usr/lib*/python*/site-packages/${PN}/{mpl-data,backends/Matplotlib.nib}
-
- insinto /etc/matplotlib
- doins matplotlibrc matplotlib.conf || die "installing config files failed"
-
- # doc and examples
- insinto /usr/share/doc/${PF}
- if use doc; then
- doins doc/build/latex/Matplotlib.pdf || die
- doins -r doc/build/html || die
- fi
- if use examples; then
- doins -r examples || die
- fi
-}