Permalink
Browse files

Merge branch 'matplotlib12'

  • Loading branch information...
2 parents 48694a7 + 753cf92 commit 101cb752aac27a473e18a2b42cc0e6d91fcfc205 @nbigaouette committed Nov 18, 2012
Showing with 156 additions and 4 deletions.
  1. +4 −4 dev-python/matplotlib/Manifest
  2. +152 −0 dev-python/matplotlib/matplotlib-1.2.0.ebuild
@@ -1,4 +1,4 @@
-DIST matplotlib-1.1.0.tar.gz 35842643 RMD160 9313fc6407271c46f3ac5af4c53df5ea57982711 SHA1 435b4f04a7e099b79f66451d69ad0b5ce66030ae SHA256 be37e1d86c65ecacae6683f8805e051e9904e5f2e02bf2b7a34262c46a6d06a7
-DIST matplotlib-sampledata.tar.bz2 1013421 RMD160 43a06cf7847cfe1ad744bd6444786b16843bb1f3 SHA1 b5335b05b6d3c05dcb052c81385f1304e465d2ee SHA256 0a9d45f1e5f31bee1e6efeb453775153d0553b721971830d6c1657a8d9640a3e
-EBUILD matplotlib-1.1.0.ebuild 6007 RMD160 52aee4d8bc9f2af88f9193c91038aa8d4663710c SHA1 2d27a4cf7bbe12bc2451e3202eca81f3f12166e3 SHA256 eae9963632b8ae198e72beb4e21f6ee70c3c1a3e09fe4496e41ff2e20e86cf4a
-EBUILD matplotlib-9999.ebuild 6416 RMD160 1956bc3ad7798eb822435b97389b099ec385baf6 SHA1 248b35088351a98530fb924708783f0c31378074 SHA256 05b43818c5184cdb013c38351a735de00688eda0d880195041c844de3a934442
+DIST matplotlib-1.2.0.tar.gz 36893347 SHA256 48fdb3b8f27010bc81ccf3925032768d499f82be979d9b6edccc4e2cced4dcaf SHA512 5b1a0fb52dcb21ca5f0ab71c8a49550e1e8cf633552ec6598dc43f0b32c03422bf5af65b30118c163231ecdddfd40846909336f16da318959106076e80a3fad0 WHIRLPOOL 586001ebb8e03bba9c83d30cc875db564d8c7091e086e343a8221123f2ccb3252110a3e2962045ba3a7bddc0b1362fba375f3138f8ae50dcc25338f60c8bf4a0
+DIST matplotlib-sampledata.tar.bz2 1013421 SHA256 0a9d45f1e5f31bee1e6efeb453775153d0553b721971830d6c1657a8d9640a3e
+EBUILD matplotlib-1.2.0.ebuild 3907 SHA256 61c8057b1590168ea3f066f86f8cb4e169e81c94ff98fadcdc429c7fbcd639f8 SHA512 a3db63c27822aca2740b083c73720b0a97c4610bb338273fa9e41594a74a18e2e735a934f71da64e649eb06f3b4512cc548f5221b4a514b5bbe3feb522faf01a WHIRLPOOL 01afdd5c24ea8b997f67164c0d1eddc831ce813c44b90b9cae3ddb1cd45b651d04bb55d979122a3a65f0aca1f214b9d0a47c6ea2aa8a8da0ff89eb5549f53d8b
+EBUILD matplotlib-9999.ebuild 6416 SHA256 05b43818c5184cdb013c38351a735de00688eda0d880195041c844de3a934442 SHA512 2e9d3d12e8469263459d0a91f5f8c4a5ee4b0b1f59a9039d02a43434263433f2750e6815e87364db6a7f93b193fc178f4a47a1d06b6a6144573cf6cdac13d42d WHIRLPOOL 1932402416b6bd0d7d942f935fa5d350a34ac297cbfd8bf27dee5737001bc3a94536157262ad11f0b4ef4ee5974f180789584e34fa4c40e3157f03df11592cd4
@@ -0,0 +1,152 @@
+# 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.1.1.ebuild,v 1.4 2012/11/06 10:58:40 ago Exp $
+
+EAPI="3"
+
+# python eclass bloat
+PYTHON_DEPEND="*"
+PYTHON_USE_WITH="tk"
+PYTHON_USE_WITH_OPT="tk"
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="*-jython 2.7-pypy-*"
+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 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
+ media-libs/freetype:2
+ media-libs/libpng
+ gtk? ( dev-python/pygtk )
+ 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)
+ cat > setup.cfg <<-EOF
+ [provide_packages]
+ pytz = False
+ dateutil = False
+ [gui_support]
+ $(use_setup cairo)
+ $(use_setup fltk)
+ $(use_setup gtk)
+ $(use_setup qt4)
+ $(use_setup tk)
+ $(use_setup wxwidgets wx)
+ 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"
+
+ distutils_src_prepare
+}
+
+src_compile() {
+ unset DISPLAY # bug #278524
+ distutils_src_compile
+ if use doc; then
+ cd "${S}/doc"
+ 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"
+ 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
+}

0 comments on commit 101cb75

Please sign in to comment.