summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Sanda <ps@twin.jikos.cz>2010-09-14 19:59:43 +0200
committerPavel Sanda <ps@twin.jikos.cz>2010-09-14 19:59:43 +0200
commit87c2400646c5f4ef6b48ff5b7296775aab01066a (patch)
tree5f359f84d14b734ad977be7da69587de8d78a782 /app-office/lyx/files/1.6.7-python.patch
parentBump fatrat (diff)
downloadrebutia-87c2400646c5f4ef6b48ff5b7296775aab01066a.tar.gz
rebutia-87c2400646c5f4ef6b48ff5b7296775aab01066a.tar.bz2
rebutia-87c2400646c5f4ef6b48ff5b7296775aab01066a.zip
Add living ebuild for LyX stable branch
Diffstat (limited to 'app-office/lyx/files/1.6.7-python.patch')
-rw-r--r--app-office/lyx/files/1.6.7-python.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/app-office/lyx/files/1.6.7-python.patch b/app-office/lyx/files/1.6.7-python.patch
new file mode 100644
index 0000000..3717cc8
--- /dev/null
+++ b/app-office/lyx/files/1.6.7-python.patch
@@ -0,0 +1,26 @@
+diff --git a/src/graphics/GraphicsConverter.cpp b/src/graphics/GraphicsConverter.cpp
+index 97c4f68..8f05e62 100644
+--- a/src/graphics/GraphicsConverter.cpp
++++ b/src/graphics/GraphicsConverter.cpp
+@@ -262,7 +262,7 @@ static void build_script(FileName const & from_file,
+ LYXERR(Debug::GRAPHICS, "build_script ... ");
+ typedef Graph::EdgePath EdgePath;
+
+- script << "#!/usr/bin/env python\n"
++ script << "#!/usr/bin/env python2\n"
+ "# -*- coding: utf-8 -*-\n"
+ "import os, shutil, sys\n\n"
+ "def unlinkNoThrow(file):\n"
+diff --git a/src/support/os.cpp b/src/support/os.cpp
+index 6984d2c..e6f17ff 100644
+--- a/src/support/os.cpp
++++ b/src/support/os.cpp
+@@ -26,7 +26,7 @@ string const python()
+ {
+ // Use the -tt switch so that mixed tab/whitespace indentation is
+ // an error
+- static string const command("python -tt");
++ static string const command("python2 -tt");
+ return command;
+ }
+