diff --git a/dev-python/matplotlib/files/matplotlib-1.5.1-test-fix-backport.patch b/dev-python/matplotlib/files/matplotlib-1.5.1-test-fix-backport.patch new file mode 100644 index 0000000000000..d031e5aeee66a --- /dev/null +++ b/dev-python/matplotlib/files/matplotlib-1.5.1-test-fix-backport.patch @@ -0,0 +1,115 @@ +From 72cf5b80537157decc741d81db550e6cf82648f6 Mon Sep 17 00:00:00 2001 +From: Michael Droettboom +Date: Mon, 11 Jan 2016 16:48:04 -0500 +Subject: [PATCH] Fix #5829. Update the baseline image. + +--- + .../baseline_images/test_image/rasterize_10dpi.svg | 56 ++++++++++------------ + 1 file changed, 26 insertions(+), 30 deletions(-) + +diff --git a/lib/matplotlib/tests/baseline_images/test_image/rasterize_10dpi.svg b/lib/matplotlib/tests/baseline_images/test_image/rasterize_10dpi.svg +index 47e354d..1f73c8f 100644 +--- a/lib/matplotlib/tests/baseline_images/test_image/rasterize_10dpi.svg ++++ b/lib/matplotlib/tests/baseline_images/test_image/rasterize_10dpi.svg +@@ -5,31 +5,29 @@ + + + + + + +- + + + +- + +- +- ++ + + +@@ -37,43 +35,41 @@ iVBORw0KGgoAAAANSUhEUgAAAAgAAAAHCAYAAAA1WQxeAAAABHNCSVQICAgIfAhkiAAAAIVJREFUCJmF + + + +- + +- ++ + + + + + +- + + +- ++ + + + + + + +- ++ + + +- ++ + + + diff --git a/dev-python/matplotlib/matplotlib-1.5.1.ebuild b/dev-python/matplotlib/matplotlib-1.5.1.ebuild index 053e68ddca5c9..9fabf36f5dcae 100644 --- a/dev-python/matplotlib/matplotlib-1.5.1.ebuild +++ b/dev-python/matplotlib/matplotlib-1.5.1.ebuild @@ -110,6 +110,8 @@ RDEPEND="${COMMON_DEPEND} # Other than that, the ebuild shall be fit for out-of-source build. DISTUTILS_IN_SOURCE_BUILD=1 +PATCHES=( "${FILESDIR}"/${P}-test-fix-backport.patch ) + pkg_setup() { unset DISPLAY # bug #278524 use doc && DISTUTILS_ALL_SUBPHASE_IMPLS=( python2.7 ) @@ -154,10 +156,10 @@ python_prepare_all() { -e "s:/usr/:${EPREFIX}/usr/:g" \ -i setupext.py || die - # https://github.com/matplotlib/matplotlib/issues/5829 + # https://github.com/matplotlib/matplotlib/issues/5857 sed \ - -e '/rasterize_10dpi/s:5e-2:10:g' \ - -i lib/matplotlib/tests/test_image.py || die + -e 's:test_pep8_conformance_examples:_&:g' \ + -i lib/matplotlib/tests/test_coding_standards.py || die export XDG_RUNTIME_DIR="${T}/runtime-dir" mkdir "${XDG_RUNTIME_DIR}" || die