[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/03: gnu: Add emacs-nov-el.
From: |
Ricardo Wurmus |
Subject: |
02/03: gnu: Add emacs-nov-el. |
Date: |
Sat, 17 Feb 2018 18:35:48 -0500 (EST) |
rekado pushed a commit to branch master
in repository guix.
commit 5f78ce490eb4a86369ea843fa366d76d2fdce2b8
Author: Ricardo Wurmus <address@hidden>
Date: Sat Feb 17 16:17:19 2018 +0100
gnu: Add emacs-nov-el.
* gnu/packages/emacs.scm (emacs-nov-el): New variable.
---
gnu/packages/emacs.scm | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
index 8bc9ad9..88fab2e 100644
--- a/gnu/packages/emacs.scm
+++ b/gnu/packages/emacs.scm
@@ -7120,6 +7120,55 @@ included within Emacs. See @code{esxml-to-xml} for a
concise description of
the format.")
(license license:gpl3+)))
+(define-public emacs-nov-el
+ (package
+ (name "emacs-nov-el")
+ (version "0.2.2")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/wasamasa/nov.el.git")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "03s0qjvwk1f7y3i4wh2p5y3z4hdv00adgz8za3vphzc0q8i1kjzb"))))
+ (build-system emacs-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'embed-path-to-unzip
+ (lambda _
+ (substitute* "nov.el"
+ (("\\(executable-find \"unzip\"\\)")
+ (string-append "\"" (which "unzip") "\"")))
+ #t)))))
+ (propagated-inputs
+ `(("emacs-dash" ,emacs-dash)
+ ("emacs-esxml" ,emacs-esxml)))
+ (inputs
+ `(("unzip" ,unzip)))
+ (home-page "https://github.com/wasamasa/nov.el/")
+ (synopsis "Major mode for reading EPUBs in Emacs")
+ (description "@code{nov.el} provides a major mode for reading EPUB
+documents.
+
+Features:
+
address@hidden
address@hidden Basic navigation (jump to TOC, previous/next chapter)
address@hidden Remembering and restoring the last read position
address@hidden Jump to next chapter when scrolling beyond end
address@hidden Renders EPUB2 (@code{.ncx}) and EPUB3 (@code{<nav>}) TOCs
address@hidden Hyperlinks to internal and external targets
address@hidden Supports textual and image documents
address@hidden View source of document files
address@hidden Metadata display
address@hidden Image rescaling
address@hidden itemize
+")
+ (license license:gpl3+)))
+
(define-public epipe
(package
(name "epipe")