diff options
-rw-r--r-- | dev-python/matplotlib/Manifest | 2 | ||||
-rw-r--r-- | dev-python/matplotlib/matplotlib-0.87.1.ebuild | 74 |
2 files changed, 76 insertions, 0 deletions
diff --git a/dev-python/matplotlib/Manifest b/dev-python/matplotlib/Manifest index db8f667ec..da226a694 100644 --- a/dev-python/matplotlib/Manifest +++ b/dev-python/matplotlib/Manifest @@ -1,6 +1,8 @@ MD5 2309d22ecae633922731a8e4a1410aa1 ChangeLog 4074 MD5 aca22ed0ba03c2307a8f9688c7933bcf files/digest-matplotlib-0.87 190 +MD5 3fad6e0738e491fb2daa7048077a5c1e files/digest-matplotlib-0.87.1 192 MD5 802d475da9c3232949f87351fd10847b files/matplotlib-0.87-mplot3d.patch 918 MD5 109c23821a4c77716b191ae8a260a123 files/matplotlib-0.87-no-autodetect.patch 1801 +MD5 fcebfdef6b8efdcf7b1064f88f86bdd7 matplotlib-0.87.1.ebuild 1700 MD5 480213ae3a248cc61773b995bf81ce9f matplotlib-0.87.ebuild 1694 MD5 7d1fbbf5496138b3b2f2f07ec757fecb metadata.xml 428 diff --git a/dev-python/matplotlib/matplotlib-0.87.1.ebuild b/dev-python/matplotlib/matplotlib-0.87.1.ebuild new file mode 100644 index 000000000..977c39198 --- /dev/null +++ b/dev-python/matplotlib/matplotlib-0.87.1.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit distutils python + +DESCRIPTION="Python plotting library with Matlab like syntax" +HOMEPAGE="http://matplotlib.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz +mplot3d? http://matplotlib.sourceforge.net/mpl3d.zip +doc? http://matplotlib.sourceforge.net/users_guide_${PV}.pdf" + +IUSE="doc gtk tcltk mplot3d" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +LICENSE="PYTHON" + +DEPEND="virtual/python + || ( + >=dev-python/numeric-22 + dev-python/numarray + dev-python/numpy + ) + >=media-libs/freetype-2.1.7 + media-libs/libpng + sys-libs/zlib + gtk? ( >=dev-python/pygtk-1.99.16 ) + dev-python/pytz + dev-python/python-dateutil" + + +pkg_setup() { + if use tcltk; then + python_tkinter_exists + fi +} + +src_unpack() { + unpack ${A} + + cd "${S}" + + # disable autodetection, rely on USE instead + epatch "${FILESDIR}/${PN}-0.87-no-autodetect.patch" + sed -i \ + -e "/^BUILD_GTK/s/'auto'/$(use gtk && echo 1 || echo 0)/" \ + -e "/^BUILD_WX/s/'auto'/0/" \ + -e "/^BUILD_TK/s/'auto'/$(use tcltk && echo 1 || echo 0)/" \ + setup.py + + # patch to apply for mplot3d + # http://www.scipy.org/Cookbook/Matplotlib/mplot3D + if use mplot3d; then + cd ${WORKDIR}/3d + epatch "${FILESDIR}/${PN}-0.87-mplot3d.patch" + fi + +} + +src_install() { + distutils_src_install + + use mplot3d && cp -r ${WORKDIR}/3d \ + ${D}/usr/$(get_libdir)/python2.4/site-packages/mpl3d + + if use doc ; then + insinto /usr/share/doc/${PF}/examples + doins examples/*.py examples/README + insinto /usr/share/doc/${PF}/examples/data + doins examples/data/*.dat + insinto /usr/share/doc/${PF}/ + doins ${DISTDIR}/users_guide_*.pdf + fi +} |