gnu: mkvtoolnix: Move all GUI files to the "gui" output.

* gnu/packages/video.scm (mkvtoolnix)[arguments]: Do it.
This commit is contained in:
Pierre Neidhardt 2019-03-15 20:32:36 +01:00
parent 0754f29afc
commit b55db49481
No known key found for this signature in database
GPG Key ID: 9BDCF497A4BBCC7F

View File

@ -437,15 +437,29 @@ H.264 (MPEG-4 AVC) video streams.")
(add-after 'install 'post-install (add-after 'install 'post-install
(lambda* (#:key outputs #:allow-other-keys) (lambda* (#:key outputs #:allow-other-keys)
;; Move the Qt interface to "gui". ;; Move the Qt interface to "gui".
(let ((out (assoc-ref outputs "out")) (let* ((out (assoc-ref outputs "out"))
(gui (assoc-ref outputs "gui"))) (gui (assoc-ref outputs "gui"))
(strip-store-dir (lambda (path)
(substring path (string-prefix-length out path)))))
(for-each (for-each
(lambda (file) (lambda (file)
(mkdir-p (string-append gui (dirname file))) (mkdir-p (string-append gui (dirname file)))
(rename-file (string-append out file) (rename-file (string-append out file)
(string-append gui file))) (string-append gui file)))
'("/bin/mkvtoolnix-gui" (append '("/bin/mkvtoolnix-gui"
"/share/applications/org.bunkus.mkvtoolnix-gui.desktop"))) "/share/applications/org.bunkus.mkvtoolnix-gui.desktop"
"/share/metainfo/org.bunkus.mkvtoolnix-gui.appdata.xml"
"/share/mime/packages/org.bunkus.mkvtoolnix-gui.xml")
(map strip-store-dir (find-files out "\\.ogg$"))
(map strip-store-dir (find-files out "mkvtoolnix-gui\\.png$"))
(map strip-store-dir (find-files out "mkvtoolnix-gui\\.1"))))
(for-each
(lambda (file)
(delete-file-recursively (string-append out file)))
'("/share/applications"
"/share/metainfo"
"/share/mime"
"/share/mkvtoolnix")))
#t))))) #t)))))
(home-page "https://mkvtoolnix.download") (home-page "https://mkvtoolnix.download")
(synopsis "Tools to create, alter and inspect Matroska files") (synopsis "Tools to create, alter and inspect Matroska files")