diff options
author | mat <mat@FreeBSD.org> | 2016-05-20 17:30:19 +0800 |
---|---|---|
committer | mat <mat@FreeBSD.org> | 2016-05-20 17:30:19 +0800 |
commit | 55fd8e63ce92e4a3e72d0e2fcf08bd1d48efec6b (patch) | |
tree | b4c7d352ee489860df2c706a0229e10883ad5380 /textproc | |
parent | 0e810300c8598e3aa510613c46643c048563c36c (diff) | |
download | freebsd-ports-gnome-55fd8e63ce92e4a3e72d0e2fcf08bd1d48efec6b.tar.gz freebsd-ports-gnome-55fd8e63ce92e4a3e72d0e2fcf08bd1d48efec6b.tar.zst freebsd-ports-gnome-55fd8e63ce92e4a3e72d0e2fcf08bd1d48efec6b.zip |
Fix build with Perl 5.25.
Braces should be escaped in regexps.
With hat: perl@
Sponsored by: Absolight
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/p5-Lingua-EN-Tagger/files/patch-Makefile.PL | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/textproc/p5-Lingua-EN-Tagger/files/patch-Makefile.PL b/textproc/p5-Lingua-EN-Tagger/files/patch-Makefile.PL new file mode 100644 index 000000000000..8e7d13b8aed7 --- /dev/null +++ b/textproc/p5-Lingua-EN-Tagger/files/patch-Makefile.PL @@ -0,0 +1,20 @@ +--- Makefile.PL.orig 2012-05-28 13:24:29 UTC ++++ Makefile.PL +@@ -59,7 +59,7 @@ sub _load_words { + my ( $file ) = @_; + my $fh = new FileHandle $file; + while ( <$fh> ){ +- my ( $key, $data ) = m/^"?([^{"]+)"?: { (.*) }/; ++ my ( $key, $data ) = m/^"?([^{"]+)"?: \{ (.*) }/; + next unless $key and $data; + my %tags = split /[:,]\s+/, $data; + foreach( keys %tags ){ +@@ -73,7 +73,7 @@ sub _load_tags { + my ( $file ) = @_; + my $fh = new FileHandle $file; + while ( <$fh> ){ +- my ( $key, $data ) = m/^"?([^{"]+)"?: { (.*) }/; ++ my ( $key, $data ) = m/^"?([^{"]+)"?: \{ (.*) }/; + next unless $key and $data; + my %tags = split /[:,]\s+/, $data; + foreach( keys %tags ){ |