unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#59000] [PATCH 1/2] gnu: Add emacs-waveform.
@ 2022-11-03 18:08 jgart via Guix-patches via
  2022-11-03 18:09 ` [bug#59000] [PATCH 1/2] gnu: Add emacs-mpv jgart via Guix-patches via
  2022-11-03 18:14 ` [bug#59000] [PATCH v2 1/2] gnu: Add emacs-mpv jgart via Guix-patches via
  0 siblings, 2 replies; 6+ messages in thread
From: jgart via Guix-patches via @ 2022-11-03 18:08 UTC (permalink / raw)
  To: 59000





^ permalink raw reply	[flat|nested] 6+ messages in thread

* [bug#59000] [PATCH 1/2] gnu: Add emacs-mpv.
  2022-11-03 18:08 [bug#59000] [PATCH 1/2] gnu: Add emacs-waveform jgart via Guix-patches via
@ 2022-11-03 18:09 ` jgart via Guix-patches via
  2022-11-03 18:09   ` [bug#59000] [PATCH 2/2] gnu: Add emacs-waveform jgart via Guix-patches via
  2022-11-03 18:14 ` [bug#59000] [PATCH v2 1/2] gnu: Add emacs-mpv jgart via Guix-patches via
  1 sibling, 1 reply; 6+ messages in thread
From: jgart via Guix-patches via @ 2022-11-03 18:09 UTC (permalink / raw)
  To: 59000; +Cc: jgart

* gnu/packages/emacs-xyz.scm (emacs-mpv): New variable.
---
 gnu/packages/emacs-xyz.scm | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 8478a47591..c2942c5b79 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -33700,6 +33700,42 @@ (define-public emacs-flymake-mypy
 using mypy.")
       (license license:bsd-2))))
 
+(define-public emacs-mpv
+  ;; No release since Dec 28, 2021.
+  (let ((commit "2e0234bc21a3dcdf12d94d3285475e7f6769d3e8")
+        (revision "0"))
+    (package
+      (name "emacs-mpv")
+      (version (git-version "0.0.0" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/kljohann/mpv.el")
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "0mvzg2wqpycny2dmiyp8jm0fflvll7ay6scvsb9rxgfwimr2vbw5"))))
+      (build-system emacs-build-system)
+      (arguments
+       (list
+        #:tests? #f ; There are no tests.
+        #:phases
+        #~(modify-phases %standard-phases
+            (add-after 'set-mpv-el-version 'patch-exec-paths
+              (lambda* (#:key inputs #:allow-other-keys)
+                (make-file-writable "mpv.el")
+                (emacs-substitute-variables "mpv.el"
+                  ("mpv-executable"
+                   (search-input-file inputs "/bin/mpv"))))))))
+      (inputs (list mpv))
+      (home-page "https://github.com/kljohann/mpv.el/")
+      (synopsis "Control mpv for easy note taking")
+      (description
+"This package is a potpourri of helper functions to control a @code{mpv}
+process via its IPC interface.")
+      (license license:gpl3+))))
+  
 (define-public emacs-project-x
   ;; There is no proper release.
   ;; The base version is extracted from the README.org.
-- 
2.38.1





^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [bug#59000] [PATCH 2/2] gnu: Add emacs-waveform.
  2022-11-03 18:09 ` [bug#59000] [PATCH 1/2] gnu: Add emacs-mpv jgart via Guix-patches via
@ 2022-11-03 18:09   ` jgart via Guix-patches via
  0 siblings, 0 replies; 6+ messages in thread
From: jgart via Guix-patches via @ 2022-11-03 18:09 UTC (permalink / raw)
  To: 59000; +Cc: jgart

* gnu/packages/emacs-xyz.scm (emacs-waveform): New variable.
---
 gnu/packages/emacs-xyz.scm | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index c2942c5b79..6fba8e6db8 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -33736,6 +33736,42 @@ (define-public emacs-mpv
 process via its IPC interface.")
       (license license:gpl3+))))
   
+(define-public emacs-waveform
+  (let ((commit "ee52c6a72b3e9890743e3a6e2fc1f3195f5687b2")
+        (revision "0"))
+    (package
+      (name "emacs-waveform")
+      (version (git-version "0.0.0" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/sachac/waveform-el")
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "0cxyvp2aav27znc7mf6c83q5pddpdniaqkrxn1r8dbgr540qmnpn"))))
+      (build-system emacs-build-system)
+      (arguments
+       (list
+        #:tests? #f ; There are no tests.
+        #:phases
+        #~(modify-phases %standard-phases
+            (add-after 'set-waveform-el-version 'patch-exec-paths
+              (lambda* (#:key inputs #:allow-other-keys)
+                (make-file-writable "lisp/waveform-el-sequence.el")
+                (emacs-substitute-variables "waveform.el"
+                  ("waveform-ffmpeg-executable"
+                   (search-input-file inputs "/bin/ffmpeg"))))))))
+      (inputs (list ffmpeg))
+      (propagated-inputs (list emacs-mpv))
+      (home-page "https://github.com/sachac/waveform-el/")
+      (synopsis "Display a waveform and use it to navigate")
+      (description
+"This package displays a waveform of a sound file.  It is intended to
+be used with @code{emacs-mpv}")
+      (license license:gpl3+))))
+  
 (define-public emacs-project-x
   ;; There is no proper release.
   ;; The base version is extracted from the README.org.
-- 
2.38.1





^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [bug#59000] [PATCH v2 1/2] gnu: Add emacs-mpv.
  2022-11-03 18:08 [bug#59000] [PATCH 1/2] gnu: Add emacs-waveform jgart via Guix-patches via
  2022-11-03 18:09 ` [bug#59000] [PATCH 1/2] gnu: Add emacs-mpv jgart via Guix-patches via
@ 2022-11-03 18:14 ` jgart via Guix-patches via
  2022-11-03 18:15   ` [bug#59000] [PATCH v2 2/2] gnu: Add emacs-waveform jgart via Guix-patches via
  2022-11-06 14:13   ` [bug#59000] [PATCH v2 1/2] gnu: Add emacs-mpv Nicolas Goaziou
  1 sibling, 2 replies; 6+ messages in thread
From: jgart via Guix-patches via @ 2022-11-03 18:14 UTC (permalink / raw)
  To: 59000; +Cc: jgart

* gnu/packages/emacs-xyz.scm (emacs-mpv): New variable.

hi, ignore v1
---
 gnu/packages/emacs-xyz.scm | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 8478a47591..c2942c5b79 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -33700,6 +33700,42 @@ (define-public emacs-flymake-mypy
 using mypy.")
       (license license:bsd-2))))
 
+(define-public emacs-mpv
+  ;; No release since Dec 28, 2021.
+  (let ((commit "2e0234bc21a3dcdf12d94d3285475e7f6769d3e8")
+        (revision "0"))
+    (package
+      (name "emacs-mpv")
+      (version (git-version "0.0.0" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/kljohann/mpv.el")
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "0mvzg2wqpycny2dmiyp8jm0fflvll7ay6scvsb9rxgfwimr2vbw5"))))
+      (build-system emacs-build-system)
+      (arguments
+       (list
+        #:tests? #f ; There are no tests.
+        #:phases
+        #~(modify-phases %standard-phases
+            (add-after 'set-mpv-el-version 'patch-exec-paths
+              (lambda* (#:key inputs #:allow-other-keys)
+                (make-file-writable "mpv.el")
+                (emacs-substitute-variables "mpv.el"
+                  ("mpv-executable"
+                   (search-input-file inputs "/bin/mpv"))))))))
+      (inputs (list mpv))
+      (home-page "https://github.com/kljohann/mpv.el/")
+      (synopsis "Control mpv for easy note taking")
+      (description
+"This package is a potpourri of helper functions to control a @code{mpv}
+process via its IPC interface.")
+      (license license:gpl3+))))
+  
 (define-public emacs-project-x
   ;; There is no proper release.
   ;; The base version is extracted from the README.org.
-- 
2.38.1





^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [bug#59000] [PATCH v2 2/2] gnu: Add emacs-waveform.
  2022-11-03 18:14 ` [bug#59000] [PATCH v2 1/2] gnu: Add emacs-mpv jgart via Guix-patches via
@ 2022-11-03 18:15   ` jgart via Guix-patches via
  2022-11-06 14:13   ` [bug#59000] [PATCH v2 1/2] gnu: Add emacs-mpv Nicolas Goaziou
  1 sibling, 0 replies; 6+ messages in thread
From: jgart via Guix-patches via @ 2022-11-03 18:15 UTC (permalink / raw)
  To: 59000; +Cc: jgart

* gnu/packages/emacs-xyz.scm (emacs-waveform): New variable.
---
 gnu/packages/emacs-xyz.scm | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index c2942c5b79..01b97b3e69 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -33736,6 +33736,42 @@ (define-public emacs-mpv
 process via its IPC interface.")
       (license license:gpl3+))))
   
+(define-public emacs-waveform
+  (let ((commit "ee52c6a72b3e9890743e3a6e2fc1f3195f5687b2")
+        (revision "0"))
+    (package
+      (name "emacs-waveform")
+      (version (git-version "0.0.0" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/sachac/waveform-el")
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "082ls7khd22fjwnk7h1zxrmqqcmxqh2wx2vljlxhjh9bcp1y2pyr"))))
+      (build-system emacs-build-system)
+      (arguments
+       (list
+        #:tests? #f ; There are no tests.
+        #:phases
+        #~(modify-phases %standard-phases
+            (add-after 'set-waveform-el-version 'patch-exec-paths
+              (lambda* (#:key inputs #:allow-other-keys)
+                (make-file-writable "waveform.el")
+                (emacs-substitute-variables "waveform.el"
+                  ("waveform-ffmpeg-executable"
+                   (search-input-file inputs "/bin/ffmpeg"))))))))
+      (inputs (list ffmpeg))
+      (propagated-inputs (list emacs-mpv))
+      (home-page "https://github.com/sachac/waveform-el/")
+      (synopsis "Display a waveform and use it to navigate")
+      (description
+"This package displays a waveform of a sound file.  It is intended to
+be used with @code{emacs-mpv}")
+      (license license:gpl3+))))
+  
 (define-public emacs-project-x
   ;; There is no proper release.
   ;; The base version is extracted from the README.org.
-- 
2.38.1





^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [bug#59000] [PATCH v2 1/2] gnu: Add emacs-mpv.
  2022-11-03 18:14 ` [bug#59000] [PATCH v2 1/2] gnu: Add emacs-mpv jgart via Guix-patches via
  2022-11-03 18:15   ` [bug#59000] [PATCH v2 2/2] gnu: Add emacs-waveform jgart via Guix-patches via
@ 2022-11-06 14:13   ` Nicolas Goaziou
  1 sibling, 0 replies; 6+ messages in thread
From: Nicolas Goaziou @ 2022-11-06 14:13 UTC (permalink / raw)
  To: 59000; +Cc: jgart, 59000-done

Hello,

jgart via Guix-patches via <guix-patches@gnu.org> writes:

> * gnu/packages/emacs-xyz.scm (emacs-mpv): New variable.

Thank you. Applied, with the following changes.

> +    (package
> +      (name "emacs-mpv")
> +      (version (git-version "0.0.0" revision commit))

Base version is actually 0.2.0.

> +        #~(modify-phases %standard-phases
> +            (add-after 'set-mpv-el-version 'patch-exec-paths
> +              (lambda* (#:key inputs #:allow-other-keys)
> +                (make-file-writable "mpv.el")

`make-file-writable' is not necessary.

> +                (emacs-substitute-variables "mpv.el"
> +                  ("mpv-executable"
> +                   (search-input-file inputs "/bin/mpv"))))))))
> +      (synopsis "Control mpv for easy note taking")
> +      (description
> +"This package is a potpourri of helper functions to control a @code{mpv}
> +process via its IPC interface.")

mpv -> MPV

Regards,
-- 
Nicolas Goaziou




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-11-06 14:14 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-03 18:08 [bug#59000] [PATCH 1/2] gnu: Add emacs-waveform jgart via Guix-patches via
2022-11-03 18:09 ` [bug#59000] [PATCH 1/2] gnu: Add emacs-mpv jgart via Guix-patches via
2022-11-03 18:09   ` [bug#59000] [PATCH 2/2] gnu: Add emacs-waveform jgart via Guix-patches via
2022-11-03 18:14 ` [bug#59000] [PATCH v2 1/2] gnu: Add emacs-mpv jgart via Guix-patches via
2022-11-03 18:15   ` [bug#59000] [PATCH v2 2/2] gnu: Add emacs-waveform jgart via Guix-patches via
2022-11-06 14:13   ` [bug#59000] [PATCH v2 1/2] gnu: Add emacs-mpv Nicolas Goaziou

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).