From a4a7daf069cba3ae4b90d832aa9df7624b4626a3 Mon Sep 17 00:00:00 2001 From: "Tobias C. Berner" Date: Thu, 22 Feb 2018 19:03:17 +0000 Subject: Give the KDE SC4 applications ports a -kde4 suffix In order to make room for the up-to-date version of the KDE Desktop and its applications move the KDE Application ports based on Qt4. PR: 225992 Exp-run by: antoine Reviewed by: rakuco, adridg Differential Revision: https://reviews.freebsd.org/D14413 --- ...h-src__backends__python2__python2extensions.cpp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 math/cantor-kde4/files/patch-src__backends__python2__python2extensions.cpp (limited to 'math/cantor-kde4/files/patch-src__backends__python2__python2extensions.cpp') diff --git a/math/cantor-kde4/files/patch-src__backends__python2__python2extensions.cpp b/math/cantor-kde4/files/patch-src__backends__python2__python2extensions.cpp new file mode 100644 index 000000000000..9ca9683b7ff7 --- /dev/null +++ b/math/cantor-kde4/files/patch-src__backends__python2__python2extensions.cpp @@ -0,0 +1,22 @@ +--- ./src/backends/python2/python2extensions.cpp.orig 2013-12-22 06:37:50.000000000 +0000 ++++ ./src/backends/python2/python2extensions.cpp 2014-01-29 22:46:16.542974457 +0000 +@@ -52,7 +52,7 @@ + QString Python2VariableManagementExtension::clearVariables() + { + QString delVariablesPythonSession = "for keyPythonBackend in dir():\n" \ +- " if (not 'PythonBackend' in keyPythonBackend)\ " \ ++ " if (not 'PythonBackend' in keyPythonBackend)\\ " \ + "and (not '__' in keyPythonBackend):\n" \ + " del(globals()[keyPythonBackend])\n" \ + "del(keyPythonBackend)\n"; +@@ -64,8 +64,8 @@ + QString classSavePythonSession = "import shelve\n" \ + "shelvePythonBackend = shelve.open('%1', 'n')\n" \ + "for keyPythonBackend in dir():\n" \ +- " if (not 'PythonBackend' in keyPythonBackend)\ " \ +- "and (not '__' in keyPythonBackend)\ " \ ++ " if (not 'PythonBackend' in keyPythonBackend)\\ " \ ++ "and (not '__' in keyPythonBackend)\\ " \ + "and (not '