summaryrefslogtreecommitdiff
path: root/dev-tex/rubber/files/rubber-1.6.4-pythontex.patch
diff options
context:
space:
mode:
Diffstat (limited to 'dev-tex/rubber/files/rubber-1.6.4-pythontex.patch')
-rw-r--r--dev-tex/rubber/files/rubber-1.6.4-pythontex.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/dev-tex/rubber/files/rubber-1.6.4-pythontex.patch b/dev-tex/rubber/files/rubber-1.6.4-pythontex.patch
new file mode 100644
index 000000000000..2befc0e54ea5
--- /dev/null
+++ b/dev-tex/rubber/files/rubber-1.6.4-pythontex.patch
@@ -0,0 +1,30 @@
+From 9915f94d320662a719802e32763a7f4e2e4045c7 Mon Sep 17 00:00:00 2001
+From: Sebastian Pipping <sebastian@pipping.org>
+Date: Thu, 11 Apr 2024 20:25:55 +0200
+Subject: [PATCH] Invoke PythonTeX as "pythontex.py" in Gentoo
+
+In Gentoo:
+> /usr/bin/pythontex.py
+
+In Debian:
+> /usr/bin/pythontex
+---
+ rubber/latex_modules/pythontex.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/rubber/latex_modules/pythontex.py b/rubber/latex_modules/pythontex.py
+index 3c5675b..b0bb535 100644
+--- a/rubber/latex_modules/pythontex.py
++++ b/rubber/latex_modules/pythontex.py
+@@ -20,7 +20,7 @@ class PythonTeXDep(rubber.depend.Shell):
+ def __init__(self, document):
+ self.doc = document
+ basename = self.doc.basename()
+- super().__init__(('pythontex', basename))
++ super().__init__(('pythontex.py', basename))
+ self.pythontex_files = 'pythontex-files-' + basename
+
+ pytxcode = basename + '.pytxcode'
+--
+2.44.0
+