gnu: meld: Copy GTKSourceView styles.

This fixes a somewhat cryptic error, that pops up when gtksourceview-3 has not
been installed or propagated by any other package.

* gnu/packages/patchutils.scm (meld)[#:phases]: Add ‘copy-styles’.
This commit is contained in:
Liliana Marie Prikler 2021-09-14 23:27:37 +02:00
parent cb0e6ec211
commit 28e9284942
No known key found for this signature in database
GPG key ID: 442A84B8C70E2F87

View file

@ -298,6 +298,13 @@ (define-public meld
(invoke "py.test" "-v" "-k"
;; TODO: Those tests fail, why?
"not test_classify_change_actions")))
(add-after 'install 'copy-styles
(lambda* (#:key inputs outputs #:allow-other-keys)
(let ((styles "/share/gtksourceview-3.0/styles"))
(copy-recursively
(string-append (assoc-ref inputs "gtksourceview") styles)
(string-append (assoc-ref outputs "out") styles))
#t)))
(add-after 'wrap 'glib-or-gtk-wrap
(assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-wrap))
(add-after 'wrap 'wrap-typelib