Changeset 98280
- Timestamp:
- Oct 1, 2012, 5:15:55 PM (12 years ago)
- Location:
- trunk/dports/print/a2ps-j
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dports/print/a2ps-j/Portfile
r86539 r98280 5 5 name a2ps-j 6 6 version 1.45 7 revision 37 revision 4 8 8 categories print textproc japanese 9 9 maintainers takanori openmaintainer -
trunk/dports/print/a2ps-j/files/patch-a2ps-j.diff
r86539 r98280 1 --- a2ps-j.orig 201 1-10-04 11:43:16.000000000 +09002 +++ a2ps-j 201 1-10-28 14:33:49.000000000 +09001 --- a2ps-j.orig 2012-02-23 15:04:21.000000000 +0900 2 +++ a2ps-j 2012-10-02 01:58:37.000000000 +0900 3 3 @@ -1,4 +1,4 @@ 4 4 -#!/usr/local/bin/perl … … 7 7 ;# a2ps: ascii to ps 8 8 ;# 9 @@ -192,7 +192,8 @@ 9 @@ -56,9 +56,12 @@ 10 @param_b4 = (10.15, 14.31, 1.40, 1.2, 8.50, 9.5, 0.29, 0.22, 0.08, 'b4'); 11 sub paper { 12 local(*param) = 'param_' . $_[0]; 13 - die "Unknown paper type: $_[0]\n" unless defined @param; 14 - ($width, $height, $lmargin, $smargin, $fontsize_l, $fontsize_p, 15 - $portrait_header, $landscape_header, $paper_adjust, $paper_tray) = @param; 16 + if (@param) { 17 + ($width, $height, $lmargin, $smargin, $fontsize_l, $fontsize_p, 18 + $portrait_header, $landscape_header, $paper_adjust, $paper_tray) = @param; 19 + } else { 20 + die "Unknown paper type: $_[0]\n"; 21 + } 22 } 23 &paper($default_paper); 24 25 @@ -192,7 +195,8 @@ 10 26 11 27 if ($debug == 2) { … … 17 33 'width', 'height', 'lmargin', 'smargin', 'font_size', 18 34 'sheet_height', 'sheet_width', 'char_width', 'skip_column', 19 @@ -208,8 +2 09,14 @@35 @@ -208,8 +212,14 @@ 20 36 $file = shift; 21 37 if ($file && !-r $file) { warn "$file: $!\n"; next; } … … 34 50 } else { 35 51 $file = '-' if $file eq ''; 36 @@ -410,7 +4 17,6 @@52 @@ -410,7 +420,6 @@ 37 53 unless ($selfconvert) { 38 54 shift while @_ > 0 && $_[0] eq ''; … … 42 58 if (($file = shift) ne '') { 43 59 open(STDIN, $file) || die "$file: $!\n"; 44 @@ -476,10 +48 2,13 @@60 @@ -476,10 +485,13 @@ 45 61 } 46 62 … … 59 75 60 76 print <<"---"; 61 @@ -525,7 +53 4,8 @@77 @@ -525,7 +537,8 @@ 62 78 printf("/lines %d def\n", $linesperpage); 63 79 printf("/columns %d def\n", $columnsperline); … … 69 85 printf("/doasciimag true def /asciimagsize %f def\n", $ascii_mag); 70 86 } else { 71 @@ -548,7 +5 58,8 @@87 @@ -548,7 +561,8 @@ 72 88 print "%%EndProlog\n\n"; 73 89 }
Note: See TracChangeset
for help on using the changeset viewer.