Permalink
Browse files

fix PkgConfig on windows (run4flat++)

  • Loading branch information...
1 parent 1a1fe7f commit 6e8f381490ca8f9500ec247e69db6dc4b91ae2b6 @jberger jberger committed Oct 9, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Alien/Base/PkgConfig.pm
@@ -43,9 +43,9 @@ sub read {
or croak "Cannot open .pc file $path: $!";
while (<$fh>) {
- if (/(.*?)=(.*)/) {
+ if (/(.*?)=([^\n\r]*)/) {
$self->{vars}{$1} = $2;
- } elsif (/^(.*?):\s*(.*)/) {
+ } elsif (/^(.*?):\s*([^\n\r]*)/) {
$self->{keywords}{$1} = $2;
}
}

0 comments on commit 6e8f381

Please sign in to comment.