Upgrade to Encode 1.26, from Dan Kogai.
[p5sagit/p5-mst-13.2.git] / ext / Encode / JP / Makefile.PL
index 2b084aa..ce47d2f 100644 (file)
@@ -5,8 +5,11 @@ use ExtUtils::MakeMaker;
 my %tables = (
              euc_jp_t   => ['euc-jp.ucm'],
               sjis_t     => ['shiftjis.ucm',
-                            'macJapan.ucm',
+                            'macJapanese.ucm',
                             'cp932.ucm'],
+             raw_t      => [
+                            qw(jis0201.ucm jis0208.ucm jis0212.ucm)
+                            ],
              );
 
 my $name = 'JP';
@@ -130,9 +133,10 @@ sub postamble
                $continuator = '';
            }
        }
-        $str .= $^O eq 'VMS' # In VMS quote to preserve case
-            ? qq{\n\t\$(PERL) $enc2xs -"Q" -o \$\@ -f $table.fnm\n\n}
-            : qq{\n\t\$(PERL) $enc2xs -Q -o \$\@ -f $table.fnm\n\n};
+       my $plib   = $self->{PERL_CORE} ? '"-I$(PERL_LIB)"' : '';
+       my $ucopts = '-"Q"';
+       $str .=  
+           qq{\n\t\$(PERL) $plib $enc2xs $ucopts -o \$\@ -f $table.fnm\n\n};
        open (FILELIST, ">$table.fnm")
            || die "Could not open $table.fnm: $!";
        foreach my $file (@{$tables{$table}})