source:
patches/intltool-0.51.0-perl-5.22-compatibility.patch@
230319c
Last change on this file since 230319c was 657587d, checked in by , 7 years ago | |
---|---|
|
|
File size: 2.3 KB |
-
intltool-update.in
Submitted by: Chris Staub (chris at clfs dot org) Date: 2017-06-10 Initial Package Version: 0.51 Origin: https://raw.githubusercontent.com/Alexpux/MSYS2-packages/master/intltool/perl-5.22-compatibility.patch Description: Updates Intltool to work with Perl 5.26 diff -Naur intltool-0.51.0.orig/intltool-update.in intltool-0.51.0/intltool-update.in
old new 1062 1062 } 1063 1063 } 1064 1064 1065 if ($str =~ /^(.*)\$ {?([A-Z_]+)}?(.*)$/)1065 if ($str =~ /^(.*)\$\{?([A-Z_]+)}?(.*)$/) 1066 1066 { 1067 1067 my $rest = $3; 1068 1068 my $untouched = $1; … … 1190 1190 $name =~ s/\(+$//g; 1191 1191 $version =~ s/\(+$//g; 1192 1192 1193 $varhash{"PACKAGE_NAME"} = $name if (not $name =~ /\$ {?AC_PACKAGE_NAME}?/);1194 $varhash{"PACKAGE"} = $name if (not $name =~ /\$ {?PACKAGE}?/);1195 $varhash{"PACKAGE_VERSION"} = $version if (not $name =~ /\$ {?AC_PACKAGE_VERSION}?/);1196 $varhash{"VERSION"} = $version if (not $name =~ /\$ {?VERSION}?/);1193 $varhash{"PACKAGE_NAME"} = $name if (not $name =~ /\$\{?AC_PACKAGE_NAME}?/); 1194 $varhash{"PACKAGE"} = $name if (not $name =~ /\$\{?PACKAGE}?/); 1195 $varhash{"PACKAGE_VERSION"} = $version if (not $name =~ /\$\{?AC_PACKAGE_VERSION}?/); 1196 $varhash{"VERSION"} = $version if (not $name =~ /\$\{?VERSION}?/); 1197 1197 } 1198 1198 1199 1199 if ($conf_source =~ /^AC_INIT\(([^,\)]+),([^,\)]+)[,]?([^,\)]+)?/m) … … 1219 1219 $version =~ s/\(+$//g; 1220 1220 $bugurl =~ s/\(+$//g if (defined $bugurl); 1221 1221 1222 $varhash{"PACKAGE_NAME"} = $name if (not $name =~ /\$ {?AC_PACKAGE_NAME}?/);1223 $varhash{"PACKAGE"} = $name if (not $name =~ /\$ {?PACKAGE}?/);1224 $varhash{"PACKAGE_VERSION"} = $version if (not $name =~ /\$ {?AC_PACKAGE_VERSION}?/);1225 $varhash{"VERSION"} = $version if (not $name =~ /\$ {?VERSION}?/);1226 $varhash{"PACKAGE_BUGREPORT"} = $bugurl if (defined $bugurl and not $bugurl =~ /\$ {?\w+}?/);1222 $varhash{"PACKAGE_NAME"} = $name if (not $name =~ /\$\{?AC_PACKAGE_NAME}?/); 1223 $varhash{"PACKAGE"} = $name if (not $name =~ /\$\{?PACKAGE}?/); 1224 $varhash{"PACKAGE_VERSION"} = $version if (not $name =~ /\$\{?AC_PACKAGE_VERSION}?/); 1225 $varhash{"VERSION"} = $version if (not $name =~ /\$\{?VERSION}?/); 1226 $varhash{"PACKAGE_BUGREPORT"} = $bugurl if (defined $bugurl and not $bugurl =~ /\$\{?\w+}?/); 1227 1227 } 1228 1228 1229 1229 # \s makes this not work, why?
Note:
See TracBrowser
for help on using the repository browser.