diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-02-10 14:02:46 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-02-10 14:02:46 +0100 |
commit | 3b96c7ee3570583c298cf89c22934467da24aa0c (patch) | |
tree | c03439e7801d06bba496b809934a51f0fc2ff22a /patches | |
parent | e01535ee6ea3d756528aab1b4ca454a2002daf9c (diff) | |
download | Nix-3b96c7ee3570583c298cf89c22934467da24aa0c.tar.gz Nix-3b96c7ee3570583c298cf89c22934467da24aa0c.tar.zst Nix-3b96c7ee3570583c298cf89c22934467da24aa0c.zip |
Add muttprint
Diffstat (limited to 'patches')
-rw-r--r-- | patches/muttprint_0.73-4.diff.gz | bin | 0 -> 16525 bytes | |||
-rw-r--r-- | patches/muttprint_regex.patch | 11 | ||||
-rw-r--r-- | patches/muttprint_two_edge.patch | 19 |
3 files changed, 30 insertions, 0 deletions
diff --git a/patches/muttprint_0.73-4.diff.gz b/patches/muttprint_0.73-4.diff.gz new file mode 100644 index 0000000..c4f3cef --- /dev/null +++ b/patches/muttprint_0.73-4.diff.gz | |||
Binary files differ | |||
diff --git a/patches/muttprint_regex.patch b/patches/muttprint_regex.patch new file mode 100644 index 0000000..e99c4a2 --- /dev/null +++ b/patches/muttprint_regex.patch | |||
@@ -0,0 +1,11 @@ | |||
1 | --- a/muttprint 2015-07-21 11:18:04.219578426 +1200 | ||
2 | +++ b/muttprint 2015-07-21 11:18:53.906243779 +1200 | ||
3 | @@ -1635,7 +1635,7 @@ | ||
4 | open (AUX, "$auxfile") or fatalError "Could not open $auxfile:\n$!"; | ||
5 | |||
6 | while (<AUX>) { | ||
7 | - ($numberOfPages) = /\\newlabel{LastPage}{{}{(\d+)}}/; | ||
8 | + ($numberOfPages) = /\\newlabel\{LastPage}\{\{}\{(\d+)}}/; | ||
9 | } | ||
10 | |||
11 | close AUX or fatalError "Could not close $auxfile:\n$!"; | ||
diff --git a/patches/muttprint_two_edge.patch b/patches/muttprint_two_edge.patch new file mode 100644 index 0000000..4a7290d --- /dev/null +++ b/patches/muttprint_two_edge.patch | |||
@@ -0,0 +1,19 @@ | |||
1 | --- a/muttprint 2016-05-05 13:48:50.515950744 +1200 | ||
2 | +++ b/muttprint 2016-05-05 13:52:10.722623902 +1200 | ||
3 | @@ -643,14 +643,14 @@ | ||
4 | if ($Config{PAPERSAVE} eq "on") { | ||
5 | if ($useCups) { | ||
6 | $Config{PRINT_COMMAND} =~ | ||
7 | - s/\$CUPS_OPTIONS/ -o sides=two-sided-long-edge \$CUPS_OPTIONS/; | ||
8 | + s/\$CUPS_OPTIONS/ -o sides=two-sided-short-edge \$CUPS_OPTIONS/; | ||
9 | } else { # no cups | ||
10 | modifyPS("landscape"); | ||
11 | } | ||
12 | } else { # no papersave | ||
13 | if ($useCups) { | ||
14 | $Config{PRINT_COMMAND} =~ | ||
15 | - s/\$CUPS_OPTIONS/ -o sides=two-sided-short-edge \$CUPS_OPTIONS/; | ||
16 | + s/\$CUPS_OPTIONS/ -o sides=two-sided-long-edge \$CUPS_OPTIONS/; | ||
17 | } else { # no cups | ||
18 | modifyPS("portrait"); | ||
19 | } | ||