summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-misc/grc/files/grc-1.4-support-more-files.patch')
-rw-r--r--app-misc/grc/files/grc-1.4-support-more-files.patch53
1 files changed, 53 insertions, 0 deletions
diff --git a/app-misc/grc/files/grc-1.4-support-more-files.patch b/app-misc/grc/files/grc-1.4-support-more-files.patch
new file mode 100644
index 000000000000..d90fe86bb16f
--- /dev/null
+++ b/app-misc/grc/files/grc-1.4-support-more-files.patch
@@ -0,0 +1,53 @@
+--- grc-1.4.orig/conf.gcc
++++ grc-1.4/conf.gcc
+@@ -1,7 +1,7 @@
+ #
+-regexp=\bgcc\b
+-colours=yellow
+-count=more
++regexp=\b(g?cc|[gc]\+\+|g?as|ld)\b
++colours=white bold
++count=once
+ .........
+ #
+ regexp=^[^:\s]*?:\d+:
+@@ -15,6 +15,10 @@
+ regexp=\`[A-Za-z0-9_():&*]+( const)?\'
+ colours=magenta
+ .........
++# compilation method modifiers
++regexp=\s\-(O\d?|f\S+|pthread|g\S*|c|W\S,\S+)\b
++colours=yellow
++.........
+ # -O
+ regexp=\-O\d
+ colours=green
+@@ -27,7 +31,7 @@
+ # stderr to grcat
+ #
+ # warning
+-regexp=warning:.*
++regexp=[Ww]arning[:\b]
+ colours=white
+ .........
+ regexp=warning:
+@@ -35,7 +39,7 @@
+ count=once
+ .........
+ # error
+-regexp=error:.*
++regexp=[Ee]rror[:\b]
+ colours=bold white
+ .........
+ regexp=error:
+--- grc-1.4.orig/grc.conf
++++ grc-1.4/grc.conf
+@@ -19,7 +19,7 @@
+ conf.traceroute
+
+ # gcc command
+-(^|[/\w\.]+/)g?cc\s
++(^|[/\w\.]+/)(g?cc|[gc]\+\+)\s
+ conf.gcc
+
+ # make command