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