From 3b96c7ee3570583c298cf89c22934467da24aa0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Sun, 10 Feb 2019 14:02:46 +0100 Subject: Add muttprint --- patches/muttprint_0.73-4.diff.gz | Bin 0 -> 16525 bytes patches/muttprint_regex.patch | 11 +++++++++++ patches/muttprint_two_edge.patch | 19 +++++++++++++++++++ 3 files changed, 30 insertions(+) create mode 100644 patches/muttprint_0.73-4.diff.gz create mode 100644 patches/muttprint_regex.patch create mode 100644 patches/muttprint_two_edge.patch (limited to 'patches') 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 Binary files /dev/null and b/patches/muttprint_0.73-4.diff.gz 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 @@ +--- a/muttprint 2015-07-21 11:18:04.219578426 +1200 ++++ b/muttprint 2015-07-21 11:18:53.906243779 +1200 +@@ -1635,7 +1635,7 @@ + open (AUX, "$auxfile") or fatalError "Could not open $auxfile:\n$!"; + + while () { +- ($numberOfPages) = /\\newlabel{LastPage}{{}{(\d+)}}/; ++ ($numberOfPages) = /\\newlabel\{LastPage}\{\{}\{(\d+)}}/; + } + + 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 @@ +--- a/muttprint 2016-05-05 13:48:50.515950744 +1200 ++++ b/muttprint 2016-05-05 13:52:10.722623902 +1200 +@@ -643,14 +643,14 @@ + if ($Config{PAPERSAVE} eq "on") { + if ($useCups) { + $Config{PRINT_COMMAND} =~ +- s/\$CUPS_OPTIONS/ -o sides=two-sided-long-edge \$CUPS_OPTIONS/; ++ s/\$CUPS_OPTIONS/ -o sides=two-sided-short-edge \$CUPS_OPTIONS/; + } else { # no cups + modifyPS("landscape"); + } + } else { # no papersave + if ($useCups) { + $Config{PRINT_COMMAND} =~ +- s/\$CUPS_OPTIONS/ -o sides=two-sided-short-edge \$CUPS_OPTIONS/; ++ s/\$CUPS_OPTIONS/ -o sides=two-sided-long-edge \$CUPS_OPTIONS/; + } else { # no cups + modifyPS("portrait"); + } -- cgit v1.2.3