aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2018-02-17 16:17:19 +0100
committerRicardo Wurmus <rekado@elephly.net>2018-02-18 00:30:47 +0100
commit5f78ce490eb4a86369ea843fa366d76d2fdce2b8 (patch)
tree42b7486ad7907da2236b5ecdb9d0c8da9f0e2f82 /gnu
parent8d89921474bb827c6311e5352c5d92bee22cb96e (diff)
downloadpatches-5f78ce490eb4a86369ea843fa366d76d2fdce2b8.tar
patches-5f78ce490eb4a86369ea843fa366d76d2fdce2b8.tar.gz
gnu: Add emacs-nov-el.
* gnu/packages/emacs.scm (emacs-nov-el): New variable.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/emacs.scm49
1 files changed, 49 insertions, 0 deletions
diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
index 8bc9ad93f5..88fab2ed56 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:
+
+@itemize
+@item Basic navigation (jump to TOC, previous/next chapter)
+@item Remembering and restoring the last read position
+@item Jump to next chapter when scrolling beyond end
+@item Renders EPUB2 (@code{.ncx}) and EPUB3 (@code{<nav>}) TOCs
+@item Hyperlinks to internal and external targets
+@item Supports textual and image documents
+@item View source of document files
+@item Metadata display
+@item Image rescaling
+@end itemize
+")
+ (license license:gpl3+)))
+
(define-public epipe
(package
(name "epipe")