From f14b48b11ac6a9af9ce16712f165aab754436282 Mon Sep 17 00:00:00 2001 From: Justin Lecher Date: Fri, 15 Jan 2016 10:25:01 +0100 Subject: dev-python/matplotlib: Backport test fix and skip next one Package-Manager: portage-2.2.26 Signed-off-by: Justin Lecher --- .../files/matplotlib-1.5.1-test-fix-backport.patch | 115 +++++++++++++++++++++ dev-python/matplotlib/matplotlib-1.5.1.ebuild | 8 +- 2 files changed, 120 insertions(+), 3 deletions(-) create mode 100644 dev-python/matplotlib/files/matplotlib-1.5.1-test-fix-backport.patch (limited to 'dev-python/matplotlib') 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 000000000000..d031e5aeee66 --- /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 053e68ddca5c..9fabf36f5dca 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 -- cgit v1.2.3