commit 87de143e3d84c5f3c1575fb24cf4667f7e54fdbc
parent 727afb0845b7a6edf626c862ab0e28d5c2e2bed3
Author: Yuval Langer <yuval.langer@gmail.com>
Date: Fri, 3 May 2024 08:31:22 +0300
Update emacs-greader-mode.
Diffstat:
2 files changed, 39 insertions(+), 12 deletions(-)
diff --git a/kakafarm/packages/emacs-xyz.scm b/kakafarm/packages/emacs-xyz.scm
@@ -20,6 +20,7 @@
(define-module (kakafarm packages emacs-xyz)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (gnu packages speech)
+ #:use-module (gnu packages)
#:use-module (guix build-system emacs)
#:use-module (guix download)
#:use-module (guix git-download)
@@ -52,24 +53,24 @@ Speaking is done using espeak-ng.")
(license license:gpl3+))))
(define-public emacs-greader-mode
- (let ((commit "fe5df5a83932acccf3407d67c59c131be058d6c4")
- (base32-string "02b2p2y10gwkddka905skz812d73n3l6nvqnq5pzas2a7wfw7jzq")
- (git-repository-url "https://gitlab.com/michelangelo-rodriguez/greader"))
+ (let ((commit "336b9b3608cf24c7cd20f7d32e2fe05e3c9f5150")
+ (revision "1" ))
(package
(name "emacs-greader-mode")
- (version "0.8.0")
+ (version (git-version "0.9.21" revision commit))
+ (home-page "https://gitlab.com/michelangelo-rodriguez/greader")
(source
(origin
- (method git-fetch)
- (uri (git-reference
- (url git-repository-url)
- (commit commit)))
- (file-name (git-file-name name version))
- (sha256
- (base32 base32-string))))
+ (uri (git-reference
+ (url home-page)
+ (commit commit)))
+ (method git-fetch)
+ (patches (search-patches "kakafarm/packages/patches/emacs-greader-mode-0.9.21-require-greader-espeaker.patch"))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "14gkx685nkkf1jad7rg4ybl13p64piljxjba8xp3n0zzq6g7dnrc"))))
(build-system emacs-build-system)
(inputs (list espeak-ng))
- (home-page git-repository-url)
(synopsis "greader - gnamù reader, send buffer contents to a speech engine")
(description
"Greader is a module that allows you to send any emacs buffer to a TTS.
diff --git a/kakafarm/packages/patches/emacs-greader-mode-0.9.21-require-greader-espeaker.patch b/kakafarm/packages/patches/emacs-greader-mode-0.9.21-require-greader-espeaker.patch
@@ -0,0 +1,25 @@
+Needs greader-espeak function to build. `(require 'greader-speak)`
+introduces the name into the top script.
+
+---
+--- a/greader.el
++++ b/greader.el
+@@ -42,6 +42,9 @@
+
+ ;;; Code:
+ (require 'view)
++(require 'seq)
++(require 'greader-espeak)
++
+ (defvar-local greader-timer-flag nil)
+
+ (defvar greader-auto-tired-timer nil)
+@@ -60,7 +63,6 @@
+ (defvar greader-backend-action #'greader--default-action)
+ (defvar greader-status 'paused)
+ (defvar greader-synth-process nil)
+-(require 'seq)
+
+ (define-obsolete-variable-alias 'greader-before-get-sentence-functions
+ 'greader-before-get-sentence-hook
+---
+\ No newline at end of file