3
0
Fork 0
forked from mirrors/nixpkgs

Add patch to handle /**/-style comments in Google::ProtocolBuffers

Patch thanks to Daniel Zinn
This commit is contained in:
Shea Levy 2013-01-16 13:59:15 -05:00
parent 729a112f72
commit f1054e5051
2 changed files with 15 additions and 0 deletions

View file

@ -0,0 +1,12 @@
diff -Naur Google-ProtocolBuffers-0.08-orig/lib/Google/ProtocolBuffers/Compiler.pm Google-ProtocolBuffers-0.08/lib/Google/ProtocolBuffers/Compiler.pm
--- Google-ProtocolBuffers-0.08-orig/lib/Google/ProtocolBuffers/Compiler.pm 2008-10-23 13:46:01.000000000 -0400
+++ Google-ProtocolBuffers-0.08/lib/Google/ProtocolBuffers/Compiler.pm 2013-01-16 13:52:09.855063997 -0500
@@ -16,7 +16,7 @@
my $grammar = <<'END_OF_GRAMMAR';
-proto : <skip: qr! (?: //.*\n | \s+ )* !x>
+proto : <skip: qr! (?: //.*?\n | \s+ | /\*.*?\*/\s* )* !xs>
## list of top level declarations.
## Skip empty declarations and ";".
(message | extend | enum | import | package | option | service | syntax | ";")(s) /\Z/

View file

@ -1781,6 +1781,9 @@ rec {
sha256 = "0pxfphg671wh56h59pf0zrj7m1cr0yga95hf3w54563pzcw2vqv3";
};
propagatedBuildInputs = [ ClassAccessor ParseRecDescent ];
patches = [
../development/perl-modules/Google-ProtocolBuffers-multiline-comments.patch
];
};
Graph = buildPerlPackage rec {