diff options
author | skv <skv@FreeBSD.org> | 2009-03-29 04:45:10 +0800 |
---|---|---|
committer | skv <skv@FreeBSD.org> | 2009-03-29 04:45:10 +0800 |
commit | 0845a9092be27f06f835de5f7ab85a6ad1f99157 (patch) | |
tree | 893a11ba9c38666479720f77b2a35d21e8b42f6c /textproc | |
parent | 6ec98793d23a422c2da73eeb226c51d29415ccc7 (diff) | |
download | freebsd-ports-gnome-0845a9092be27f06f835de5f7ab85a6ad1f99157.tar.gz freebsd-ports-gnome-0845a9092be27f06f835de5f7ab85a6ad1f99157.tar.zst freebsd-ports-gnome-0845a9092be27f06f835de5f7ab85a6ad1f99157.zip |
Introduce Perl 5.10.0
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/po4a/files/patch-perl5.10 | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/textproc/po4a/files/patch-perl5.10 b/textproc/po4a/files/patch-perl5.10 new file mode 100644 index 000000000000..b9bbda459261 --- /dev/null +++ b/textproc/po4a/files/patch-perl5.10 @@ -0,0 +1,63 @@ +--- po4a ++++ po4a +@@ -440,10 +440,10 @@ + $opts{"msgmerge-opt"} .= " --previous" if $previous; + + # options to transmit to the modules +- %{$opts{"options"}} = ( ++ $opts{"options"} = { + "verbose" => $opts{"verbose"}, + "debug" => $opts{"debug"} +- ); ++ }; + foreach (@options) { + if (m/^([^=]*)=(.*)$/) { + $opts{"options"}{$1}="$2"; +@@ -498,10 +498,10 @@ + if (! defined $lang) { + $lang = "global"; + } +- if (! defined ${%$options}{$lang}) { +- ${%$options}{$lang} = $opt; ++ if (! defined $options->{$lang}) { ++ $options->{$lang} = $opt; + } else { +- ${%$options}{$lang} .= " $opt"; ++ $options->{$lang} .= " $opt"; + } + } else { + last; +@@ -638,20 +638,20 @@ + my %options; + # 1. Use the global options ([opt] ...) + %options = %{$document{''}{'options'}} +- if defined %{$document{''}{'options'}}; ++ if defined $document{''}{'options'}; + + # 2. Merge the alias options + if (defined $aliases{$1}) { + $document{$main}{'format'} = $aliases{$1}{"module"}; +- if (defined %{$aliases{$1}{"options"}}) { +- %options = %{$aliases{$1}{"options"}}; ++ if (defined $aliases{$1}{"options"}) { ++ %options = %{$aliases{$1}{"options"}}; # XXX not a merge, but overwrite + } + } + + # 3. If this file was already specified, reuse the previous + # options (no merge) + %options = %{$document{$main}{'options'}} +- if defined %{$document{$main}{'options'}}; ++ if defined $document{$main}{'options'}; + + # 4. Merge the document specific options + # separate the end of the line, which contains options. +@@ -697,7 +697,7 @@ + $o =~ s/.*?\[options\] +//; + parse_config_options("$config_file:$nb", + $o, +- \%{$document{''}{"options"}}); ++ $document{''}{"options"}); + } else { + die wrap_ref_mod("$config_file:$nb", "", + gettext("Unparsable command '%s'."), $cmd); |