[145649] trunk/dports/tex/biblatex-biber
raimue at macports.org
raimue at macports.org
Fri Feb 12 02:43:40 PST 2016
Revision: 145649
https://trac.macports.org/changeset/145649
Author: raimue at macports.org
Date: 2016-02-12 02:43:39 -0800 (Fri, 12 Feb 2016)
Log Message:
-----------
tex/biblatex-biber:
Silence warnings with perl 5.22 by backporting patch from Debian.
Also fixed in biber >= 2.2, but not updating due to incompatibility with
biblatex 3.0 as provided by texlive-latex-extra @37398.
Modified Paths:
--------------
trunk/dports/tex/biblatex-biber/Portfile
Added Paths:
-----------
trunk/dports/tex/biblatex-biber/files/
trunk/dports/tex/biblatex-biber/files/patch-perl5.22-regex.diff
Modified: trunk/dports/tex/biblatex-biber/Portfile
===================================================================
--- trunk/dports/tex/biblatex-biber/Portfile 2016-02-12 06:34:43 UTC (rev 145648)
+++ trunk/dports/tex/biblatex-biber/Portfile 2016-02-12 10:43:39 UTC (rev 145649)
@@ -23,7 +23,7 @@
perl5.setup Biber 2.1
version ${perl5.moduleversion}
-revision 2
+revision 3
categories tex
license {Artistic-2 GPL}
@@ -85,6 +85,8 @@
port:p${perl5.major}-xml-writer \
bin:mktexlsr:texlive-basic
+patchfiles patch-perl5.22-regex.diff
+
perl5.use_module_build
perl5.link_binaries_suffix
Added: trunk/dports/tex/biblatex-biber/files/patch-perl5.22-regex.diff
===================================================================
--- trunk/dports/tex/biblatex-biber/files/patch-perl5.22-regex.diff (rev 0)
+++ trunk/dports/tex/biblatex-biber/files/patch-perl5.22-regex.diff 2016-02-12 10:43:39 UTC (rev 145649)
@@ -0,0 +1,32 @@
+Bug: http://bugs.debian.org/796944
+Source: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=796944;att=1;msg=40;filename=fix-perl-regex-braces
+--- lib/Biber/Input/file/bibtex.pm
++++ lib/Biber/Input/file/bibtex.pm
+@@ -748,7 +748,7 @@
+ # Check for malformed names in names which aren't completely escaped
+
+ # Too many commas
+- unless ($name =~ m/\A{\X+}\z/xms) { # Ignore these tests for escaped names
++ unless ($name =~ m/\A\{\X+}\z/xms) { # Ignore these tests for escaped names
+ my @commas = $name =~ m/,/g;
+ if ($#commas > 1) {
+ biber_warn("Name \"$name\" has too many commas: skipping name", $bibentry);
+--- lib/Biber/LaTeX/Recode.pm
++++ lib/Biber/LaTeX/Recode.pm
+@@ -230,13 +230,13 @@
+ $text =~ s/\\not\\($re)/$map->{$1}/ge;
+ }
+ elsif ($type eq 'superscripts') {
+- $text =~ s/\\textsuperscript{($re)}/$map->{$1}/ge;
++ $text =~ s/\\textsuperscript\{($re)}/$map->{$1}/ge;
+ }
+ elsif ($type eq 'cmdsuperscripts') {
+- $text =~ s/\\textsuperscript{\\($re)}/$map->{$1}/ge;
++ $text =~ s/\\textsuperscript\{\\($re)}/$map->{$1}/ge;
+ }
+ elsif ($type eq 'dings') {
+- $text =~ s/\\ding{([2-9AF][0-9A-F])}/$map->{$1}/ge;
++ $text =~ s/\\ding\{([2-9AF][0-9A-F])}/$map->{$1}/ge;
+ }
+ elsif ($type eq 'letters') {
+ $text =~ s/\\($re)(?:\{\}|\s+|\b)/$map->{$1}/ge;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160212/ce257612/attachment.html>
More information about the macports-changes
mailing list