X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=ext%2FEncode%2FKR%2FMakefile.PL;h=4ba99ab82d680ec4209e70331700ee2147973fe4;hb=af1f55d9c3a7b3b07efc4feaa402d004e3fc2106;hp=d8d3cb35eec8124f8d7f2cc443c899c7060a5d00;hpb=a999c27c2ea2bb1e0c2a144cb34d484858a577d3;p=p5sagit%2Fp5-mst-13.2.git diff --git a/ext/Encode/KR/Makefile.PL b/ext/Encode/KR/Makefile.PL index d8d3cb3..4ba99ab 100644 --- a/ext/Encode/KR/Makefile.PL +++ b/ext/Encode/KR/Makefile.PL @@ -1,6 +1,7 @@ use 5.7.2; use strict; use ExtUtils::MakeMaker; +use strict; my %tables = (euc_kr_t => ['euc-kr.ucm', 'macKorean.ucm', @@ -10,6 +11,20 @@ my %tables = (euc_kr_t => ['euc-kr.ucm', johab_t => ['johab.ucm'], ); +unless ($ENV{AGGREGATE_TABLES}){ + my @ucm; + for my $k (keys %tables){ + push @ucm, @{$tables{$k}}; + } + %tables = (); + my $seq = 0; + for my $ucm (sort @ucm){ + # 8.3 compliance ! + my $t = sprintf ("%s_%02d_t", substr($ucm, 0, 2), $seq++); + $tables{$t} = [ $ucm ]; + } +} + my $name = 'KR'; WriteMakefile( @@ -131,8 +146,8 @@ sub postamble $continuator = ''; } } - my $plib = $ENV{PERL_CORE} ? '-I$(PERL_LIB)' : ''; - my $ucopts = ($^O eq 'VMS') ? '-"Q"' : '-Q'; # VMS tweaks + 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")