about summary refs log tree commit diff
path: root/pkgs/applications/graphics/inkscape/fix-ps2pdf-path.patch
blob: 0a28533591e1e6333edc49000542b381dd6a3ba3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
diff -Naur inkscape-1.2.2_2022-12-01_b0a8486541.orig/share/extensions/eps_input.inx inkscape-1.2.2_2022-12-01_b0a8486541/share/extensions/eps_input.inx
--- inkscape-1.2.2_2022-12-01_b0a8486541.orig/share/extensions/eps_input.inx	2023-08-02 22:22:32.000000000 +0400
+++ inkscape-1.2.2_2022-12-01_b0a8486541/share/extensions/eps_input.inx	2023-08-02 22:23:34.000000000 +0400
@@ -3,7 +3,7 @@
     <name>EPS Input</name>
     <id>org.inkscape.input.eps</id>
     <dependency type="extension">org.inkscape.input.pdf</dependency>
-    <dependency type="executable" location="path">ps2pdf</dependency>
+    <dependency type="executable" location="absolute">@ghostscript@/bin/ps2pdf</dependency>
     <param name="crop" type="bool" gui-hidden="true">true</param>
     <param name="autorotate" type="optiongroup" appearance="combo" gui-text="Determine page orientation from text direction"
     gui-description="The PS/EPS importer can try to determine the page orientation such that the majority of the text runs left-to-right.">
diff -Naur inkscape-1.2.2_2022-12-01_b0a8486541.orig/share/extensions/ps_input.inx inkscape-1.2.2_2022-12-01_b0a8486541/share/extensions/ps_input.inx
--- inkscape-1.2.2_2022-12-01_b0a8486541.orig/share/extensions/ps_input.inx	2023-08-02 22:22:33.000000000 +0400
+++ inkscape-1.2.2_2022-12-01_b0a8486541/share/extensions/ps_input.inx	2023-08-02 22:24:00.000000000 +0400
@@ -3,7 +3,7 @@
     <name>PostScript Input</name>
     <id>org.inkscape.input.postscript_input</id>
     <dependency type="extension">org.inkscape.input.pdf</dependency>
-    <dependency type="executable" location="path">ps2pdf</dependency>
+    <dependency type="executable" location="absolute">@ghostscript@/bin/ps2pdf</dependency>
     <param name="autorotate" type="optiongroup" appearance="combo" gui-text="Determine page orientation from text direction"
     gui-description="The PS/EPS importer can try to determine the page orientation such that the majority of the text runs left-to-right.">
         <option value="None">Disabled</option>
diff -Naur inkscape-1.2.2_2022-12-01_b0a8486541.orig/share/extensions/ps_input.py inkscape-1.2.2_2022-12-01_b0a8486541/share/extensions/ps_input.py
--- inkscape-1.2.2_2022-12-01_b0a8486541.orig/share/extensions/ps_input.py	2023-08-02 22:22:32.000000000 +0400
+++ inkscape-1.2.2_2022-12-01_b0a8486541/share/extensions/ps_input.py	2023-08-02 22:23:48.000000000 +0400
@@ -79,7 +79,7 @@
         else:
             try:
                 call(
-                    "ps2pdf",
+                    "@ghostscript@/bin/ps2pdf",
                     crop,
                     "-dAutoRotatePages=/" + self.options.autorotate,
                     input_file,