diff options
author | Thomas Kahle <tomka@gentoo.org> | 2012-03-24 21:28:09 +0000 |
---|---|---|
committer | Thomas Kahle <tomka@gentoo.org> | 2012-03-24 21:28:09 +0000 |
commit | e9a8fc199af8a7261160b164cdc3810060900825 (patch) | |
tree | 9bef853e068a49290541156efd2053a432d0a0ea /sci-mathematics/singular/files | |
parent | Make opengl dependency soft in kde-workspace (except kwin) (diff) | |
download | gentoo-2-e9a8fc199af8a7261160b164cdc3810060900825.tar.gz gentoo-2-e9a8fc199af8a7261160b164cdc3810060900825.tar.bz2 gentoo-2-e9a8fc199af8a7261160b164cdc3810060900825.zip |
add 3.1.4 with python support. Kudos to all contributors from lmona.de and sage-on-gentoo
(Portage version: 2.1.10.50/cvs/Linux x86_64)
Diffstat (limited to 'sci-mathematics/singular/files')
-rw-r--r-- | sci-mathematics/singular/files/singular-3.1.3.2-python.patch | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/sci-mathematics/singular/files/singular-3.1.3.2-python.patch b/sci-mathematics/singular/files/singular-3.1.3.2-python.patch new file mode 100644 index 000000000000..2cc29c9a553b --- /dev/null +++ b/sci-mathematics/singular/files/singular-3.1.3.2-python.patch @@ -0,0 +1,45 @@ +--- Singular/pyobject.cc.orig 2011-01-31 15:03:16.000000000 +0100 ++++ Singular/pyobject.cc 2011-08-24 17:22:57.000000000 +0200 +@@ -14,7 +14,7 @@ + + + +- ++#include <Python.h> + + #include <Singular/mod2.h> + +@@ -27,7 +27,7 @@ + + #include <Singular/lists.h> + +-#include <Python.h> ++ + #include <iterator> // std::distance + #include <stdio.h> + +@@ -592,11 +592,12 @@ + long len = newElts.size(); + for (long idx = 0; idx < len; ++idx) + { +- char* name = newElts[idx][0].str(); ++ PythonObject current (newElts[idx]); ++ char* name = current.operator[](0).str(); + if (name && (*name != '\0') && (*name != '_')) + { + Py_XDECREF(get_current_definition(name)); +- newElts[idx][1].import_as(name); ++ newElts[idx].operator[](1).import_as(name); + } + + } +--- Singular/pyobject_setup.cc.orig 2011-02-10 19:15:30.000000000 +0100 ++++ Singular/pyobject_setup.cc 2011-08-24 17:23:55.000000000 +0200 +@@ -12,6 +12,7 @@ + **/ + //***************************************************************************** + ++#include <Python.h> + #include <Singular/mod2.h> + #include <kernel/febase.h> + #include "static.h" |