gnu: mkvtoolnix:gui: Don't require :out to be installed.
authorTobias Geerinckx-Rice <me@tobias.gr>
Mon, 26 Aug 2019 17:22:00 +0000 (19:22 +0200)
committerTobias Geerinckx-Rice <me@tobias.gr>
Tue, 27 Aug 2019 06:49:14 +0000 (08:49 +0200)
* gnu/packages/video.scm (mkvtoolnix)[arguments]: Add a
‘patch-relative-file-names’ phase to call ‘mkvmerge’ from :out.

gnu/packages/video.scm

index 055b9a0..43581e7 100644 (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