mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-06 02:17:34 -08:00
www-apps/cgit: Fix app-text/highlight compatibility
cgit's highlighter script supports newer highlight versions, but the code had to be patched to enable that instead of the legacy version, that does not ship with Gentoo any more. Signed-off-by: Zoltan Puskas <zoltan@sinustrom.info> Closes: https://bugs.gentoo.org/962035 Part-of: https://github.com/gentoo/gentoo/pull/43582 Closes: https://github.com/gentoo/gentoo/pull/43582 Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>
This commit is contained in:
parent
2d7e86d43b
commit
3bb4993828
@ -58,6 +58,8 @@ BDEPEND="
|
||||
)
|
||||
"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${PN}-highlight.patch )
|
||||
|
||||
pkg_setup() {
|
||||
python_setup
|
||||
webapp_pkg_setup
|
||||
@ -61,6 +61,8 @@ BDEPEND="
|
||||
)
|
||||
"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${PN}-highlight.patch )
|
||||
|
||||
pkg_setup() {
|
||||
python_setup
|
||||
webapp_pkg_setup
|
||||
|
||||
@ -58,6 +58,8 @@ BDEPEND="
|
||||
)
|
||||
"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${PN}-highlight.patch )
|
||||
|
||||
pkg_setup() {
|
||||
python_setup
|
||||
webapp_pkg_setup
|
||||
|
||||
16
www-apps/cgit/files/cgit-highlight.patch
Normal file
16
www-apps/cgit/files/cgit-highlight.patch
Normal file
@ -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
|
||||
Loading…
x
Reference in New Issue
Block a user