mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-15 19:35:25 -05:00
gnu: emacs-telega: Patch ffplay
instead of propagating.
* gnu/packages/emacs-xyz.scm (emacs-telega) [phases]: <telega-data-patch>: Rename to telega-paths-patch. <telega-paths-patch>: Substitute ffplay path for patching. [propagated-inputs] <ffmpeg>: Remove. [inputs] <ffmpeg>: Add. Fixes: #38590 <https://bugs.gnu.org/38590> Signed-off-by: Brett Gilio <brettg@posteo.net> Co-authored-by: Brett Gilio <brettg@posteo.net>
This commit is contained in:
parent
085bdfd092
commit
5f12df7ea6
1 changed files with 14 additions and 6 deletions
|
@ -20113,10 +20113,18 @@ (define-public emacs-telega
|
||||||
(("python3 run_tests.py")
|
(("python3 run_tests.py")
|
||||||
""))
|
""))
|
||||||
#t))
|
#t))
|
||||||
;; Modify telega-util to reflect unique dir name in
|
(add-after 'unpack 'telega-paths-patch
|
||||||
;; `telega-install-data' phase.
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
(add-after 'unpack 'telega-data-patch
|
;; Hard-code path to `ffplay`.
|
||||||
(lambda _
|
(let ((ffplay-bin (string-append (assoc-ref inputs "ffmpeg")
|
||||||
|
"/bin/ffplay")))
|
||||||
|
(substitute* "telega-ffplay.el"
|
||||||
|
(("\\(executable-find \"ffplay\"\\)")
|
||||||
|
(string-append
|
||||||
|
"(and (file-executable-p \"" ffplay-bin "\")"
|
||||||
|
"\"" ffplay-bin "\")"))))
|
||||||
|
;; Modify telega-util to reflect unique dir name in
|
||||||
|
;; `telega-install-data' phase.
|
||||||
(substitute* "telega-util.el"
|
(substitute* "telega-util.el"
|
||||||
(("\\(concat \"etc/\" filename\\) telega--lib-directory")
|
(("\\(concat \"etc/\" filename\\) telega--lib-directory")
|
||||||
"(concat \"telega-data/\" filename)
|
"(concat \"telega-data/\" filename)
|
||||||
|
@ -20149,7 +20157,6 @@ (define-public emacs-telega
|
||||||
(invoke "python3" "server/run_tests.py")
|
(invoke "python3" "server/run_tests.py")
|
||||||
#t))
|
#t))
|
||||||
(delete 'configure)
|
(delete 'configure)
|
||||||
|
|
||||||
;; Build emacs-side using `emacs-build-system'
|
;; Build emacs-side using `emacs-build-system'
|
||||||
(add-after 'compress-documentation 'emacs-add-source-to-load-path
|
(add-after 'compress-documentation 'emacs-add-source-to-load-path
|
||||||
(assoc-ref emacs:%standard-phases 'add-source-to-load-path))
|
(assoc-ref emacs:%standard-phases 'add-source-to-load-path))
|
||||||
|
@ -20168,9 +20175,10 @@ (define-public emacs-telega
|
||||||
(assoc-ref emacs:%standard-phases 'build))
|
(assoc-ref emacs:%standard-phases 'build))
|
||||||
(add-after 'emacs-build 'emacs-make-autoloads
|
(add-after 'emacs-build 'emacs-make-autoloads
|
||||||
(assoc-ref emacs:%standard-phases 'make-autoloads)))))
|
(assoc-ref emacs:%standard-phases 'make-autoloads)))))
|
||||||
|
(inputs
|
||||||
|
`(("ffmpeg" ,ffmpeg))) ; mp4/gif support.
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
`(("emacs-visual-fill-column" ,emacs-visual-fill-column)
|
`(("emacs-visual-fill-column" ,emacs-visual-fill-column)
|
||||||
("ffmpeg" ,ffmpeg) ; mp4/gif support.
|
|
||||||
("libwebp" ,libwebp))) ; sticker support.
|
("libwebp" ,libwebp))) ; sticker support.
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("tdlib" ,tdlib)
|
`(("tdlib" ,tdlib)
|
||||||
|
|
Loading…
Reference in a new issue