gnu: mkvtoolnix:gui: Don't require :out to be installed.

* gnu/packages/video.scm (mkvtoolnix)[arguments]: Add a
‘patch-relative-file-names’ phase to call ‘mkvmerge’ from :out.
This commit is contained in:
Tobias Geerinckx-Rice 2019-08-26 19:22:00 +02:00
parent df14dc48fb
commit 07272bd8e0
No known key found for this signature in database
GPG Key ID: 0DB0FF884F556D79
1 changed files with 7 additions and 0 deletions

View File

@ -418,6 +418,13 @@ H.264 (MPEG-4 AVC) video streams.")
"--enable-precompiled-headers=no")
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'patch-relative-file-names
(lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out")))
(substitute* "src/mkvtoolnix-gui/util/settings.cpp"
(("mkvmerge" match)
(string-append out "/bin/" match)))
#t)))
(add-before 'configure 'add-googletest
(lambda* (#:key inputs #:allow-other-keys)
(symlink