summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Fabbro <bicatali@gentoo.org>2008-01-14 15:50:03 +0000
committerSebastien Fabbro <bicatali@gentoo.org>2008-01-14 15:50:03 +0000
commit6723689bd0028c2f10f3aea7f411f30d970f465d (patch)
tree1dcb424321dbdcb850fed8ecef0817213623e84f /dev-python/matplotlib
parentshorten DESCRIPTION (diff)
downloadgentoo-2-6723689bd0028c2f10f3aea7f411f30d970f465d.tar.gz
gentoo-2-6723689bd0028c2f10f3aea7f411f30d970f465d.tar.bz2
gentoo-2-6723689bd0028c2f10f3aea7f411f30d970f465d.zip
Version bump (closing bug #205713)
(Portage version: 2.1.4)
Diffstat (limited to 'dev-python/matplotlib')
-rw-r--r--dev-python/matplotlib/ChangeLog8
-rw-r--r--dev-python/matplotlib/files/digest-matplotlib-0.91.26
-rw-r--r--dev-python/matplotlib/matplotlib-0.91.2.ebuild119
3 files changed, 132 insertions, 1 deletions
diff --git a/dev-python/matplotlib/ChangeLog b/dev-python/matplotlib/ChangeLog
index ac850baa9348..7c1abdea85ce 100644
--- a/dev-python/matplotlib/ChangeLog
+++ b/dev-python/matplotlib/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-python/matplotlib
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/matplotlib/ChangeLog,v 1.41 2008/01/04 14:32:09 bicatali Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/matplotlib/ChangeLog,v 1.42 2008/01/14 15:50:03 bicatali Exp $
+
+*matplotlib-0.91.2 (14 Jan 2008)
+
+ 14 Jan 2008; Sébastien Fabbro <bicatali@gentoo.org>
+ +matplotlib-0.91.2.ebuild:
+ Version bump (closing bug #205713)
04 Jan 2008; Sébastien Fabbro <bicatali@gentoo.org>
-matplotlib-0.80-r1.ebuild:
diff --git a/dev-python/matplotlib/files/digest-matplotlib-0.91.2 b/dev-python/matplotlib/files/digest-matplotlib-0.91.2
new file mode 100644
index 000000000000..28a932814fb7
--- /dev/null
+++ b/dev-python/matplotlib/files/digest-matplotlib-0.91.2
@@ -0,0 +1,6 @@
+MD5 7abe21ca9e26df4a44f3208d6007fe16 matplotlib-0.91.2.tar.gz 6457944
+RMD160 dfffd6d4925d96ccffdc45e5da4e8426d24c095c matplotlib-0.91.2.tar.gz 6457944
+SHA256 c25f6350b0047c0983d14933344006f95e48f22131de111db40af15bc21c15d2 matplotlib-0.91.2.tar.gz 6457944
+MD5 f49d987d207357f672c7f8509294a4a0 users_guide_0.91.2svn.pdf 3154057
+RMD160 ce09b3470221852c36e9a7611f5a138b270c377e users_guide_0.91.2svn.pdf 3154057
+SHA256 b53a56fee48eb52302a1a29ef5f2aabacb62868c36d2a5912dfc5860bc991ba1 users_guide_0.91.2svn.pdf 3154057
diff --git a/dev-python/matplotlib/matplotlib-0.91.2.ebuild b/dev-python/matplotlib/matplotlib-0.91.2.ebuild
new file mode 100644
index 000000000000..09aa8568aab7
--- /dev/null
+++ b/dev-python/matplotlib/matplotlib-0.91.2.ebuild
@@ -0,0 +1,119 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/matplotlib/matplotlib-0.91.2.ebuild,v 1.1 2008/01/14 15:50:03 bicatali Exp $
+
+NEED_PYTHON=2.3
+
+inherit distutils
+
+DOC_PV=${PV}svn
+
+DESCRIPTION="Pure python plotting library with matlab like syntax"
+HOMEPAGE="http://matplotlib.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz
+ doc? ( http://matplotlib.sourceforge.net/users_guide_${DOC_PV}.pdf )"
+
+IUSE="cairo doc examples fltk gtk latex qt3 qt4 tk wxwindows"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+LICENSE="PYTHON BSD stix bakoma"
+
+DEPEND="dev-python/numpy
+ >=media-libs/freetype-2
+ media-libs/libpng
+ dev-python/pytz
+ dev-python/python-dateutil
+ gtk? ( dev-python/pygtk )
+ wxwindows? ( dev-python/wxpython )"
+
+RDEPEND="${DEPEND}
+ media-fonts/ttf-bitstream-vera
+ latex? ( virtual/latex-base
+ virtual/ghostscript
+ app-text/dvipng
+ app-text/poppler )
+ cairo? ( dev-python/pycairo )
+ fltk? ( dev-python/pyfltk )
+ qt3? ( dev-python/PyQt )
+ qt4? ( dev-python/PyQt4 )"
+
+DOCS="INTERACTIVE API_CHANGES"
+
+pkg_setup() {
+ use tk && distutils_python_tkinter
+}
+
+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_unpack() {
+ unpack ${A}
+ cd "${S}"
+ # 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 wxwindows wx)
+ $(use_setup qt3 qt)
+ $(use_setup qt4)
+ $(use_setup fltk)
+ $(use_setup cairo)
+ EOF
+
+ # sed to 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: put mpl-data in /usr/share/matplotlib
+ # and 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 = '/etc/matplotlib':" \
+ -e "s:os.path.dirname(__file__):'/usr/share/${PN}':g" \
+ lib/matplotlib/{__init__,config/cutils}.py \
+ || die "sed init for FHS failed"
+
+ # remove vera fonts (they are now a dependency)
+ cd lib/matplotlib/mpl-data
+ rm -f ttf/Vera*.ttf ttf/*.TXT ttf/local.conf pdfcorefonts/readme.txt
+}
+
+src_install() {
+ distutils_src_install
+
+ # respect FHS
+ dodir /usr/share/${PN}
+ mv "${D}"/usr/*/*/site-packages/${PN}/{mpl-data,backends/Matplotlib.nib} "${D}"/usr/share/${PN}
+
+ insinto /etc/matplotlib
+ doins matplotlibrc matplotlib.conf \
+ || die "installing config files failed"
+
+ insinto /usr/share/doc/${PF}
+ use doc && newins "${DISTDIR}"/users_guide_${DOC_PV}.pdf ${P}-users-guide.pdf
+ use examples && doins -r examples
+}