[arch-commits] Commit in sagemath/trunk (PKGBUILD contour.patch)

Antonio Rojas arojas at archlinux.org
Wed Jan 20 14:55:33 UTC 2016


    Date: Wednesday, January 20, 2016 @ 15:55:33
  Author: arojas
Revision: 158117

Fix plots breakage with matplotlib 1.5.1

Added:
  sagemath/trunk/contour.patch
Modified:
  sagemath/trunk/PKGBUILD

---------------+
 PKGBUILD      |    9 ++++++---
 contour.patch |   11 +++++++++++
 2 files changed, 17 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-01-20 14:55:17 UTC (rev 158116)
+++ PKGBUILD	2016-01-20 14:55:33 UTC (rev 158117)
@@ -9,7 +9,7 @@
 
 pkgname=sagemath
 pkgver=7.0
-pkgrel=1
+pkgrel=2
 pkgdesc="Open Source Mathematics Software, free alternative to Magma, Maple, Mathematica, and Matlab"
 arch=(i686 x86_64)
 url="http://www.sagemath.org"
@@ -31,7 +31,7 @@
 provides=(sage-mathematics)
 source=("$pkgname-$pkgver.tar.gz::https://github.com/sagemath/sage/archive/$pkgver.tar.gz" 
 	anal.h package.patch env.patch paths.patch clean.patch skip-check.patch
-	disable-fes.patch jupyter-path.patch test-optional.patch python-2.7.11.patch)
+	disable-fes.patch jupyter-path.patch test-optional.patch python-2.7.11.patch contour.patch)
 md5sums=('34807a7cf5dd79c008abd377ba1427fa'
          'a906a180d198186a39820b0a2f9a9c63'
          '9ba81f717ffd4e20b8b2f2a318307488'
@@ -42,7 +42,8 @@
          '4eb23a3c7363258bc9ba764d6e5512ba'
          '16b529194c6105c3364127bd8f1efa83'
          'cdcabd475b80afe0534a5621e972736e'
-         'ef927896f2071b442b1d07d7e69f5f3a')
+         'ef927896f2071b442b1d07d7e69f5f3a'
+         '930cb987f63fd465a3a7123b0f5c2b85')
 
 prepare(){
   cd sage-$pkgver
@@ -75,6 +76,8 @@
   patch -p0 -i ../jupyter-path.patch
 # fix timeit with Python 2.7.11
   patch -p0 -i ../python-2.7.11.patch
+# fix contour plots with matplotlib 1.5.1
+  patch -p0 -i ../contour.patch
 
 # Upstream patches  
 # fix build against libfes 0.2 http://trac.sagemath.org/ticket/15209

Added: contour.patch
===================================================================
--- contour.patch	                        (rev 0)
+++ contour.patch	2016-01-20 14:55:33 UTC (rev 158117)
@@ -0,0 +1,11 @@
+--- src/sage/plot/contour_plot.py.orig	2016-01-20 15:01:00.077409793 +0100
++++ src/sage/plot/contour_plot.py	2016-01-20 15:01:22.591370847 +0100
+@@ -568,7 +568,7 @@
+     g.add_primitive(ContourPlot(xy_data_array, xrange, yrange, options))
+     return g
+ 
+- at options(plot_points=150, contours=(0,0), fill=False, cmap=["blue"])
++ at options(plot_points=150, contours=(0,1e-20), fill=False, cmap=["blue"])
+ def implicit_plot(f, xrange, yrange, **options):
+     r"""
+     ``implicit_plot`` takes a function of two variables, `f(x,y)`



More information about the arch-commits mailing list