summaryrefslogtreecommitdiff
diff options
Diffstat (limited to 'www-apps/cgit/files/cgit-highlight.patch')
-rw-r--r--www-apps/cgit/files/cgit-highlight.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/www-apps/cgit/files/cgit-highlight.patch b/www-apps/cgit/files/cgit-highlight.patch
new file mode 100644
index 000000000000..9d03f2b0df70
--- /dev/null
+++ b/www-apps/cgit/files/cgit-highlight.patch
@@ -0,0 +1,16 @@
+cgit's highlighter script supports newer highlight versions, but the config has
+to be patched to enable that instead of the legacy version, which does not ship
+with Gentoo any more. See: https://bugs.gentoo.org/962035
+
+--- a/filters/syntax-highlighting.sh
++++ b/filters/syntax-highlighting.sh
+@@ -115,7 +115,7 @@
+ # found (for example) on EPEL 6.
+ #
+ # This is for version 2
+-exec highlight --force -f -I -X -S "$EXTENSION" 2>/dev/null
++#exec highlight --force -f -I -X -S "$EXTENSION" 2>/dev/null
+
+ # This is for version 3
+-#exec highlight --force -f -I -O xhtml -S "$EXTENSION" 2>/dev/null
++exec highlight --force -f -I -O xhtml -S "$EXTENSION" 2>/dev/null