View | Details | Raw Unified | Return to bug 76569
Collapse All | Expand All

(-)/junk/wk/print/ghostscript-gnu/Makefile (-1 / +1 lines)
Lines 156-162 Link Here
156
#
156
#
157
# For that reason, integlation of stp driver is disabled by default.
157
# For that reason, integlation of stp driver is disabled by default.
158
GPRINT=		gimp-print
158
GPRINT=		gimp-print
159
GPRINT_VERS=	4.2.6
159
GPRINT_VERS=	4.2.7
160
GPRINT_NAME=	${GPRINT}-${GPRINT_VERS}
160
GPRINT_NAME=	${GPRINT}-${GPRINT_VERS}
161
GPRINT_SRCS=	${GPRINT_NAME}.tar.gz
161
GPRINT_SRCS=	${GPRINT_NAME}.tar.gz
162
162
(-)/junk/wk/print/ghostscript-gnu/Makefile.inc (-1 / +1 lines)
Lines 1-5 Link Here
1
# $FreeBSD: ports/print/ghostscript-gnu/Makefile.inc,v 1.5 2004/06/28 05:03:55 krion Exp $
1
# $FreeBSD: ports/print/ghostscript-gnu/Makefile.inc,v 1.5 2004/06/28 05:03:55 krion Exp $
2
2
3
GS_VERSION=	7.07
3
GS_VERSION=	7.07
4
GS_REVISION=	11
4
GS_REVISION=	12
5
GS_EPOCH=	0
5
GS_EPOCH=	0
(-)/junk/wk/print/ghostscript-gnu/distinfo (-2 / +2 lines)
Lines 8-15 Link Here
8
SIZE (ghostscript/pcl3-3.3.tar.gz) = 301470
8
SIZE (ghostscript/pcl3-3.3.tar.gz) = 301470
9
MD5 (ghostscript/gdevdj9.c.gz) = 3a9c20c34b79ffab434abfbcc31d1c27
9
MD5 (ghostscript/gdevdj9.c.gz) = 3a9c20c34b79ffab434abfbcc31d1c27
10
SIZE (ghostscript/gdevdj9.c.gz) = 20139
10
SIZE (ghostscript/gdevdj9.c.gz) = 20139
11
MD5 (ghostscript/gimp-print-4.2.6.tar.gz) = c7aae843d6a705cb8983b2f06c1f7819
11
MD5 (ghostscript/gimp-print-4.2.7.tar.gz) = 766be49f44a6a682d857e5aefec414d4
12
SIZE (ghostscript/gimp-print-4.2.6.tar.gz) = 5056790
12
SIZE (ghostscript/gimp-print-4.2.7.tar.gz) = 5178122
13
MD5 (ghostscript/gdevmd2k-0.2a.tar.gz) = 5ed2b4218b8f77cb411f3d2e4509ed24
13
MD5 (ghostscript/gdevmd2k-0.2a.tar.gz) = 5ed2b4218b8f77cb411f3d2e4509ed24
14
SIZE (ghostscript/gdevmd2k-0.2a.tar.gz) = 9955
14
SIZE (ghostscript/gdevmd2k-0.2a.tar.gz) = 9955
15
MD5 (ghostscript/gdevalps-0.21.tar.gz) = 553bee251b96105eb7d1d7f4027ac0e9
15
MD5 (ghostscript/gdevalps-0.21.tar.gz) = 553bee251b96105eb7d1d7f4027ac0e9
(-)/junk/wk/print/ghostscript-gnu/files/patch-lib:gs_init.ps (-4 / +12 lines)
Lines 1-6 Link Here
1
--- lib/gs_init.ps.orig	Fri Feb  1 12:25:45 2002
1
--- lib/gs_init.ps.orig	Sat Jan 22 13:15:37 2005
2
+++ lib/gs_init.ps	Sat Feb  9 01:42:10 2002
2
+++ lib/gs_init.ps	Sat Jan 22 13:15:05 2005
3
@@ -1274,7 +1274,7 @@
3
@@ -119,6 +119,7 @@
4
 currentdict /NOFONTPATH known   /NOFONTPATH exch def
5
 currentdict /NOGC known   /NOGC exch def
6
 currentdict /NOINTERPOLATE .knownget { /INTERPOLATE exch not def } if
7
+currentdict /NOMEDIAATTRS known /NOMEDIAATTRS exch def
8
 currentdict /NOPAGEPROMPT known   /NOPAGEPROMPT exch def
9
 currentdict /NOPAUSE known   /NOPAUSE exch def
10
 currentdict /NOPLATFONTS known   /NOPLATFONTS exch def
11
@@ -1274,7 +1275,7 @@
4
 % Set the default screen and BG/UCR.
12
 % Set the default screen and BG/UCR.
5
 /.setdefaultbgucr {
13
 /.setdefaultbgucr {
6
   systemdict /setblackgeneration known {
14
   systemdict /setblackgeneration known {
Lines 9-15 Link Here
9
   } if
17
   } if
10
 } bind def
18
 } bind def
11
 /.useloresscreen {	% - .useloresscreen <bool>
19
 /.useloresscreen {	% - .useloresscreen <bool>
12
@@ -1874,3 +1874,7 @@
20
@@ -1883,3 +1884,7 @@
13
 userdict /AGM_preserve_spots false put
21
 userdict /AGM_preserve_spots false put
14
 
22
 
15
 % The interpreter will run the initial procedure (start).
23
 % The interpreter will run the initial procedure (start).
(-)/junk/wk/print/ghostscript-gnu/files/patch-lib:gs_setpd.ps (-25 / +64 lines)
Lines 1-6 Link Here
1
--- lib/gs_setpd.ps.orig	Mon Mar 31 22:02:22 2003
1
--- lib/gs_setpd.ps.orig	Sat Apr 12 16:02:38 2003
2
+++ lib/gs_setpd.ps	Sat May 17 06:57:49 2003
2
+++ lib/gs_setpd.ps	Sat Jan 22 13:15:05 2005
3
@@ -323,21 +323,42 @@
3
@@ -324,21 +324,42 @@
4
     } bind
4
     } bind
5
 .dicttomark readonly def
5
 .dicttomark readonly def
6
 
6
 
Lines 14-45 Link Here
14
-/.inputselectionkeys [
14
-/.inputselectionkeys [
15
-  /MediaPosition /Orientation
15
-  /MediaPosition /Orientation
16
-] readonly def
16
-] readonly def
17
+% M. Sweet, Easy Software Products:
17
-
18
+%
19
+% Define NOMEDIAATTRS to turn the default (but unimplementable) media
20
+% selection policies for setpagedevice.  This is used by CUPS to
21
+% support the standard Adobe media attributes.
22
+currentdict /NOMEDIAATTRS known {
23
+  % Define the keys used in input attribute matching.
24
+  /.inputattrkeys [
25
+    /PageSize /MediaColor /MediaWeight /MediaType /InsertSheet
26
+	  % The following are documented in Adobe's supplement for v2017.
27
+    /LeadingEdge /MediaClass
28
+  ] readonly def
29
+  % Define other keys used in media selection.
30
+  /.inputselectionkeys [
31
+    /MediaPosition /Orientation
32
+  ] readonly def
33
 
34
-% Define the keys used in output attribute matching.
18
-% Define the keys used in output attribute matching.
35
-/.outputattrkeys [
19
-/.outputattrkeys [
36
-  /OutputType
20
-  /OutputType
37
-] readonly def
21
-] readonly def
38
+  % Define the keys used in output attribute matching.
22
+% M. Sweet, Easy Software Products:
39
+  /.outputattrkeys [
23
+%
40
+    /OutputType
24
+% Define NOMEDIAATTRS to turn off the default (but unimplementable) media
41
+  ] readonly def
25
+% selection policies for setpagedevice.  This is used by CUPS to support
42
+} {
26
+% the standard Adobe media attributes.
27
+NOMEDIAATTRS {
43
+  % Define only PageSize for input attribute matching.
28
+  % Define only PageSize for input attribute matching.
44
+  /.inputattrkeys [
29
+  /.inputattrkeys [
45
+    /PageSize
30
+    /PageSize
Lines 53-59 Link Here
53
+  /.outputattrkeys [
38
+  /.outputattrkeys [
54
+    /noOutputAttrKeys
39
+    /noOutputAttrKeys
55
+  ] readonly def
40
+  ] readonly def
41
+} {
42
+  % Define the keys used in input attribute matching.
43
+  /.inputattrkeys [
44
+    /PageSize /MediaColor /MediaWeight /MediaType /InsertSheet
45
+	  % The following are documented in Adobe's supplement for v2017.
46
+    /LeadingEdge /MediaClass
47
+  ] readonly def
48
+  % Define other keys used in media selection.
49
+  /.inputselectionkeys [
50
+    /MediaPosition /Orientation
51
+  ] readonly def
52
+
53
+  % Define the keys used in output attribute matching.
54
+  /.outputattrkeys [
55
+    /OutputType
56
+  ] readonly def
56
+} ifelse
57
+} ifelse
57
 
58
 
58
 % Define all the parameters that should always be copied to the merged
59
 % Define all the parameters that should always be copied to the merged
59
 % dictionary.
60
 % dictionary.
61
@@ -367,7 +388,13 @@
62
   /PageSize false		% obsolete alias for .MediaSize
63
   /InputAttributes false
64
   .inputattrkeys
65
-    { dup /PageSize eq
66
+    % M. Sweet, Easy Software Products:
67
+    %
68
+    % Treat LeadingEdge like PageSize so that a common Ghostscript driver
69
+    % doesn't need the NOMEDIAATTRS definition.
70
+    %
71
+    % { dup /PageSize eq
72
+    { dup dup /PageSize eq exch /LeadingEdge eq or
73
        { pop }
74
        { { 2 index /InputAttributes .knownget { null eq } { true } ifelse } }
75
       ifelse
76
@@ -442,11 +469,22 @@
77
 % They are expected to consume the top 2 operands.
78
 % NOTE: we currently treat all values other than 0, 1, or 7 (for PageSize)
79
 % the same as 0, i.e., we signal an error.
80
+%
81
+% M. Sweet, Easy Software Products:
82
+%
83
+% Define NOMEDIAATTRS to turn off the default (but unimplementable) media
84
+% selection policies for setpagedevice.  This is used by CUPS to support
85
+% the standard Adobe media attributes.
86
   0 {		% Set errorinfo and signal a configurationerror.
87
+      NOMEDIAATTRS {
88
+        % NOMEDIAATTRS means that the default policy is 7...
89
+        pop 2 index exch 7 put
90
+      } {
91
 	pop dup 4 index exch get 2 array astore
92
 	$error /errorinfo 3 -1 roll put
93
 	cleartomark
94
 	/setpagedevice load /configurationerror signalerror
95
+      } ifelse
96
   } bind
97
   1 {		% Roll back the failed request to its previous status.
98
 DEBUG { (Rolling back.) = pstack flush } if

Return to bug 76569