summary refs log tree commit diff
path: root/gnu
diff options
context:
space:
mode:
authorLiliana Marie Prikler <liliana.prikler@gmail.com>2022-03-27 09:49:02 +0200
committerLiliana Marie Prikler <liliana.prikler@gmail.com>2022-03-27 09:49:02 +0200
commit2344fb10972a4cefead8e7aa3e0b807da4cf4570 (patch)
tree41aa9a2058d91ddc4ee0157493a69f3ce1c10813 /gnu
parent943d4b775b9b1cc645e86206b0cf07da8d0030b3 (diff)
downloadguix-2344fb10972a4cefead8e7aa3e0b807da4cf4570.tar.gz
gnu: mcomix: Install messages.
* gnu/packages/image-viewer.scm (mcomix)[install-data]: Also install messages
subdirectory.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/image-viewers.scm19
1 files changed, 12 insertions, 7 deletions
diff --git a/gnu/packages/image-viewers.scm b/gnu/packages/image-viewers.scm
index 09c448e8f5..7e3154be91 100644
--- a/gnu/packages/image-viewers.scm
+++ b/gnu/packages/image-viewers.scm
@@ -697,13 +697,18 @@ imaging.  It supports several HDR and LDR image formats, and it can:
                  "if name in supported_formats_gdk: continue"))))
          (add-after 'install 'install-data
            (lambda* (#:key outputs #:allow-other-keys)
-             (copy-recursively
-              "mcomix/images"
-              (string-append (assoc-ref outputs "out")
-                             "/lib/python"
-                             #$(version-major+minor
-                                (package-version (this-package-input "python")))
-                             "/site-packages/mcomix/images"))))
+             (with-directory-excursion "mcomix"
+               (for-each
+                (lambda (subdir)
+                  (copy-recursively
+                   subdir
+                   (string-append
+                    (assoc-ref outputs "out")
+                    "/lib/python"
+                    #$(version-major+minor
+                       (package-version (this-package-input "python")))
+                    "/site-packages/mcomix/" subdir)))
+                '("images" "messages")))))
          (add-after 'glib-or-gtk-compile-schemas 'glib-or-gtk-wrap
            (assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-wrap))
          (add-after 'wrap 'gi-wrap