diff --git a/math/py-cypari2/Makefile b/math/py-cypari2/Makefile index e1e64d898703..e9a3367a3775 100644 --- a/math/py-cypari2/Makefile +++ b/math/py-cypari2/Makefile @@ -3,7 +3,7 @@ PORTNAME= cypari2 DISTVERSION= 2.1.1 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= math python PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} diff --git a/math/py-cypari2/files/patch-cypari2_gen.pyx b/math/py-cypari2/files/patch-cypari2_gen.pyx new file mode 100644 index 000000000000..484e5a5f0d26 --- /dev/null +++ b/math/py-cypari2/files/patch-cypari2_gen.pyx @@ -0,0 +1,11 @@ +--- cypari2/gen.pyx.orig 2019-04-23 10:57:51 UTC ++++ cypari2/gen.pyx +@@ -4109,7 +4109,7 @@ cdef class Gen(Gen_base): + non-constant polynomial, or False if f is reducible or constant. + """ + sig_on() +- t = isirreducible(self.g) ++ t = polisirreducible(self.g) + clear_stack() + return t != 0 + diff --git a/math/py-cypari2/files/patch-cypari2_paridecl.pxd b/math/py-cypari2/files/patch-cypari2_paridecl.pxd new file mode 100644 index 000000000000..c01ae1f8a0ac --- /dev/null +++ b/math/py-cypari2/files/patch-cypari2_paridecl.pxd @@ -0,0 +1,11 @@ +--- cypari2/paridecl.pxd.orig 2019-04-23 10:57:51 UTC ++++ cypari2/paridecl.pxd +@@ -3850,7 +3850,7 @@ cdef extern from *: # PARI headers already include + GEN glcm0(GEN x, GEN y) + GEN gp_factor0(GEN x, GEN flag) + GEN idealfactorback(GEN nf, GEN L, GEN e, int red) +- long isirreducible(GEN x) ++ long polisirreducible "isirreducible"(GEN x) + GEN newtonpoly(GEN x, GEN p) + GEN nffactorback(GEN nf, GEN L, GEN e) + GEN nfrootsQ(GEN x)